You've already forked pgbackrest
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:
@@ -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.
|
||||
|
||||
@@ -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,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
|
||||
***********************************************************************************************************************************/
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user