* language.c, language.h: Make some things const.

* expression.h, main.c:  const spreads like ooze.
This commit is contained in:
John Gilmore
1992-01-31 08:50:52 +00:00
parent 287f81eb64
commit 0c6efbccaf
3 changed files with 26 additions and 3 deletions

View File

@ -1,7 +1,30 @@
Fri Jan 31 00:05:01 1992 John Gilmore (gnu at cygnus.com)
* exec.c (exec_files_info): Split out into print_section_info.
Print BFD filename of each section if it's not the default one.
* core.c (core_files_info): Call print_section_info.
* xm-vax.h: Include a few system header files whose definitions
must precede defs.h.
* language.c, language.h: Make some things const.
* expression.h, main.c: const spreads like ooze.
* mem-break.c (break_insn, break_insn_size): Use unsigned chars,
since BREAKPOINT values can be >0x80.
Thu Jan 30 17:21:14 1992 Stu Grossman (grossman at cygnus.com) Thu Jan 30 17:21:14 1992 Stu Grossman (grossman at cygnus.com)
* infrun.c, xm-i386sco.h: SCO needs to use setpgid(). * infrun.c, xm-i386sco.h: SCO needs to use setpgid().
Thu Jan 30 01:04:23 1992 John Gilmore (gnu at cygnus.com)
* sparc-pinsn.c: Remove kludge for preferring architectures.
Remove #ifdef's for SORT_NEEDED. We need to sort the table, now
and forever. Add `add' instruction to the set that get checked
for a preceding `sethi' in order to print an absolute address.
Corresponding changes in ../include/opcode/sparc.h needed
to eliminate garbage instructions.
Wed Jan 29 19:24:34 1992 Per Bothner (bothner at cygnus.com) Wed Jan 29 19:24:34 1992 Per Bothner (bothner at cygnus.com)
* mipsread.c (parse_partial_symbols): Make sure partial * mipsread.c (parse_partial_symbols): Make sure partial

View File

@ -47,7 +47,7 @@ extern volatile void return_to_top_level ();
static void set_type_range (); static void set_type_range ();
/* Forward declaration */ /* Forward declaration */
extern struct language_defn unknown_language_defn; extern const struct language_defn unknown_language_defn;
/* The current (default at startup) state of type and range checking. /* The current (default at startup) state of type and range checking.
(If the modes are set to "auto", though, these are changed based (If the modes are set to "auto", though, these are changed based
@ -61,7 +61,7 @@ enum type_check type_check = type_check_off;
/* The current language and language_mode (see language.h) */ /* The current language and language_mode (see language.h) */
struct language_defn *current_language = &unknown_language_defn; const struct language_defn *current_language = &unknown_language_defn;
enum language_mode language_mode = language_mode_auto; enum language_mode language_mode = language_mode_auto;
/* The list of supported languages. The list itself is malloc'd. */ /* The list of supported languages. The list itself is malloc'd. */

View File

@ -85,7 +85,7 @@ const struct op_print
always points to *some* valid struct; it can be used without checking always points to *some* valid struct; it can be used without checking
it for validity. */ it for validity. */
extern struct language_defn *current_language; extern const struct language_defn *current_language;
/* language_mode == /* language_mode ==
language_mode_auto: current_language automatically set upon selection language_mode_auto: current_language automatically set upon selection