+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.
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
#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 */
/* 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 */
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);
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);
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
{
}
#ifdef DUMP_SYSCALL
-#ifdef __STDC__
#define STR(x) #x
-#else
-#define STR(x) "x"
-#endif
char *bsd1_names[] =
{
/* 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 */
*f++ = '\\';
break;
case 'a':
-#ifdef __STDC__
*f++ = '\a';
-#else
- *f++ = '\007'; /* Bell */
-#endif
break;
case 'b':
*f++ = '\b';
/* 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
/* Called when SIGALRM signal sent due to alarm() timeout. */
#ifndef HAVE_TERMIO
-#ifndef __STDC__
-#define volatile
-/**/
-#endif
volatile int n_alarms;
void
/* 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
\f
#endif /* 0 */
\f
-#ifdef __STDC__
-
-#else /* STDC */
-
-#endif /* STDC */
-
#endif /* TAGSH */
}
}
-#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)
/* The ui_out structure */
-#if __STDC__
struct ui_out;
struct ui_out_data;
-#endif
/* the current ui_out */