diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1998-03-30 12:05:54 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1998-03-30 12:05:54 +0000 |
commit | b04cd50711e40415a169d0f157e4ab15c5344384 (patch) | |
tree | 89dd65e70bf50b33a26d779913cd79c789b77b0b /gcc/cppexp.c | |
parent | 1aa5d112c8397e861eea2cbfba02c7e8f1ffae97 (diff) | |
download | gcc-b04cd50711e40415a169d0f157e4ab15c5344384.zip gcc-b04cd50711e40415a169d0f157e4ab15c5344384.tar.gz gcc-b04cd50711e40415a169d0f157e4ab15c5344384.tar.bz2 |
More cutover to system.h:
* Makefile.in (cppalloc.o, cpperror.o, cppexp.o, cpphash.o,
cpplib.o, cppmain.o, fix-header.o, gcov.o, gen-protos.o,
gengenrtl.o, halfpic.o, hash.o, scan-decls.o, scan.o): Depend on
system.h.
* cpphash.c: Include config.h.
* cppalloc.c: Include system.h. Add parameters to various
function prototypes.
* cpperror.c: Likewise.
* cppexp.c: Likewise.
* cpphash.c: Likewise.
* cpplib.c: Likewise.
* cppmain.c: Likewise.
* fix-header.c: Likewise.
* gcov.c: Likewise.
* gen-protos.c: Likewise.
* gengenrtl.c: Likewise.
* halfpic.c: Likewise.
* hash.c: Likewise.
* scan-decls.c: Likewise.
* scan.c: Likewise.
From-SVN: r18911
Diffstat (limited to 'gcc/cppexp.c')
-rw-r--r-- | gcc/cppexp.c | 43 |
1 files changed, 4 insertions, 39 deletions
diff --git a/gcc/cppexp.c b/gcc/cppexp.c index 347ee39..bf0b8a0 100644 --- a/gcc/cppexp.c +++ b/gcc/cppexp.c @@ -25,32 +25,17 @@ Written by Per Bothner 1994. */ /* Parse a C expression from text in a string */ #include "config.h" +#include "system.h" #include "cpplib.h" #include "gansidecl.h" extern char *xmalloc PARAMS ((unsigned)); extern char *xrealloc PARAMS ((void *, unsigned)); -#ifdef HAVE_STDLIB_H -#include <stdlib.h> -#endif #ifdef MULTIBYTE_CHARS #include <locale.h> #endif -#if HAVE_LIMITS_H -# include <limits.h> -#endif -#ifdef HAVE_STRING_H -#include <string.h> -#else -#ifdef HAVE_STRINGS_H -#include <strings.h> -#endif -#endif - -#include <stdio.h> - /* This is used for communicating lists of keywords with cccp.c. */ struct arglist { struct arglist *next; @@ -59,26 +44,6 @@ struct arglist { int argno; }; -/* Define a generic NULL if one hasn't already been defined. */ - -#ifndef NULL -#define NULL 0 -#endif - -#ifndef GENERIC_PTR -#if defined (USE_PROTOTYPES) ? USE_PROTOTYPES : defined (__STDC__) -#define GENERIC_PTR void * -#else -#define GENERIC_PTR char * -#endif -#endif - -#ifndef NULL_PTR -#define NULL_PTR ((GENERIC_PTR) 0) -#endif - -extern char *xmalloc (); - #ifndef CHAR_TYPE_SIZE #define CHAR_TYPE_SIZE BITS_PER_UNIT #endif @@ -115,9 +80,9 @@ extern char *xmalloc (); number with SUM's sign, where A, B, and SUM are all C integers. */ #define possible_sum_sign(a, b, sum) ((((a) ^ (b)) | ~ ((a) ^ (sum))) < 0) -static void integer_overflow (); -static long left_shift (); -static long right_shift (); +static void integer_overflow PARAMS ((cpp_reader *)); +static long left_shift PARAMS ((cpp_reader *, long, int, unsigned long)); +static long right_shift PARAMS ((cpp_reader *, long, int, unsigned long)); #define ERROR 299 #define OROR 300 |