1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-01-06 03:53:59 +02:00

Add \n, \r, and 0 String constants.

This commit is contained in:
David Steele 2018-11-15 16:31:46 -05:00
parent b6f7cbc315
commit 75f6e45de2
2 changed files with 6 additions and 0 deletions

View File

@ -15,11 +15,14 @@ String Handler
/*********************************************************************************************************************************** /***********************************************************************************************************************************
Constant strings that are generally useful Constant strings that are generally useful
***********************************************************************************************************************************/ ***********************************************************************************************************************************/
STRING_EXTERN(CR_STR, "\r");
STRING_EXTERN(EMPTY_STR, ""); STRING_EXTERN(EMPTY_STR, "");
STRING_EXTERN(FSLASH_STR, "/"); STRING_EXTERN(FSLASH_STR, "/");
STRING_EXTERN(LF_STR, "\n");
STRING_EXTERN(N_STR, "n"); STRING_EXTERN(N_STR, "n");
STRING_EXTERN(NULL_STR, "null"); STRING_EXTERN(NULL_STR, "null");
STRING_EXTERN(Y_STR, "y"); STRING_EXTERN(Y_STR, "y");
STRING_EXTERN(ZERO_STR, "0");
/*********************************************************************************************************************************** /***********************************************************************************************************************************
Object type Object type

View File

@ -92,11 +92,14 @@ By convention all string constant identifiers are appended with _STR.
/*********************************************************************************************************************************** /***********************************************************************************************************************************
Constant strings that are generally useful Constant strings that are generally useful
***********************************************************************************************************************************/ ***********************************************************************************************************************************/
STRING_DECLARE(CR_STR);
STRING_DECLARE(EMPTY_STR); STRING_DECLARE(EMPTY_STR);
STRING_DECLARE(FSLASH_STR); STRING_DECLARE(FSLASH_STR);
STRING_DECLARE(LF_STR);
STRING_DECLARE(N_STR); STRING_DECLARE(N_STR);
STRING_DECLARE(NULL_STR); STRING_DECLARE(NULL_STR);
STRING_DECLARE(Y_STR); STRING_DECLARE(Y_STR);
STRING_DECLARE(ZERO_STR);
/*********************************************************************************************************************************** /***********************************************************************************************************************************
Helper function/macro for object logging Helper function/macro for object logging