X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=version.h;h=f5282854d72f01a1f19a07185f049a05523e0594;hp=a9547797d9068ca40854329703d6a36ad537cb03;hb=a35c113e0bb9fa9ac02b77eb01dd32f49cd5c8d0;hpb=e4278fbb73908f52f6419b38bd3284f1ba063298 diff --git a/version.h b/version.h index a9547797..f5282854 100644 --- a/version.h +++ b/version.h @@ -1,19 +1,5 @@ -/** \file version.h Macros for printing the version string. */ - -#include "git-version.h" - -/** Version text printed by all executables if -V was given. */ -#define VERSION_TEXT(prefix) "para_" prefix " " PACKAGE_VERSION \ - " (" GIT_VERSION ": " CODENAME ")" "\n" \ - "Copyright (C) 2011 Andre Noll\n" \ - "This is free software with ABSOLUTELY NO WARRANTY." \ - " See COPYING for details.\n" \ - "Report bugs to .\n" - -/** Print out \p VERSION_TEXT and exit if version flag was given. */ -#define HANDLE_VERSION_FLAG(_prefix, _args_info_struct) \ - if (_args_info_struct.version_given) { \ - printf("%s", VERSION_TEXT(_prefix)); \ - exit(EXIT_SUCCESS); \ - } +/** \file version.h Functions for printing the version string. */ +const char *version_single_line(const char *pfx); +const char *version_text(const char *pfx); +void version_handle_flag(const char *pfx, bool flag);