da51a4782b
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 |
||
---|---|---|
gcc |