diff options
author | H. Peter Anvin <hpa@zytor.com> | 2008-10-31 16:53:49 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-10-31 16:53:49 -0700 |
commit | 4b9358928b114caaf34a69d6fdfd3b285b7a72cc (patch) | |
tree | b531697231b1ac88943dd32c4fa434c746a40f66 /nasm.c | |
parent | dcd3a21145ef08583c1e242594777bf1625bf989 (diff) | |
download | nasm-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.c | 13 |
1 files changed, 3 insertions, 10 deletions
@@ -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 */ |