summaryrefslogtreecommitdiff
path: root/nasm.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-10-31 16:53:49 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-10-31 16:53:49 -0700
commit4b9358928b114caaf34a69d6fdfd3b285b7a72cc (patch)
treeb531697231b1ac88943dd32c4fa434c746a40f66 /nasm.c
parentdcd3a21145ef08583c1e242594777bf1625bf989 (diff)
downloadnasm-4b9358928b114caaf34a69d6fdfd3b285b7a72cc.tar.gz
nasm-4b9358928b114caaf34a69d6fdfd3b285b7a72cc.tar.bz2
nasm-4b9358928b114caaf34a69d6fdfd3b285b7a72cc.zip
Move all version strings to a single compilation unit (ver.c)
Move all the version strings to a single compilation unit, ver.c; this does not include the version macros, which are fed into macros.c. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'nasm.c')
-rw-r--r--nasm.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/nasm.c b/nasm.c
index b61acc4..ab369b8 100644
--- a/nasm.c
+++ b/nasm.c
@@ -791,16 +791,9 @@ static bool process_arg(char *p, char *q)
break;
case 'v':
- {
- const char *nasm_version_string =
- "NASM version " NASM_VER " compiled on " __DATE__
-#ifdef DEBUG
- " with -DDEBUG"
-#endif
- ;
- puts(nasm_version_string);
- exit(0); /* never need usage message here */
- }
+ fprintf(stderr, "NASM version %s compiled on %s%s\n",
+ nasm_version, nasm_date, nasm_compile_options);
+ exit(0); /* never need usage message here */
break;
case 'e': /* preprocess only */