You've already forked pgbackrest
mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2025-07-05 00:28:52 +02:00
Add meson unity build and tests.
This is immediately useful because it will detect any extern'd functions or variables that are not being used. It also detects functions or variables that are declared but not defined. If a FV/VR_EXTERN macro is missing it will be detected either because of a mismatch in the declaration/definition or because a new defined symbol will appear in the nm test. Eventually the unity build will be used to create a more optimized pgbackrest binary but that will need to wait.
This commit is contained in:
@ -39,7 +39,7 @@ pgClientFreeResource(THIS_VOID)
|
||||
}
|
||||
|
||||
/**********************************************************************************************************************************/
|
||||
PgClient *
|
||||
FV_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)
|
||||
}
|
||||
|
||||
/**********************************************************************************************************************************/
|
||||
PgClient *
|
||||
FV_EXTERN PgClient *
|
||||
pgClientOpen(PgClient *this)
|
||||
{
|
||||
FUNCTION_LOG_BEGIN(logLevelDebug);
|
||||
@ -165,7 +165,7 @@ pgClientOpen(PgClient *this)
|
||||
}
|
||||
|
||||
/**********************************************************************************************************************************/
|
||||
Pack *
|
||||
FV_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
|
||||
}
|
||||
|
||||
/**********************************************************************************************************************************/
|
||||
void
|
||||
FV_EXTERN void
|
||||
pgClientClose(PgClient *this)
|
||||
{
|
||||
FUNCTION_LOG_BEGIN(logLevelDebug);
|
||||
@ -377,7 +377,7 @@ pgClientClose(PgClient *this)
|
||||
}
|
||||
|
||||
/**********************************************************************************************************************************/
|
||||
String *
|
||||
FV_EXTERN String *
|
||||
pgClientToLog(const PgClient *this)
|
||||
{
|
||||
return strNewFmt(
|
||||
|
Reference in New Issue
Block a user