diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2001-01-09 17:00:21 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2001-01-09 17:00:21 +0000 |
commit | 0baf010252f30d7af7121ddcb9781ffed64ac43f (patch) | |
tree | 1bda9a33f727c74183dd1a4cf9534e94eccf8df0 /opcodes/cgen-asm.in | |
parent | 5170a3bde82f20ba157a2ac26869b171ca79d51b (diff) | |
download | binutils-redhat-0baf010252f30d7af7121ddcb9781ffed64ac43f.tar.gz |
2001-01-09 Jeff Johnston <jjohnstn@redhat.com>
* cgen-asm.in (parse_insn_normal): Changed syn to be
CGEN_SYNTAX_CHAR_TYPE. Changed all references to *syn
as character to use CGEN_SYNTAX_CHAR macro and all comparisons
to '\0' to use 0 instead.
* cgen-dis.in (print_insn_normal): Ditto.
* cgen-ibld.in (insert_insn_normal, extract_insn_normal): Ditto.
Diffstat (limited to 'opcodes/cgen-asm.in')
-rw-r--r-- | opcodes/cgen-asm.in | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/opcodes/cgen-asm.in b/opcodes/cgen-asm.in index 9915f065b7..d2106ed7d0 100644 --- a/opcodes/cgen-asm.in +++ b/opcodes/cgen-asm.in @@ -4,7 +4,7 @@ THIS FILE IS MACHINE GENERATED WITH CGEN. - the resultant file is machine generated, cgen-asm.in isn't -Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc. +Copyright (C) 1996, 1997, 1998, 1999, 2001 Free Software Foundation, Inc. This file is part of the GNU Binutils and GDB, the GNU debugger. @@ -71,7 +71,7 @@ parse_insn_normal (cd, insn, strp, fields) const char *str = *strp; const char *errmsg; const char *p; - const unsigned char * syn; + const CGEN_SYNTAX_CHAR_TYPE * syn; #ifdef CGEN_MNEMONIC_OPERANDS /* FIXME: wip */ int past_opcode_p; @@ -121,7 +121,7 @@ parse_insn_normal (cd, insn, strp, fields) if (tolower (*str) == tolower (CGEN_SYNTAX_CHAR (* syn))) { #ifdef CGEN_MNEMONIC_OPERANDS - if (* syn == ' ') + if (CGEN_SYNTAX_CHAR(* syn) == ' ') past_opcode_p = 1; #endif ++ syn; @@ -133,7 +133,7 @@ parse_insn_normal (cd, insn, strp, fields) static char msg [80]; /* xgettext:c-format */ sprintf (msg, _("syntax error (expected char `%c', found `%c')"), - *syn, *str); + CGEN_SYNTAX_CHAR(*syn), *str); return msg; } else @@ -142,7 +142,7 @@ parse_insn_normal (cd, insn, strp, fields) static char msg [80]; /* xgettext:c-format */ sprintf (msg, _("syntax error (expected char `%c', found end of instruction)"), - *syn); + CGEN_SYNTAX_CHAR(*syn)); return msg; } continue; @@ -159,7 +159,7 @@ parse_insn_normal (cd, insn, strp, fields) } /* If we're at the end of the syntax string, we're done. */ - if (* syn == '\0') + if (* syn == 0) { /* FIXME: For the moment we assume a valid `str' can only contain blanks now. IE: We needn't try again with a longer version of |