From 9a9466f1fdad6fb6c94c5ef8ddb1a687a7bcd874 Mon Sep 17 00:00:00 2001 From: Chris Hall Date: Thu, 31 Mar 2011 00:37:47 +0100 Subject: Small improvements to speed of reading of configuration file. Tidy up signalling of "ready" to command loop, and checking of appropriate state to close written configuration file. --- lib/qstring.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/qstring.h') diff --git a/lib/qstring.h b/lib/qstring.h index b05c738b..536105d0 100644 --- a/lib/qstring.h +++ b/lib/qstring.h @@ -454,7 +454,7 @@ Inline usize qs_delete(qstring qs, usize n) } ; Inline int qs_cmp(qstring a, qstring b) ; -Inline int qs_cmp_word(qstring a, const char* w) ; +Inline int qs_cmp_word(qstring a, qstring w) ; Inline int qs_cmp_sig(qstring a, qstring b) ; Inline bool qs_equal(qstring a, qstring b) ; Inline bool qs_substring(qstring a, qstring b) ; @@ -666,9 +666,9 @@ qs_cmp(qstring a, qstring b) * Compare qstrings to given word -- see els_cmp_word */ Inline int -qs_cmp_word(qstring a, const char* w) +qs_cmp_word(qstring a, qstring w) { - return els_cmp_word(qs_els(a), w) ; + return els_cmp_word(qs_els(a), qs_els(w)) ; } ; /*------------------------------------------------------------------------------ -- cgit v1.2.3