1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2026-06-20 01:17:49 +02:00

Move constants required for debug logging.

Moving these constants to stringStatic.h reduces the dependency on stringZ.h for low-level debug logging. This makes it possible to add new capabilities to stringZ.c.
This commit is contained in:
David Steele
2026-01-02 10:47:45 +07:00
parent 84778658ac
commit 9118571196
4 changed files with 7 additions and 9 deletions
-1
View File
@@ -8,7 +8,6 @@ Debug Routines
#include "common/stackTrace.h"
#include "common/type/convert.h"
#include "common/type/stringStatic.h"
#include "common/type/stringZ.h"
/***********************************************************************************************************************************
These functions allow auditing of child mem contexts and allocations that are left in the calling context when a function exits.
+7
View File
@@ -9,6 +9,13 @@ built-in format and memcpy functions to make the interface simpler.
#include <stddef.h>
/***********************************************************************************************************************************
Zero-terminated strings that are generally useful
***********************************************************************************************************************************/
#define FALSE_Z "false"
#define NULL_Z "null"
#define TRUE_Z "true"
/***********************************************************************************************************************************
Type
***********************************************************************************************************************************/
-7
View File
@@ -7,13 +7,6 @@ The benefit is simpler code with less indentation, but be aware that memory is s
#ifndef COMMON_TYPE_STRINGZ_H
#define COMMON_TYPE_STRINGZ_H
/***********************************************************************************************************************************
Zero-terminated strings that are generally useful
***********************************************************************************************************************************/
#define FALSE_Z "false"
#define NULL_Z "null"
#define TRUE_Z "true"
/***********************************************************************************************************************************
Functions
***********************************************************************************************************************************/
-1
View File
@@ -269,7 +269,6 @@ testRun(void)
"src/common/type/param.h",
"src/common/type/stringStatic.h",
"src/common/type/stringStatic.c",
"src/common/type/stringZ.h",
"test/src/common/harnessDebug.h",
"test/src/common/harnessLog.h",
"test/src/common/harnessError.c",