Merged in earlier cccp.c changes.

From-SVN: r9217
This commit is contained in:
Per Bothner 1995-03-21 17:05:16 -08:00
parent eb6b0c8886
commit 7e1278231a
2 changed files with 15 additions and 3 deletions

View File

@ -34,7 +34,7 @@ extern int errno;
#ifndef VMS #ifndef VMS
#ifndef HAVE_STRERROR #ifndef HAVE_STRERROR
extern int sys_nerr; extern int sys_nerr;
#if defined(bsd4_4) || defined(__NetBSD__) #if defined(bsd4_4)
extern const char *const sys_errlist[]; extern const char *const sys_errlist[];
#else #else
extern char *sys_errlist[]; extern char *sys_errlist[];

View File

@ -119,12 +119,24 @@ static long right_shift ();
#define HAVE_VALUE 4 #define HAVE_VALUE 4
/*#define UNSIGNEDP 8*/ /*#define UNSIGNEDP 8*/
#ifndef HOST_BITS_PER_WIDE_INT
#if HOST_BITS_PER_LONG > HOST_BITS_PER_INT
#define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_LONG
#define HOST_WIDE_INT long
#else
#define HOST_BITS_PER_WIDE_INT HOST_BITS_PER_INT
#define HOST_WIDE_INT int
#endif
#endif
struct operation { struct operation {
short op; short op;
char rprio; /* Priority of op (relative to it right operand). */ char rprio; /* Priority of op (relative to it right operand). */
char flags; char flags;
char unsignedp; /* true if value should be treated as unsigned */ char unsignedp; /* true if value should be treated as unsigned */
long value; /* The value logically "right" of op. */ HOST_WIDE_INT value; /* The value logically "right" of op. */
}; };
/* Take care of parsing a number (anything that starts with a digit). /* Take care of parsing a number (anything that starts with a digit).
@ -641,7 +653,7 @@ right_shift (pfile, a, unsignedp, b)
/* Parse and evaluate a C expression, reading from PFILE. /* Parse and evaluate a C expression, reading from PFILE.
Returns the value of the expression. */ Returns the value of the expression. */
long HOST_WIDE_INT
cpp_parse_expr (pfile) cpp_parse_expr (pfile)
cpp_reader *pfile; cpp_reader *pfile;
{ {