]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Zap __STDC__ references.
authorAndrew Cagney <cagney@redhat.com>
Mon, 19 Mar 2001 23:31:41 +0000 (23:31 +0000)
committerAndrew Cagney <cagney@redhat.com>
Mon, 19 Mar 2001 23:31:41 +0000 (23:31 +0000)
gdb/ChangeLog
gdb/cli/cli-cmds.c
gdb/config/mips/xm-mips.h
gdb/eval.c
gdb/mi/ChangeLog
gdb/mi/mi-out.h

index 90f5fd7178565185dd2c5c6a16caf150370ddc22..f899681287bc0bd35850cc4451845055d700ee4d 100644 (file)
@@ -1,3 +1,9 @@
+2001-03-19  Andrew Cagney  <ac131313@redhat.com>
+
+       * eval.c (evaluate_subexp): Remove #ifdef __STDC__ and ``inline''.
+       * config/mips/xm-mips.h (offsetof): Define when !GNUC not !STDC.
+       * cli/cli-cmds.c (init_cli_cmds): Remove #ifdef __STDC__
+
 2001-03-19  Andrew Cagney  <ac131313@redhat.com>
 
        * TODO: List known problems with TUI.
index 19b597062b2293cece16e1864e45640f397b125b..41001e9ed31798b12f04407b1e9603aa0d2e84a2 100644 (file)
@@ -664,18 +664,10 @@ End with a line of just \"end\".\n\
 Use the \"document\" command to give documentation for the new command.\n\
 Commands defined in this way may have up to ten arguments.");
 
-#ifdef __STDC__
   c = add_cmd ("source", class_support, source_command,
               "Read commands from a file named FILE.\n\
 Note that the file \"" GDBINIT_FILENAME "\" is read automatically in this way\n\
 when gdb is started.", &cmdlist);
-#else
-  /* Punt file name, we can't help it easily.  */
-  c = add_cmd ("source", class_support, source_command,
-              "Read commands from a file named FILE.\n\
-Note that the file \".gdbinit\" is read automatically in this way\n\
-when gdb is started.", &cmdlist);
-#endif
   c->completer = filename_completer;
 
   add_com ("quit", class_support, quit_command, "Exit gdb.");
index f7e5f3cfe9c3f2c1e8e6cfefb3d3b89a60f96f20..4b40fc8ee68736e0b85f1a07ffbd6d5df822c983 100644 (file)
@@ -36,7 +36,7 @@
 #endif
 #endif
 
-#if ! defined (__STDC__) && ! defined (offsetof)
+#if ! defined (__GNUC__) && ! defined (offsetof)
 #define offsetof(TYPE, MEMBER) ((unsigned long) &((TYPE *)0)->MEMBER)
 #endif
 
index 71cd9282fecbebd94f1c291f68aa71dffde5aad8..ceed262543ed788e587d017fce0ccb53a7427ea0 100644 (file)
@@ -61,9 +61,6 @@ static LONGEST
 init_array_element (value_ptr, value_ptr, struct expression *,
                    int *, enum noside, LONGEST, LONGEST);
 
-#if defined (__GNUC__) && !__STDC__
-inline
-#endif
 static value_ptr
 evaluate_subexp (struct type *expect_type, register struct expression *exp,
                 register int *pos, enum noside noside)
index 6567642ad4f4fd4ca35945a892b152c8f0f48306..5215ca5a6896a526a3f9917d581f57ffdba72e9e 100644 (file)
@@ -1,3 +1,7 @@
+2001-03-19  Andrew Cagney  <ac131313@redhat.com>
+
+       * mi-out.h: Remove #ifdef __STDC__.
+
 2001-03-08  Andrew Cagney  <ac131313@redhat.com>
 
        * mi-main.c (mi_cmd_data_list_register_names): Use NUM_REGS, not
index 0554e1c2760d76689d6cc8a909b50fb2ef38b13a..37a643ca6386a46342a60c84c4c9e3127c7bba8e 100644 (file)
 #ifndef MI_OUT_H
 #define MI_OUT_H 1
 
-#if __STDC__
 struct ui_out;
 struct ui_file;
-#endif
 
 extern struct ui_out *mi_out_new (void);
 extern void mi_out_put (struct ui_out *uiout, struct ui_file *stream);