diff options
author | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-05-06 22:59:57 +0000 |
---|---|---|
committer | mrs <mrs@138bc75d-0d04-0410-961f-82ee72b054a4> | 1997-05-06 22:59:57 +0000 |
commit | 37808e3a06df2a78362bff6389cc0b2e2812f490 (patch) | |
tree | 9ed16f1465684c89cd2e6d3969753dc718b25ad2 /gcc/cccp.c | |
parent | e54293e1b439fdc08b51ca5f04bd25d6ae9ba17c (diff) | |
download | gcc-37808e3a06df2a78362bff6389cc0b2e2812f490.tar.gz |
reformat a little to match GNU coding standards.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@14023 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cccp.c')
-rw-r--r-- | gcc/cccp.c | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/gcc/cccp.c b/gcc/cccp.c index 0725465841c..0cc57cd149f 100644 --- a/gcc/cccp.c +++ b/gcc/cccp.c @@ -1489,10 +1489,10 @@ main (argc, argv) if (i + 1 == argc) fatal ("Filename missing after -pcp option"); pcp_fname = argv[++i]; - pcp_outfile = - ((pcp_fname[0] != '-' || pcp_fname[1] != '\0') - ? fopen (pcp_fname, "w") - : stdout); + pcp_outfile + = ((pcp_fname[0] != '-' || pcp_fname[1] != '\0') + ? fopen (pcp_fname, "w") + : stdout); if (pcp_outfile == 0) pfatal_with_name (pcp_fname); no_precomp = 1; @@ -5546,8 +5546,8 @@ create_definition (buf, limit, op) while (is_idchar[*bp]) { bp++; /* do we have a "special" rest-args extension here? */ - if (limit - bp > REST_EXTENSION_LENGTH && - bcmp (rest_extension, bp, REST_EXTENSION_LENGTH) == 0) { + if (limit - bp > REST_EXTENSION_LENGTH + && bcmp (rest_extension, bp, REST_EXTENSION_LENGTH) == 0) { rest_args = 1; temp->rest_args = 1; break; @@ -5579,8 +5579,8 @@ create_definition (buf, limit, op) struct arglist *otemp; for (otemp = temp->next; otemp != NULL; otemp = otemp->next) - if (temp->length == otemp->length && - bcmp (temp->name, otemp->name, temp->length) == 0) { + if (temp->length == otemp->length + && bcmp (temp->name, otemp->name, temp->length) == 0) { error ("duplicate argument name `%.*s' in `#define'", temp->length, temp->name); goto nope; @@ -6657,8 +6657,7 @@ do_line (buf, limit, op, keyword) } } - hash_bucket = - &fname_table[hashf (fname, fname_length, FNAME_HASHSIZE)]; + hash_bucket = &fname_table[hashf (fname, fname_length, FNAME_HASHSIZE)]; for (hp = *hash_bucket; hp != NULL; hp = hp->next) if (hp->length == fname_length && bcmp (hp->value.cpval, fname, fname_length) == 0) { @@ -6947,8 +6946,8 @@ do_elif (buf, limit, op, keyword) if (if_stack->type != T_IF && if_stack->type != T_ELIF) { error ("`#elif' after `#else'"); fprintf (stderr, " (matches line %d", if_stack->lineno); - if (if_stack->fname != NULL && ip->fname != NULL && - strcmp (if_stack->fname, ip->nominal_fname) != 0) + if (if_stack->fname != NULL && ip->fname != NULL + && strcmp (if_stack->fname, ip->nominal_fname) != 0) fprintf (stderr, ", file %s", if_stack->fname); fprintf (stderr, ")\n"); } @@ -7066,9 +7065,9 @@ do_xifdef (buf, limit, op, keyword) if (pcp_outfile) { /* Output a precondition for this macro. */ - if (hp && - (hp->type == T_CONST - || (hp->type == T_MACRO && hp->value.defn->predefined))) + if (hp + && (hp->type == T_CONST + || (hp->type == T_MACRO && hp->value.defn->predefined))) fprintf (pcp_outfile, "#define %s\n", hp->name); else { U_CHAR *cp = buf; |