X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=version.c;h=f8f7e6a33f69a4624f347e8b2c95f88e61111bb7;hp=d2df4818f4cb240482e5bf48028c5d5d5fd88368;hb=081c8921f827c1ed482c45ba22bd8bb97db2838b;hpb=06b3e7bc1b04def7488a5c5cd65de00aca655612 diff --git a/version.c b/version.c index d2df4818..f8f7e6a3 100644 --- a/version.c +++ b/version.c @@ -1,3 +1,11 @@ +/* + * Copyright (C) 2013 Andre Noll + * + * Licensed under the GPL v2. For licencing details see COPYING. + */ + +/** \file version.c Some helpers for printing version and copyright strings. */ + #include "para.h" /** \file version.h Macros for printing the version string. */ @@ -10,7 +18,7 @@ * \return The string generated by the GIT-VERSION-GEN script. It is passed * as a preprocessor define during compilation. */ -const char *version_git(void) +__a_const const char *version_git(void) { return GIT_VERSION; } @@ -27,7 +35,7 @@ const char *version_single_line(const char *pfx) { static char buf[100]; snprintf(buf, sizeof(buf) - 1, - "para_%s " GIT_VERSION " (" CODENAME ")", pfx); + "para_%s " GIT_VERSION, pfx); return buf; } @@ -48,11 +56,13 @@ const char *version_text(const char *pfx) static char buf[512]; snprintf(buf, sizeof(buf) - 1, "%s\n" - "built: " BUILD_DATE ", " UNAME_RS ", " CC_VERSION "\n" "Copyright (C) 2013 Andre Noll\n" "This is free software with ABSOLUTELY NO WARRANTY." " See COPYING for details.\n" - "Report bugs to .\n", + "Report bugs to .\n" + "build date: " BUILD_DATE ",\n" + "build system: " UNAME_RS ",\n" + "compiler: " CC_VERSION ".\n", version_single_line(pfx) ); return buf;