summaryrefslogtreecommitdiff
path: root/ver.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 /ver.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 'ver.c')
-rw-r--r--ver.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/ver.c b/ver.c
new file mode 100644
index 0000000..ae2c329
--- /dev/null
+++ b/ver.c
@@ -0,0 +1,18 @@
+#include "nasm.h"
+#include "version.h"
+
+/* This is printed when entering nasm -v */
+const char nasm_version[] = NASM_VER;
+const char nasm_date[] = __DATE__;
+const char nasm_compile_options[] = ""
+#ifdef DEBUG
+ " with -DDEBUG"
+#endif
+ ;
+
+/* These are used by some backends. */
+const char nasm_comment[] =
+ "The Netwide Assembler " NASM_VER;
+
+const char nasm_signature[] =
+ "NASM " NASM_VER;