This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] Zap more __STDC__
- To: GDB Patches <gdb-patches at sourceware dot cygnus dot com>
- Subject: [patch] Zap more __STDC__
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Mon, 19 Mar 2001 18:27:45 -0500
FYI,
Since the last one didn't apepar to raise an eyebrow :-)
Andrew
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__
Index: mi/ChangeLog
2001-03-19 Andrew Cagney <ac131313@redhat.com>
* mi-out.h: Remove #ifdef __STDC__.
Index: eval.c
===================================================================
RCS file: /cvs/src/src/gdb/eval.c,v
retrieving revision 1.11
diff -p -r1.11 eval.c
*** eval.c 2001/03/07 02:57:08 1.11
--- eval.c 2001/03/19 23:25:26
*************** static LONGEST
*** 61,69 ****
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)
--- 61,66 ----
Index: cli/cli-cmds.c
===================================================================
RCS file: /cvs/src/src/gdb/cli/cli-cmds.c,v
retrieving revision 1.4
diff -p -r1.4 cli-cmds.c
*** cli-cmds.c 2001/02/19 11:47:15 1.4
--- cli-cmds.c 2001/03/19 23:25:27
*************** End with a line of just \"end\".\n\
*** 664,681 ****
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.");
--- 664,673 ----
Index: config/mips/xm-mips.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/xm-mips.h,v
retrieving revision 1.2
diff -p -r1.2 xm-mips.h
*** xm-mips.h 2001/03/06 08:21:32 1.2
--- xm-mips.h 2001/03/19 23:25:27
***************
*** 36,42 ****
#endif
#endif
! #if ! defined (__STDC__) && ! defined (offsetof)
#define offsetof(TYPE, MEMBER) ((unsigned long) &((TYPE *)0)->MEMBER)
#endif
--- 36,42 ----
#endif
#endif
! #if ! defined (__GNUC__) && ! defined (offsetof)
#define offsetof(TYPE, MEMBER) ((unsigned long) &((TYPE *)0)->MEMBER)
#endif
Index: mi/mi-out.h
===================================================================
RCS file: /cvs/src/src/gdb/mi/mi-out.h,v
retrieving revision 1.4
diff -p -r1.4 mi-out.h
*** mi-out.h 2001/03/06 08:21:45 1.4
--- mi-out.h 2001/03/19 23:25:28
***************
*** 22,31 ****
#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);
--- 22,29 ----