diff --git a/doc/xml/release.xml b/doc/xml/release.xml index 7e817cf30..a8df74b4b 100644 --- a/doc/xml/release.xml +++ b/doc/xml/release.xml @@ -37,6 +37,10 @@

varNewKv() accepts a KeyValue object rather than creating one.

+ +

Add true and false String constants.

+
+

Refactor Ini interface to expose String values instead of Variant.

diff --git a/src/common/type/string.c b/src/common/type/string.c index 0b5b51b20..334521853 100644 --- a/src/common/type/string.c +++ b/src/common/type/string.c @@ -19,10 +19,12 @@ STRING_EXTERN(BRACKETR_STR, "]"); STRING_EXTERN(CR_STR, "\r"); STRING_EXTERN(EMPTY_STR, ""); STRING_EXTERN(EQ_STR, "="); +STRING_EXTERN(FALSE_STR, "false"); STRING_EXTERN(FSLASH_STR, "/"); STRING_EXTERN(LF_STR, "\n"); STRING_EXTERN(N_STR, "n"); STRING_EXTERN(NULL_STR, "null"); +STRING_EXTERN(TRUE_STR, "true"); STRING_EXTERN(Y_STR, "y"); STRING_EXTERN(ZERO_STR, "0"); diff --git a/src/common/type/string.h b/src/common/type/string.h index fba2f0a1a..bbabca92b 100644 --- a/src/common/type/string.h +++ b/src/common/type/string.h @@ -122,10 +122,12 @@ STRING_DECLARE(BRACKETR_STR); STRING_DECLARE(CR_STR); STRING_DECLARE(EMPTY_STR); STRING_DECLARE(EQ_STR); +STRING_DECLARE(FALSE_STR); STRING_DECLARE(FSLASH_STR); STRING_DECLARE(LF_STR); STRING_DECLARE(N_STR); STRING_DECLARE(NULL_STR); +STRING_DECLARE(TRUE_STR); STRING_DECLARE(Y_STR); STRING_DECLARE(ZERO_STR);