From 1486870d76c8ec5ab28664fa7dcadd8ccc5e9723 Mon Sep 17 00:00:00 2001 From: ghazi Date: Mon, 30 Mar 1998 12:05:54 +0000 Subject: 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 --- gcc/cppexp.c | 43 ++++--------------------------------------- 1 file changed, 4 insertions(+), 39 deletions(-) (limited to 'gcc/cppexp.c') 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 -#endif #ifdef MULTIBYTE_CHARS #include #endif -#if HAVE_LIMITS_H -# include -#endif -#ifdef HAVE_STRING_H -#include -#else -#ifdef HAVE_STRINGS_H -#include -#endif -#endif - -#include - /* 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 -- cgit v1.2.1