1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-05 00:28:52 +02:00

Split VR_EXTERN/FN_EXTERN macros from FV_EXTERN.

This should make it a little clearer what the variable (VR) macros are doing since the declaration/definition cannot both be set to extern (but functions can).

Splitting the variable macros out also allows them to be changed in the future with little churn, while changing the function macro creates a large amount of churn.
This commit is contained in:
David Steele
2023-01-02 15:24:51 +07:00
parent 9e29c01891
commit f018912908
361 changed files with 1893 additions and 1889 deletions

View File

@ -39,7 +39,7 @@ pgClientFreeResource(THIS_VOID)
}
/**********************************************************************************************************************************/
FV_EXTERN PgClient *
FN_EXTERN PgClient *
pgClientNew(const String *host, const unsigned int port, const String *database, const String *user, const TimeMSec timeout)
{
FUNCTION_LOG_BEGIN(logLevelDebug);
@ -118,7 +118,7 @@ pgClientEscape(const String *string)
}
/**********************************************************************************************************************************/
FV_EXTERN PgClient *
FN_EXTERN PgClient *
pgClientOpen(PgClient *this)
{
FUNCTION_LOG_BEGIN(logLevelDebug);
@ -165,7 +165,7 @@ pgClientOpen(PgClient *this)
}
/**********************************************************************************************************************************/
FV_EXTERN Pack *
FN_EXTERN Pack *
pgClientQuery(PgClient *const this, const String *const query, const PgClientQueryResult resultType)
{
FUNCTION_LOG_BEGIN(logLevelDebug);
@ -357,7 +357,7 @@ pgClientQuery(PgClient *const this, const String *const query, const PgClientQue
}
/**********************************************************************************************************************************/
FV_EXTERN void
FN_EXTERN void
pgClientClose(PgClient *this)
{
FUNCTION_LOG_BEGIN(logLevelDebug);
@ -377,7 +377,7 @@ pgClientClose(PgClient *this)
}
/**********************************************************************************************************************************/
FV_EXTERN String *
FN_EXTERN String *
pgClientToLog(const PgClient *this)
{
return strNewFmt(