From 5eb29e2c4f39db040605c975b2aaa76f9fed6f82 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Tue, 21 Jul 1998 20:47:38 +0000 Subject: [PATCH] use macros for version numbers --- include/opcode/ChangeLog | 2 +- include/opcode/cgen.h | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/opcode/ChangeLog b/include/opcode/ChangeLog index e0edbf5c08f..07568260ecd 100644 --- a/include/opcode/ChangeLog +++ b/include/opcode/ChangeLog @@ -1,6 +1,6 @@ Tue Jul 21 13:12:13 1998 Doug Evans - * 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 1c549560dc3..e86037df830 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 -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 -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; -- 2.30.2