diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-03-30 12:05:54 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-03-30 12:05:54 +0000 |
commit | 1486870d76c8ec5ab28664fa7dcadd8ccc5e9723 (patch) | |
tree | 89dd65e70bf50b33a26d779913cd79c789b77b0b /gcc/cppexp.c | |
parent | 70f75771561269ae78629d30ec70f44afc67d5b0 (diff) | |
download | gcc-1486870d76c8ec5ab28664fa7dcadd8ccc5e9723.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@18911 138bc75d-0d04-0410-961f-82ee72b054a4
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 347ee390fa5..bf0b8a03d14 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 |