From 069345d33959eb7b2ff0f4ae2b2ec65023ac7186 Mon Sep 17 00:00:00 2001 From: David Steele Date: Sun, 12 Jan 2020 11:00:10 -0700 Subject: [PATCH] Add string constants. --- src/common/type/string.c | 2 ++ src/common/type/string.h | 2 ++ src/common/type/stringz.h | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/common/type/string.c b/src/common/type/string.c index 022d0d7e2..cab6a5900 100644 --- a/src/common/type/string.c +++ b/src/common/type/string.c @@ -21,7 +21,9 @@ Constant strings that are generally useful ***********************************************************************************************************************************/ STRING_EXTERN(BRACKETL_STR, "["); STRING_EXTERN(BRACKETR_STR, "]"); +STRING_EXTERN(COLON_STR, COLON_Z); STRING_EXTERN(CR_STR, "\r"); +STRING_EXTERN(DASH_STR, DASH_Z); STRING_EXTERN(DOT_STR, "."); STRING_EXTERN(DOTDOT_STR, ".."); STRING_EXTERN(EMPTY_STR, ""); diff --git a/src/common/type/string.h b/src/common/type/string.h index d9ff1263c..b6ccf1d9c 100644 --- a/src/common/type/string.h +++ b/src/common/type/string.h @@ -120,7 +120,9 @@ Constant strings that are generally useful ***********************************************************************************************************************************/ STRING_DECLARE(BRACKETL_STR); STRING_DECLARE(BRACKETR_STR); +STRING_DECLARE(COLON_STR); STRING_DECLARE(CR_STR); +STRING_DECLARE(DASH_STR); STRING_DECLARE(DOT_STR); STRING_DECLARE(DOTDOT_STR); STRING_DECLARE(EMPTY_STR); diff --git a/src/common/type/stringz.h b/src/common/type/stringz.h index 449e08ab8..42490e9a0 100644 --- a/src/common/type/stringz.h +++ b/src/common/type/stringz.h @@ -7,6 +7,8 @@ Zero-Terminated String Handler /*********************************************************************************************************************************** Zero-terminated strings that are generally useful ***********************************************************************************************************************************/ +#define COLON_Z ":" +#define DASH_Z "-" #define FALSE_Z "false" #define NULL_Z "null" #define TRUE_Z "true"