aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>1998-07-21 20:47:38 +0000
committerDoug Evans <dje@google.com>1998-07-21 20:47:38 +0000
commit5eb29e2c4f39db040605c975b2aaa76f9fed6f82 (patch)
treeed92c177c024622166478559ee3b9e581f0194e0
parent46cd3dab3bfda63c605b5726a58699ffd5a6ab15 (diff)
downloadgdb-5eb29e2c4f39db040605c975b2aaa76f9fed6f82.zip
gdb-5eb29e2c4f39db040605c975b2aaa76f9fed6f82.tar.gz
gdb-5eb29e2c4f39db040605c975b2aaa76f9fed6f82.tar.bz2
use macros for version numbers
-rw-r--r--include/opcode/ChangeLog2
-rw-r--r--include/opcode/cgen.h10
2 files changed, 6 insertions, 6 deletions
diff --git a/include/opcode/ChangeLog b/include/opcode/ChangeLog
index e0edbf5..0756826 100644
--- a/include/opcode/ChangeLog
+++ b/include/opcode/ChangeLog
@@ -1,6 +1,6 @@
Tue Jul 21 13:12:13 1998 Doug Evans <devans@seba.cygnus.com>
- * cgen.h (cgen_version_{major,minor,fixlevel}): Declare.
+ * cgen.h (CGEN_VERSION_{MAJOR,MINOR,FIXLEVEL}): Define.
(cgen_insert_fn,cgen_extract_fn): New arg `pc'.
(get_operand,put_operand): Replaced with get_{int,vma}_operand,
set_{int,vma}_operand.
diff --git a/include/opcode/cgen.h b/include/opcode/cgen.h
index 1c54956..e86037d 100644
--- a/include/opcode/cgen.h
+++ b/include/opcode/cgen.h
@@ -21,6 +21,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#ifndef CGEN_H
#define CGEN_H
+/* Version information. */
+#define CGEN_VERSION_MAJOR 0
+#define CGEN_VERSION_MINOR 6
+#define CGEN_VERSION_FIXLEVEL 0
+
/* Prepend the arch name, defined in <arch>-opc.h, and _cgen_ to symbol S.
The lack of spaces in the arg list is important for non-stdc systems.
This file is included by <arch>-opc.h.
@@ -67,11 +72,6 @@ enum cgen_endian
CGEN_ENDIAN_BIG
};
-/* Version information. */
-extern const int cgen_version_major;
-extern const int cgen_version_minor;
-extern const int cgen_version_fixlevel;
-
/* Forward decl. */
typedef struct cgen_insn CGEN_INSN;