From cd8b523550e8c97ffcd7211cccfc84faee8e7707 Mon Sep 17 00:00:00 2001 From: Christian Thaeter Date: Sun, 10 Aug 2008 11:51:36 +0200 Subject: [PATCH] cosmetics, remove some traces in string config parsing, little doc --- src/backend/config_typed.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/backend/config_typed.c b/src/backend/config_typed.c index 6ade95236..f6a8802f5 100644 --- a/src/backend/config_typed.c +++ b/src/backend/config_typed.c @@ -126,6 +126,14 @@ lumiera_config_real_set (const char* key, long double* value, const char* fmt) +/** + * String + * unquoted string which covers the whole value area and gets chopped or + * quoted string which preserves leading/trailing spaces + * either single or double quotes are allowed, doubling the quote in a string escapes it + */ + + /** * helper function, takes a raw input string and give a tmpbuf with the string parsed back. */ @@ -180,10 +188,6 @@ scan_string (const char* in) return ret; } -/** - * String - * either a string which covers the whole line - */ int lumiera_config_string_get (const char* key, char** value, const char* def) { @@ -201,8 +205,6 @@ lumiera_config_string_get (const char* key, char** value, const char* def) { *value = scan_string (raw_value); - TRACE (config_typed, "RAW_VALUE %s, scanned .%s.", raw_value, *value); - if (*value) ret = 0; /* all ok */ else if (def) @@ -214,7 +216,6 @@ lumiera_config_string_get (const char* key, char** value, const char* def) try_default: *value = scan_string (def); - TRACE (config_typed, "DEFAULT %s, scanned .%s.", def, *value); if (*value) { TODO ("register default (writelock or mutex!)");