X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=version.h;h=3dd5ba2177751e2c9716d4f0cdb99cfc5464c73a;hp=3b839669bd610360b904f473e4e4e6156989bbd6;hb=63abcd1b2f6de6ce53d82962f5a2100c5a57e5d3;hpb=c0dca63e02352cae6a8c241dba4bc0d2c7cde050 diff --git a/version.h b/version.h index 3b839669..3dd5ba21 100644 --- a/version.h +++ b/version.h @@ -1,17 +1,6 @@ -#include "git-version.h" -/** Version text used by various commands if -V switch 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" \ - "Written by Andre Noll.\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_git(void); +const char *version_single_line(const char *pfx); +const char *version_text(const char *pfx); +void version_handle_flag(const char *pfx, bool flag);