1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-14 10:13:05 +02:00

Remove #define statements in the InfoPg module to conform with newly-adopted coding standards.

Contributed by Cynthia Shang.
This commit is contained in:
Cynthia Shang 2018-12-10 18:15:06 -05:00 committed by David Steele
parent fe152b8f29
commit 2514d08d0d
2 changed files with 7 additions and 15 deletions

View File

@ -112,7 +112,7 @@
<release-item-contributor id="cynthia.shang"/> <release-item-contributor id="cynthia.shang"/>
</release-item-contributor-list> </release-item-contributor-list>
<p>Rename constants in <code>Info</code> module for consistency.</p> <p>Info module improvements. Rename constants in <code>Info</code> module for consistency. Remove <code>#define</code> statements in the <code>InfoPg</code> module to conform with newly-adopted coding standards.</p>
</release-item> </release-item>
<release-item> <release-item>

View File

@ -23,21 +23,13 @@ PostgreSQL Info Handler
/*********************************************************************************************************************************** /***********************************************************************************************************************************
Internal constants Internal constants
***********************************************************************************************************************************/ ***********************************************************************************************************************************/
#define INFO_SECTION_DB "db" STRING_STATIC(INFO_SECTION_DB_HISTORY_STR, "db:history");
#define INFO_SECTION_DB_HISTORY INFO_SECTION_DB ":history"
STRING_STATIC(INFO_SECTION_DB_HISTORY_STR, INFO_SECTION_DB_HISTORY);
#define INFO_SECTION_DB_MANIFEST "backup:" INFO_SECTION_DB
#define INFO_KEY_DB_ID "db-id" STRING_STATIC(INFO_KEY_DB_ID_STR, "db-id");
STRING_STATIC(INFO_KEY_DB_ID_STR, INFO_KEY_DB_ID); STRING_STATIC(INFO_KEY_DB_CATALOG_VERSION_STR, "db-catalog-version");
#define INFO_KEY_DB_CATALOG_VERSION "db-catalog-version" STRING_STATIC(INFO_KEY_DB_CONTROL_VERSION_STR, "db-control-version");
STRING_STATIC(INFO_KEY_DB_CATALOG_VERSION_STR, INFO_KEY_DB_CATALOG_VERSION); STRING_STATIC(INFO_KEY_DB_SYSTEM_ID_STR, "db-system-id");
#define INFO_KEY_DB_CONTROL_VERSION "db-control-version" STRING_STATIC(INFO_KEY_DB_VERSION_STR, "db-version");
STRING_STATIC(INFO_KEY_DB_CONTROL_VERSION_STR, INFO_KEY_DB_CONTROL_VERSION);
#define INFO_KEY_DB_SYSTEM_ID "db-system-id"
STRING_STATIC(INFO_KEY_DB_SYSTEM_ID_STR, INFO_KEY_DB_SYSTEM_ID);
#define INFO_KEY_DB_VERSION "db-version"
STRING_STATIC(INFO_KEY_DB_VERSION_STR, INFO_KEY_DB_VERSION);
/*********************************************************************************************************************************** /***********************************************************************************************************************************
Object type Object type