diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-02-02 02:28:40 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-02-02 02:28:40 +0000 |
commit | ddfe3c15876eb717dbdc16cb79c4c20340d7443e (patch) | |
tree | 862fa22e778b9e0324825eed8b6bf56729786ba8 /gdb/language.h | |
parent | 60e955f1b0b88195ff1948ef2f9d33d914902c22 (diff) | |
download | gdb-ddfe3c15876eb717dbdc16cb79c4c20340d7443e.zip gdb-ddfe3c15876eb717dbdc16cb79c4c20340d7443e.tar.gz gdb-ddfe3c15876eb717dbdc16cb79c4c20340d7443e.tar.bz2 |
* language.h (type_error, range_error): Make string parameter
constant.
* language.c (warning_pre_print): Delete extern declaration.
* dwarfread.c (warning_pre_print): Ditto.
* language.c (type_error, range_error): Rewrite to use verror and
vwarning instead of warning_begin.
Diffstat (limited to 'gdb/language.h')
-rw-r--r-- | gdb/language.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/language.h b/gdb/language.h index 01d75bd..88375db 100644 --- a/gdb/language.h +++ b/gdb/language.h @@ -440,11 +440,9 @@ extern void op_error (char *fmt, enum exp_opcode, int); #define range_op_error(f,o) \ op_error((f),(o),range_check==range_check_on ? 1 : 0) -extern void type_error (char *, ...) ATTR_FORMAT (printf, 1, 2); +extern void type_error (const char *, ...) ATTR_FORMAT (printf, 1, 2); -void -range_error (char *, ...) -ATTR_FORMAT (printf, 1, 2); +extern void range_error (const char *, ...) ATTR_FORMAT (printf, 1, 2); /* Data: Does this value represent "truth" to the current language? */ |