diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-03 20:53:05 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-03 20:53:05 +0000 |
commit | 841667053837143adaa91e24e7214b191ee179a1 (patch) | |
tree | 9317be258ee227dd26354b571fba81483592c1ab /gcc/c-lex.c | |
parent | 95e7a7d78daf4705a1932bfaa4eca099e1d92458 (diff) | |
download | gcc-841667053837143adaa91e24e7214b191ee179a1.tar.gz |
* c-aux-info.c, c-common.c, c-common.h, c-cppbuiltin.c, c-decl.c,
c-format.c, c-incpath.c, c-lex.c, c-objc-common.c, c-opts.c,
c-parse.in, c-pch.c, c-ppoutput.c, c-pragma.c, c-typeck.c: Follow
code formatting conventions.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88462 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-lex.c')
-rw-r--r-- | gcc/c-lex.c | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c index aff84e0ec89..98f60f639d4 100644 --- a/gcc/c-lex.c +++ b/gcc/c-lex.c @@ -121,9 +121,9 @@ get_fileinfo (const char *name) struct c_fileinfo *fi; if (!file_info_tree) - file_info_tree = splay_tree_new ((splay_tree_compare_fn)strcmp, + file_info_tree = splay_tree_new ((splay_tree_compare_fn) strcmp, 0, - (splay_tree_delete_value_fn)free); + (splay_tree_delete_value_fn) free); n = splay_tree_lookup (file_info_tree, (splay_tree_key) name); if (n) @@ -172,7 +172,7 @@ dump_time_statistics (void) print_time ("header files (total)", header_time); print_time ("main file (total)", this_time - body_time); fprintf (stderr, "ratio = %g : 1\n", - (double)header_time / (double)(this_time - body_time)); + (double) header_time / (double) (this_time - body_time)); fprintf (stderr, "\n******\n"); splay_tree_foreach (file_info_tree, dump_one_header, 0); @@ -184,14 +184,14 @@ cb_ident (cpp_reader * ARG_UNUSED (pfile), const cpp_string * ARG_UNUSED (str)) { #ifdef ASM_OUTPUT_IDENT - if (! flag_no_ident) + if (!flag_no_ident) { /* Convert escapes in the string. */ cpp_string cstr = { 0, 0 }; if (cpp_interpret_string (pfile, str, 1, &cstr, false)) { ASM_OUTPUT_IDENT (asm_out_file, (const char *) cstr.text); - free ((void *)cstr.text); + free ((void *) cstr.text); } } #endif @@ -225,7 +225,7 @@ fe_file_change (const struct line_map *new_map) { /* Don't stack the main buffer on the input stack; we already did in compile_file. */ - if (! MAIN_FILE_P (new_map)) + if (!MAIN_FILE_P (new_map)) { #ifdef USE_MAPPED_LOCATION int included_at = LAST_SOURCE_LINE_LOCATION (new_map - 1); @@ -437,7 +437,7 @@ c_lex_with_flags (tree *value, unsigned char *cpp_flags) /* else fall through */ case CPP_PRAGMA: - *value = build_string (tok->val.str.len, (char *)tok->val.str.text); + *value = build_string (tok->val.str.len, (char *) tok->val.str.text); break; /* These tokens should not be visible outside cpplib. */ @@ -451,7 +451,7 @@ c_lex_with_flags (tree *value, unsigned char *cpp_flags) break; } - if (! no_more_pch) + if (!no_more_pch) { no_more_pch = true; c_common_no_more_pch (); @@ -490,8 +490,8 @@ narrowest_unsigned_type (unsigned HOST_WIDE_INT low, { tree upper = TYPE_MAX_VALUE (integer_types[itk]); - if ((unsigned HOST_WIDE_INT)TREE_INT_CST_HIGH (upper) > high - || ((unsigned HOST_WIDE_INT)TREE_INT_CST_HIGH (upper) == high + if ((unsigned HOST_WIDE_INT) TREE_INT_CST_HIGH (upper) > high + || ((unsigned HOST_WIDE_INT) TREE_INT_CST_HIGH (upper) == high && TREE_INT_CST_LOW (upper) >= low)) return itk; } @@ -518,8 +518,8 @@ narrowest_signed_type (unsigned HOST_WIDE_INT low, { tree upper = TYPE_MAX_VALUE (integer_types[itk]); - if ((unsigned HOST_WIDE_INT)TREE_INT_CST_HIGH (upper) > high - || ((unsigned HOST_WIDE_INT)TREE_INT_CST_HIGH (upper) == high + if ((unsigned HOST_WIDE_INT) TREE_INT_CST_HIGH (upper) > high + || ((unsigned HOST_WIDE_INT) TREE_INT_CST_HIGH (upper) == high && TREE_INT_CST_LOW (upper) >= low)) return itk; } @@ -592,7 +592,7 @@ interpret_integer (const cpp_token *token, unsigned int flags) if (itk > itk_unsigned_long && (flags & CPP_N_WIDTH) != CPP_N_LARGE - && ! in_system_header && ! flag_isoc99) + && !in_system_header && !flag_isoc99) pedwarn ("integer constant is too large for %qs type", (flags & CPP_N_UNSIGNED) ? "unsigned long" : "long"); @@ -741,8 +741,8 @@ lex_string (const cpp_token *tok, tree *valp, bool objc_string) ? cpp_interpret_string : cpp_interpret_string_notranslate) (parse_in, strs, count, &istr, wide)) { - value = build_string (istr.len, (char *)istr.text); - free ((void *)istr.text); + value = build_string (istr.len, (char *) istr.text); + free ((void *) istr.text); if (c_lex_string_translate == -1) { @@ -752,17 +752,17 @@ lex_string (const cpp_token *tok, tree *valp, bool objc_string) then the untranslated parsing will always succeed. */ gcc_assert (xlated); - if (TREE_STRING_LENGTH (value) != (int)istr.len - || 0 != strncmp (TREE_STRING_POINTER (value), (char *)istr.text, + if (TREE_STRING_LENGTH (value) != (int) istr.len + || 0 != strncmp (TREE_STRING_POINTER (value), (char *) istr.text, istr.len)) { /* Arrange for us to return the untranslated string in *valp, but to set up the C type of the translated one. */ - *valp = build_string (istr.len, (char *)istr.text); + *valp = build_string (istr.len, (char *) istr.text); valp = &TREE_CHAIN (*valp); } - free ((void *)istr.text); + free ((void *) istr.text); } } else |