mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-24 12:39:59 +00:00
Eliminate some uses of __STDC__.
This commit is contained in:
parent
0eee5820aa
commit
5bb367b1d9
@ -1,3 +1,19 @@
|
||||
2001-03-13 Andrew Cagney <ac131313@redhat.com>
|
||||
|
||||
* ui-out.h: Remove #if __STDC__, assume an ISO-C compiler.
|
||||
* m3-nat.c: Ditto.
|
||||
* p-lang.h: Ditto.
|
||||
* printcmd.c (printf_command): Ditto.
|
||||
* ch-exp.c (match_integer_literal): Ditto.
|
||||
* scm-tags.h: Ditto.
|
||||
* ser-go32.c: Ditto.
|
||||
* hppa-tdep.c (unwind_command): Ditto.
|
||||
* defs.h (volatile): Delete macro definition. Assume __STDC__.
|
||||
* remote-adapt.c (volatile): Ditto.
|
||||
* remote-eb.c (volatile): Ditto.
|
||||
* remote-mm.c (volatile): Ditto.
|
||||
* defs.h (alloca): Assume __STDC__, declare returning void *.
|
||||
|
||||
2001-03-08 Andrew Cagney <ac131313@redhat.com>
|
||||
|
||||
* inferior.h (ARCH_NUM_REGS): Delete definition.
|
||||
|
@ -1788,7 +1788,7 @@ match_integer_literal (void)
|
||||
else
|
||||
{
|
||||
yylval.typed_val.val = ival;
|
||||
#if defined(CC_HAS_LONG_LONG) && defined(__STDC__)
|
||||
#if defined(CC_HAS_LONG_LONG)
|
||||
if (ival > (LONGEST) 2147483647U || ival < -(LONGEST) 2147483648U)
|
||||
yylval.typed_val.type = builtin_type_long_long;
|
||||
else
|
||||
|
21
gdb/defs.h
21
gdb/defs.h
@ -764,23 +764,6 @@ enum val_prettyprint
|
||||
#define CONST_PTR const
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Allow things in gdb to be declared "volatile". If compiling ANSI, it
|
||||
* just works. If compiling with gcc but non-ansi, redefine to __volatile__.
|
||||
* If non-ansi, non-gcc, then eliminate "volatile" entirely, making those
|
||||
* objects be read-write rather than read-only.
|
||||
*/
|
||||
|
||||
#ifndef volatile
|
||||
#ifndef __STDC__
|
||||
#ifdef __GNUC__
|
||||
#define volatile __volatile__
|
||||
#else
|
||||
#define volatile /* nothing */
|
||||
#endif /* GNUC */
|
||||
#endif /* STDC */
|
||||
#endif /* volatile */
|
||||
|
||||
/* Defaults for system-wide constants (if not defined by xm.h, we fake it).
|
||||
FIXME: Assumes 2's complement arithmetic */
|
||||
|
||||
@ -993,11 +976,7 @@ extern void free ();
|
||||
/* We need to be careful not to declare this in a way which conflicts with
|
||||
bison. Bison never declares it as char *, but under various circumstances
|
||||
(like __hpux) we need to use void *. */
|
||||
#if defined (__STDC__) || defined (__hpux)
|
||||
extern void *alloca ();
|
||||
#else /* Don't use void *. */
|
||||
extern char *alloca ();
|
||||
#endif /* Don't use void *. */
|
||||
#endif /* Not _AIX */
|
||||
#endif /* Not HAVE_ALLOCA_H */
|
||||
#endif /* Not GNU C */
|
||||
|
@ -4524,11 +4524,7 @@ unwind_command (char *exp, int from_tty)
|
||||
printf_unfiltered ("\n\tregion_end = ");
|
||||
print_address (u->region_end, gdb_stdout);
|
||||
|
||||
#ifdef __STDC__
|
||||
#define pif(FLD) if (u->FLD) printf_unfiltered (" "#FLD);
|
||||
#else
|
||||
#define pif(FLD) if (u->FLD) printf_unfiltered (" FLD");
|
||||
#endif
|
||||
|
||||
printf_unfiltered ("\n\tflags =");
|
||||
pif (Cannot_unwind);
|
||||
@ -4553,11 +4549,7 @@ unwind_command (char *exp, int from_tty)
|
||||
|
||||
putchar_unfiltered ('\n');
|
||||
|
||||
#ifdef __STDC__
|
||||
#define pin(FLD) printf_unfiltered ("\t"#FLD" = 0x%x\n", u->FLD);
|
||||
#else
|
||||
#define pin(FLD) printf_unfiltered ("\tFLD = 0x%x\n", u->FLD);
|
||||
#endif
|
||||
|
||||
pin (Region_description);
|
||||
pin (Entry_FR);
|
||||
|
@ -1832,13 +1832,8 @@ mach3_read_inferior (CORE_ADDR addr, char *myaddr, int length)
|
||||
return length;
|
||||
}
|
||||
|
||||
#ifdef __STDC__
|
||||
#define CHK_GOTO_OUT(str,ret) \
|
||||
do if (ret != KERN_SUCCESS) { errstr = #str; goto out; } while(0)
|
||||
#else
|
||||
#define CHK_GOTO_OUT(str,ret) \
|
||||
do if (ret != KERN_SUCCESS) { errstr = str; goto out; } while(0)
|
||||
#endif
|
||||
|
||||
struct vm_region_list
|
||||
{
|
||||
@ -4225,11 +4220,7 @@ m3_open (char *arg, int from_tty)
|
||||
}
|
||||
|
||||
#ifdef DUMP_SYSCALL
|
||||
#ifdef __STDC__
|
||||
#define STR(x) #x
|
||||
#else
|
||||
#define STR(x) "x"
|
||||
#endif
|
||||
|
||||
char *bsd1_names[] =
|
||||
{
|
||||
|
@ -19,9 +19,7 @@
|
||||
|
||||
/* This file is derived from c-lang.h */
|
||||
|
||||
#ifdef __STDC__ /* Forward decls for prototypes */
|
||||
struct value;
|
||||
#endif
|
||||
|
||||
extern int pascal_parse (void); /* Defined in p-exp.y */
|
||||
|
||||
|
@ -2077,11 +2077,7 @@ printf_command (char *arg, int from_tty)
|
||||
*f++ = '\\';
|
||||
break;
|
||||
case 'a':
|
||||
#ifdef __STDC__
|
||||
*f++ = '\a';
|
||||
#else
|
||||
*f++ = '\007'; /* Bell */
|
||||
#endif
|
||||
break;
|
||||
case 'b':
|
||||
*f++ = '\b';
|
||||
|
@ -309,12 +309,6 @@ get_hex_regs (int n, int regno)
|
||||
/* Called when SIGALRM signal sent due to alarm() timeout. */
|
||||
#ifndef HAVE_TERMIO
|
||||
|
||||
#ifndef __STDC__
|
||||
#ifndef volatile
|
||||
#define volatile
|
||||
/**/
|
||||
# endif
|
||||
#endif
|
||||
volatile int n_alarms;
|
||||
|
||||
void
|
||||
|
@ -202,10 +202,6 @@ get_hex_regs (int n, int regno)
|
||||
/* Called when SIGALRM signal sent due to alarm() timeout. */
|
||||
#ifndef HAVE_TERMIO
|
||||
|
||||
#ifndef __STDC__
|
||||
#define volatile
|
||||
/**/
|
||||
#endif
|
||||
volatile int n_alarms;
|
||||
|
||||
void
|
||||
|
@ -118,12 +118,6 @@ FILE *mm_stream;
|
||||
/* Called when SIGALRM signal sent due to alarm() timeout. */
|
||||
#ifndef HAVE_TERMIO
|
||||
|
||||
#ifndef __STDC__
|
||||
#ifndef volatile
|
||||
#define volatile
|
||||
/**/
|
||||
# endif
|
||||
#endif
|
||||
volatile int n_alarms;
|
||||
|
||||
static void
|
||||
|
@ -375,11 +375,5 @@ extern int scm_tc16_key_vector;
|
||||
|
||||
#endif /* 0 */
|
||||
|
||||
#ifdef __STDC__
|
||||
|
||||
#else /* STDC */
|
||||
|
||||
#endif /* STDC */
|
||||
|
||||
|
||||
#endif /* TAGSH */
|
||||
|
@ -355,11 +355,7 @@ dos_comisr (int irq)
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef __STDC__
|
||||
#define ISRNAME(x) dos_comisr##x
|
||||
#else
|
||||
#define ISRNAME(x) dos_comisr/**/x
|
||||
#endif
|
||||
#define ISR(x) static void ISRNAME(x)() {dos_comisr(x);}
|
||||
|
||||
ISR (0) ISR (1) ISR (2) ISR (3)
|
||||
|
@ -25,10 +25,8 @@
|
||||
|
||||
/* The ui_out structure */
|
||||
|
||||
#if __STDC__
|
||||
struct ui_out;
|
||||
struct ui_out_data;
|
||||
#endif
|
||||
|
||||
|
||||
/* the current ui_out */
|
||||
|
Loading…
Reference in New Issue
Block a user