summaryrefslogtreecommitdiff
path: root/src/main/CommandLine.c
diff options
context:
space:
mode:
authorgoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-12-15 18:04:01 +0000
committergoodale <goodale@17b73243-c579-4c4c-a9d2-2d5706c11dac>2000-12-15 18:04:01 +0000
commit596d9b6e4bb1c524a8d197b01f7e7268884955b5 (patch)
tree145947ed13044180e41433353f3e74afd186f831 /src/main/CommandLine.c
parent31d6a423e2b3c01e43116b24a4310d4776aaefd5 (diff)
Tidied up the versioning stuff a bit.
Tom git-svn-id: http://svn.cactuscode.org/flesh/trunk@1954 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/main/CommandLine.c')
-rw-r--r--src/main/CommandLine.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/main/CommandLine.c b/src/main/CommandLine.c
index 07619daf..7a12b0b5 100644
--- a/src/main/CommandLine.c
+++ b/src/main/CommandLine.c
@@ -16,6 +16,7 @@
#include "cctk_Flesh.h"
#include "cGH.h"
+#include "cctk_Version.h"
#include "cctk_ActiveThorns.h"
#include "cctk_Comm.h"
#include "cctk_Misc.h"
@@ -48,9 +49,6 @@ static void CommandLinePrintParameter(const cParamData *properties);
/* FIXME: these should be put in a header somewhere */
-char *compileTime(void);
-char *compileDate(void);
-char *CCTK_FullVersion(void);
int CCTK_CommandLine(char ***outargv);
/********************************************************************
@@ -402,7 +400,7 @@ void CCTKi_CommandLineListThorns(void)
@desc
Prints version info
@enddesc
- @calls CCTK_FullVersion
+ @calls CCTK_FullVersion CCTK_CompileDate CCTK_CompileTime
@calledby
@history
@@ -419,11 +417,10 @@ void CCTKi_CommandLineVersion(void)
{
CCTK_CommandLine(&argv);
- version = (const char *)CCTK_FullVersion();
+ version = CCTK_FullVersion();
printf("%s: Version %s. Compiled on %s at %s\n", argv[0], version,
- compileDate(), compileTime());
-
+ CCTK_CompileDate(), CCTK_CompileTime());
}
CCTK_Exit(NULL,1);
@@ -436,7 +433,7 @@ void CCTKi_CommandLineVersion(void)
@desc
Prints a help message
@enddesc
- @calls CCTK_CommandLine
+ @calls CCTK_CommandLine CCTK_CompileDate CCTK_CompileTime
@calledby
@history
@@ -451,7 +448,7 @@ void CCTKi_CommandLineHelp(void)
{
CCTK_CommandLine(&argv);
- printf("%s, compiled on %s at %s\n", argv[0], compileDate(), compileTime());
+ printf("%s, compiled on %s at %s\n", argv[0], CCTK_CompileDate(), CCTK_CompileTime());
printf("Usage: %s [-h] [-O] [-o paramname] [-x [nprocs]] [-W n] [-E n] [-r] [-T] [-t name] [-v] <parameter_file_name>\n", argv[0]);
printf("\n");