From fc6e2a9efd5ea0efe5a7c055c7e5f2cb4123f23e Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Sat, 28 Oct 2006 17:31:15 +0200 Subject: [PATCH] version.c: move barvinok_version from util.c --- Makefile.am | 1 + util.c | 32 -------------------------------- version.c | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 35 insertions(+), 32 deletions(-) create mode 100644 version.c diff --git a/Makefile.am b/Makefile.am index f2ab3c8..e0b8afc 100644 --- a/Makefile.am +++ b/Makefile.am @@ -38,6 +38,7 @@ libbarvinok_la_SOURCES = \ evalue.c \ genfun.cc \ util.c \ + version.c \ bfcounter.cc \ bfcounter.h \ conversion.cc \ diff --git a/util.c b/util.c index 8655327..8a18292 100644 --- a/util.c +++ b/util.c @@ -2,7 +2,6 @@ #include #include #include "config.h" -#include "version.h" #ifndef HAVE_ENUMERATE4 #define Polyhedron_Enumerate(a,b,c,d) Polyhedron_Enumerate(a,b,c) @@ -1478,34 +1477,3 @@ Matrix *compress_variables(Matrix *Equalities, unsigned nparam) return T; } - -const char *barvinok_version(void) -{ - return - GIT_HEAD_ID"\n" -#ifdef USE_MODULO - " +MODULO" -#else - " -MODULO" -#endif -#ifdef USE_INCREMENTAL_BF - " INCREMENTAL=BF" -#elif defined USE_INCREMENTAL_DF - " INCREMENTAL=DF" -#else - " -INCREMENTAL" -#endif - "\n" -#ifdef HAVE_CORRECT_VERTICES - " +CORRECT_VERTICES" -#else - " -CORRECT_VERTICES" -#endif -#ifdef HAVE_PIPLIB - " +PIPLIB" -#else - " -PIPLIB" -#endif - "\n" - ; -} diff --git a/version.c b/version.c new file mode 100644 index 0000000..6c885b4 --- /dev/null +++ b/version.c @@ -0,0 +1,34 @@ +#include +#include "config.h" +#include "version.h" + +const char *barvinok_version(void) +{ + return + GIT_HEAD_ID"\n" +#ifdef USE_MODULO + " +MODULO" +#else + " -MODULO" +#endif +#ifdef USE_INCREMENTAL_BF + " INCREMENTAL=BF" +#elif defined USE_INCREMENTAL_DF + " INCREMENTAL=DF" +#else + " -INCREMENTAL" +#endif + "\n" +#ifdef HAVE_CORRECT_VERTICES + " +CORRECT_VERTICES" +#else + " -CORRECT_VERTICES" +#endif +#ifdef HAVE_PIPLIB + " +PIPLIB" +#else + " -PIPLIB" +#endif + "\n" + ; +} -- 2.11.4.GIT