* cgen.h: Test __BFD_H_SEEN__ rather than BFD_VERSION_DATE.

This commit is contained in:
Alan Modra 2002-10-14 10:55:14 +00:00
parent 969203ce91
commit ad1d049af9
2 changed files with 12 additions and 8 deletions

View File

@ -1,3 +1,7 @@
2002-10-14 Alan Modra <amodra@bigpond.net.au>
* cgen.h: Test __BFD_H_SEEN__ rather than BFD_VERSION_DATE.
2002-09-30 Gavin Romig-Koch <gavin@redhat.com> 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
Ken Raeburn <raeburn@cygnus.com> Ken Raeburn <raeburn@cygnus.com>
Aldy Hernandez <aldyh@redhat.com> Aldy Hernandez <aldyh@redhat.com>

View File

@ -26,7 +26,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
Perhaps the definition of bfd_vma can be moved outside of bfd.h. Perhaps the definition of bfd_vma can be moved outside of bfd.h.
Or perhaps one could duplicate its definition in another file. Or perhaps one could duplicate its definition in another file.
Until such time, this file conditionally compiles definitions that require Until such time, this file conditionally compiles definitions that require
bfd_vma using BFD_VERSION_DATE. */ bfd_vma using __BFD_H_SEEN__. */
/* Enums must be defined before they can be used. /* Enums must be defined before they can be used.
Allow them to be used in struct definitions, even though the enum must Allow them to be used in struct definitions, even though the enum must
@ -276,7 +276,7 @@ typedef const char * (cgen_parse_fn)
PC is the pc value of the insn. PC is the pc value of the insn.
The result is an error message or NULL if success. */ The result is an error message or NULL if success. */
#ifdef BFD_VERSION_DATE #ifdef __BFD_H_SEEN__
typedef const char * (cgen_insert_fn) typedef const char * (cgen_insert_fn)
PARAMS ((CGEN_CPU_DESC, const CGEN_INSN *insn_, PARAMS ((CGEN_CPU_DESC, const CGEN_INSN *insn_,
CGEN_FIELDS *fields_, CGEN_INSN_BYTES_PTR insnp_, CGEN_FIELDS *fields_, CGEN_INSN_BYTES_PTR insnp_,
@ -297,7 +297,7 @@ typedef const char * (cgen_insert_fn) ();
PC is the pc value of the insn. PC is the pc value of the insn.
The result is the length of the insn in bits or zero if not recognized. */ The result is the length of the insn in bits or zero if not recognized. */
#ifdef BFD_VERSION_DATE #ifdef __BFD_H_SEEN__
typedef int (cgen_extract_fn) typedef int (cgen_extract_fn)
PARAMS ((CGEN_CPU_DESC, const CGEN_INSN *insn_, PARAMS ((CGEN_CPU_DESC, const CGEN_INSN *insn_,
CGEN_EXTRACT_INFO *ex_info_, CGEN_INSN_INT base_insn_, CGEN_EXTRACT_INFO *ex_info_, CGEN_INSN_INT base_insn_,
@ -316,7 +316,7 @@ typedef int (cgen_extract_fn) ();
PC is the pc value of the insn. PC is the pc value of the insn.
LEN is the length of the insn, in bits. */ LEN is the length of the insn, in bits. */
#ifdef BFD_VERSION_DATE #ifdef __BFD_H_SEEN__
typedef void (cgen_print_fn) typedef void (cgen_print_fn)
PARAMS ((CGEN_CPU_DESC, PTR info_, const CGEN_INSN *insn_, PARAMS ((CGEN_CPU_DESC, PTR info_, const CGEN_INSN *insn_,
CGEN_FIELDS *fields_, bfd_vma pc_, int len_)); CGEN_FIELDS *fields_, bfd_vma pc_, int len_));
@ -381,7 +381,7 @@ enum cgen_parse_operand_result
CGEN_PARSE_OPERAND_RESULT_ERROR CGEN_PARSE_OPERAND_RESULT_ERROR
}; };
#ifdef BFD_VERSION_DATE /* Don't require bfd.h unnecessarily. */ #ifdef __BFD_H_SEEN__ /* Don't require bfd.h unnecessarily. */
typedef const char * (cgen_parse_operand_fn) typedef const char * (cgen_parse_operand_fn)
PARAMS ((CGEN_CPU_DESC, PARAMS ((CGEN_CPU_DESC,
enum cgen_parse_operand_type, const char **, int, int, enum cgen_parse_operand_type, const char **, int, int,
@ -565,7 +565,7 @@ const CGEN_KEYWORD_ENTRY *cgen_keyword_search_next
extern const char *cgen_parse_keyword extern const char *cgen_parse_keyword
PARAMS ((CGEN_CPU_DESC, const char **, CGEN_KEYWORD *, long *)); PARAMS ((CGEN_CPU_DESC, const char **, CGEN_KEYWORD *, long *));
#ifdef BFD_VERSION_DATE /* Don't require bfd.h unnecessarily. */ #ifdef __BFD_H_SEEN__ /* Don't require bfd.h unnecessarily. */
extern const char *cgen_parse_signed_integer extern const char *cgen_parse_signed_integer
PARAMS ((CGEN_CPU_DESC, const char **, int, long *)); PARAMS ((CGEN_CPU_DESC, const char **, int, long *));
extern const char *cgen_parse_unsigned_integer extern const char *cgen_parse_unsigned_integer
@ -1253,7 +1253,7 @@ typedef struct cgen_cpu_desc
const char * (*parse_operand) const char * (*parse_operand)
PARAMS ((CGEN_CPU_DESC, int opindex_, const char **, PARAMS ((CGEN_CPU_DESC, int opindex_, const char **,
CGEN_FIELDS *fields_)); CGEN_FIELDS *fields_));
#ifdef BFD_VERSION_DATE #ifdef __BFD_H_SEEN__
const char * (*insert_operand) const char * (*insert_operand)
PARAMS ((CGEN_CPU_DESC, int opindex_, CGEN_FIELDS *fields_, PARAMS ((CGEN_CPU_DESC, int opindex_, CGEN_FIELDS *fields_,
CGEN_INSN_BYTES_PTR, bfd_vma pc_)); CGEN_INSN_BYTES_PTR, bfd_vma pc_));
@ -1286,7 +1286,7 @@ typedef struct cgen_cpu_desc
PARAMS ((CGEN_CPU_DESC, int opindex_, const CGEN_FIELDS *fields_)); PARAMS ((CGEN_CPU_DESC, int opindex_, const CGEN_FIELDS *fields_));
void (*set_int_operand) void (*set_int_operand)
PARAMS ((CGEN_CPU_DESC, int opindex_, CGEN_FIELDS *fields_, int value_)); PARAMS ((CGEN_CPU_DESC, int opindex_, CGEN_FIELDS *fields_, int value_));
#ifdef BFD_VERSION_DATE #ifdef __BFD_H_SEEN__
bfd_vma (*get_vma_operand) bfd_vma (*get_vma_operand)
PARAMS ((CGEN_CPU_DESC, int opindex_, const CGEN_FIELDS *fields_)); PARAMS ((CGEN_CPU_DESC, int opindex_, const CGEN_FIELDS *fields_));
void (*set_vma_operand) void (*set_vma_operand)