diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 1999-09-16 22:20:44 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 1999-09-16 22:20:44 +0000 |
commit | 92a438d13c876561ee189d9eb274f2dd8151ac91 (patch) | |
tree | 5e3393cc1483b31e95e58de4c913fd832b1ce906 /gcc/fixinc | |
parent | 7bd41ea6c8e6e08d4382230a82e6655c0d0ab477 (diff) | |
download | gcc-92a438d13c876561ee189d9eb274f2dd8151ac91.zip gcc-92a438d13c876561ee189d9eb274f2dd8151ac91.tar.gz gcc-92a438d13c876561ee189d9eb274f2dd8151ac91.tar.bz2 |
system.h (CTYPE_CONV, [...]): New macros.
* system.h (CTYPE_CONV, TOUPPER, TOLOWER): New macros. Use
CTYPE_CONV in all ctype macros.
* cccp.c (initialize_char_syntax): Use uppercase ctype macro
from system.h.
* cexp.y (initialize_random_junk): Likewise.
* c4x.c (c4x_interrupt_function_p, c4x_handle_pragma): Likewise.
* i370.c (handle_pragma): Likewise.
* i370.h (ASM_OUTPUT_LABELREF, ASM_OUTPUT_ASCII): Likewise.
* v850.c (override_options): Likewise.
* doprint.c (_doprnt): Likewise.
* fixinc/fixincl.c (main, quoted_file_exists, extract_quoted_files):
Likewise.
* fixinc/server.c (load_data): Likewise.
* fold-const.c (real_hex_to_f): Likewise.
* genattr.c (write_upcase, gen_attr): Likewise.
* genattrtab.c (convert_const_symbol_ref, evaluate_eq_attr,
write_upcase): Likewise.
* genemit.c (print_code): Likewise.
* genopinit.c (gen_insn): Likewise.
* genpeep.c (print_code): Likewise.
* genrecog.c (print_code): Likewise.
* optabs.c (init_libfuncs): Likewise.
ch:
* lex.c (maybe_downcase, getlc, handle_generic_pragma,
check_newline): Likewise.
f:
* bad.c (ffebad_finish): Likewise.
* fini.c (main): Likewise.
* intrin.c (ffeintrin_init_0): Likewise.
* lex.c (ffelex_hash_): Likewise.
* src.c (ffesrc_init_1): Likewise.
From-SVN: r29463
Diffstat (limited to 'gcc/fixinc')
-rw-r--r-- | gcc/fixinc/fixincl.c | 11 | ||||
-rw-r--r-- | gcc/fixinc/server.c | 2 |
2 files changed, 7 insertions, 6 deletions
diff --git a/gcc/fixinc/fixincl.c b/gcc/fixinc/fixincl.c index 036c6fa..1a570f2 100644 --- a/gcc/fixinc/fixincl.c +++ b/gcc/fixinc/fixincl.c @@ -221,13 +221,13 @@ main (argc, argv) { if (fgets (pz_buf, MAXPATHLEN, stdin) == (char *) NULL) break; - while (isspace (*pz_buf)) + while (ISSPACE (*pz_buf)) pz_buf++; if ((*pz_buf == '\0') || (*pz_buf == '#')) continue; apz_names[file_name_ct++] = pz_buf; pz_buf += strlen (pz_buf); - while (isspace (pz_buf[-1])) + while (ISSPACE (pz_buf[-1])) pz_buf--; *pz_buf++ = '\0'; } @@ -813,7 +813,7 @@ quoted_file_exists (pz_src_path, pz_file_path, pz_file) for (;;) { char ch = *pz_file++; - if (! isgraph( ch )) + if (! ISGRAPH(ch)) return 0; if (ch == '"') break; @@ -875,9 +875,10 @@ extract_quoted_files (pz_data, pz_file_name, p_re_match) pz_incl_quot += p_re_match->rm_so; /* Skip forward to the included file name */ - while (isspace (*pz_incl_quot)) + while (ISSPACE (*pz_incl_quot)) pz_incl_quot++; - while (isspace (*++pz_incl_quot)) + /* ISSPACE() may evaluate is argument more than once! */ + while ((++pz_incl_quot, ISSPACE (*pz_incl_quot))) ; pz_incl_quot += sizeof ("include") - 1; while (*pz_incl_quot++ != '"') diff --git a/gcc/fixinc/server.c b/gcc/fixinc/server.c index 9f9bd6b..06fa26a 100644 --- a/gcc/fixinc/server.c +++ b/gcc/fixinc/server.c @@ -163,7 +163,7 @@ load_data (fp) return (char *) NULL; } - while ((pz_scan > pz_text) && isspace (pz_scan[-1])) + while ((pz_scan > pz_text) && ISSPACE (pz_scan[-1])) pz_scan--; *pz_scan = NUL; return realloc ((void *) pz_text, strlen (pz_text) + 1); |