use macros for version numbers
authorDoug Evans <dje@google.com>
Tue, 21 Jul 1998 20:47:38 +0000 (20:47 +0000)
committerDoug Evans <dje@google.com>
Tue, 21 Jul 1998 20:47:38 +0000 (20:47 +0000)
include/opcode/ChangeLog
include/opcode/cgen.h

index e0edbf5c08f88a027d3862b532a08a3f426c3b5f..07568260ecd6f7bcece5acb3a2320148f0f6e48b 100644 (file)
@@ -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.
index 1c549560dc372e1241f8eb373174dd9a4facdd50..e86037df830979107c17787686ce8cc5391c0902 100644 (file)
@@ -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;
 \f