diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1996-01-16 09:42:30 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1996-01-16 09:42:30 -0500 |
commit | da51a4782bacca6fc41eac7695ce687deb797b8e (patch) | |
tree | ef243b8febc1419214f2b1725ea77c6e4d65e136 /gcc/cppexp.c | |
parent | 2994a9acb75088ac8d18f70d10963a47c728130a (diff) | |
download | gcc-da51a4782bacca6fc41eac7695ce687deb797b8e.zip gcc-da51a4782bacca6fc41eac7695ce687deb797b8e.tar.gz gcc-da51a4782bacca6fc41eac7695ce687deb797b8e.tar.bz2 |
General code cleanup in the style of 1995-04-01 change.
Add prototypes for static functions.
Add parentheses suggested by `gcc -Wparentheses'.
Use `long' uniformly, instead of long, int, HOST_WIDE_INT mess.
(struct constant): Use `signedp' flag (with sign bit) instead of
`unsignedp' flag; it's a little more convenient.
(HAVE_STDLIB_H, STDC_HEADERS, LONG_MASK, __attribute__, PROTO,
VA_START, PRINTF_ALIST, PRINTF_DCL, PRINTF_PROTO, PRINTF_PROTO_1,
vfprintf, SIGNED, UNSIGNED): New symbols.
<stdlib.h>: Include if HAVE_STDLIB_H.
<string.h>: New include.
(HOST_BITS_PER_WIDE_INT, HOST_WIDE_INT): Remove.
(yylex, yyerror, expression_value, parse_number,
initialize_random_junk): Now static.
(overflow_sum_sign): Renamed from possible_sum_sign, with an
extra arg SIGNEDP.
(parse_number): Inline strcmp when checking for "0x".
(yylex): Keep track of mask needed when decoding wide characters.
(parse_escape): New arg RESULT_MASK; use it instead of
assuming char width.
(yylex, parse_escape, parse_c_expression): Store all host
integers as long, not int or HOST_WIDE_INT.
(left_shift): No need to do signed left shifts separately.
These changes are for the test program (if TEST_EXP_READER):
(pedantic, traditional): Allocate storage.
(main): Set pedantic, traditional, yydebug depending on args.
(is_hor_space, warning, lookup): Change types and implementation
to match rest of program.
(pedwarn, check_assertion, xmalloc): New functions.
From-SVN: r11024
Diffstat (limited to 'gcc/cppexp.c')
0 files changed, 0 insertions, 0 deletions