23 #include <lal/LALStdlib.h>
24 #include <lal/LALString.h>
25 #include <lal/LALVCSInfoType.h>
35 for (
size_t i = 0; vcs_list[i] != NULL; ++i ) {
44 "%s-Configure-Args: %s\n"
45 "%s-Configure-Date: %s\n"
46 "%s-Build-Date: %s\n",
48 vcs_list[i]->
name, vcs_list[i]->vcsId,
49 vcs_list[i]->
name, vcs_list[i]->vcsDate,
50 vcs_list[i]->
name, vcs_list[i]->vcsBranch,
51 vcs_list[i]->
name, vcs_list[i]->vcsTag,
52 vcs_list[i]->
name, vcs_list[i]->vcsStatus,
53 vcs_list[i]->
name, vcs_list[i]->configureArgs,
54 vcs_list[i]->
name, vcs_list[i]->configureDate,
55 vcs_list[i]->
name, vcs_list[i]->buildDate
62 vcs_list[i]->vcsClean,
74 while ( line != NULL ) {
static const size_t prefix
char * XLALStringAppendFmt(char *s, const char *fmt,...)
Append the formatted string 'fmt' to the string 's', which is reallocated with XLALRealloc() to the r...
char * XLALStringToken(char **s, const char *delim, int empty)
Return the next token delimited by any character in 'delim' from the string 's', which is updated to ...
int XLALOutputVCSInfo(FILE *fp, const LALVCSInfoList vcs_list, const int verbose, const char *prefix)
Output VCS and build information, as generated by XLALVCSInfoString(), to a file pointer fp.
const LALVCSInfo *const LALVCSInfoList[16]
NULL-terminated list of VCS and build information structures
char * XLALVCSInfoString(const LALVCSInfoList vcs_list, const int verbose, const char *prefix)
Generate a multi-line string containing VCS and build information for a library and its dependencies,...
#define XLAL_CHECK(assertion,...)
Macro to test an assertion and invoke a failure if it is not true in a function that returns an integ...
#define XLAL_CHECK_NULL(assertion,...)
Macro to test an assertion and invoke a failure if it is not true in a function that returns a pointe...
@ XLAL_SUCCESS
Success return value (not an error number)
@ XLAL_EFAULT
Invalid pointer.
@ XLAL_EFUNC
Internal function call failed bit: "or" this with existing error number.