1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2026-05-22 10:15:16 +02:00

Add string constants.

This commit is contained in:
David Steele
2020-01-12 11:00:10 -07:00
parent 3f89ecf8d9
commit 069345d339
3 changed files with 6 additions and 0 deletions
+2
View File
@@ -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, "");
+2
View File
@@ -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);
+2
View File
@@ -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"