Article View: gnu.gcc.help
Article #51717protoize confusion
From: Joey Pruett
Date: Fri, 16 Apr 1993 17:11
Date: Fri, 16 Apr 1993 17:11
50 lines
2379 bytes
2379 bytes
i'm thinking of using protoize to help convert a large (1+ mega-line)
body of code over to ansi. prototyping is the first obvious and
most useful step. protoize seems to do a great job, but produces
some warnings that have me confused:
protoize: converting file `srf.c'
srf.c: 597: warning: `else' excluded by preprocessing
protoize: function definition not converted
srf.c: 620: warning: `else' excluded by preprocessing
protoize: function definition not converted
i've included that area of code below. i realize that the line numbers might
be off a bit, but there is no preprocessing around that area. any idea what
might be going on? this is happening in multiple files and always is
confused by 'else'. any help would be appreciated.
srf.c:
592 /* left-justify the keyword */
593 if (iCol == 0)
594 (void) fprintf (fpSrfOut, "#%% %-*s", (widthOfCol[iCol] - 3), name);
595 else
596 (void) fprintf (fpSrfOut, " %-*s", widthOfCol[iCol], name);
597 return;
598 }
599
600 /* putRd -- output a relational descriptor for a given attribute mask */
601 INTERNAL_FUNC void putRd (attribute attrMask, tuple *tpl, stringarray colName)
602
603 /* in: first tuple */
604 /* in: columnar order (NULL => none) */
605 {
606 int iKwd,
607 iCol;
608
609 assert (kwdCur != NULL);
610 if (fpSrfOut == NULL)
611 error_exitf ("SRF output file not opened\n");
612
613 /*
614 * Separate RD's with single blank lines.
615 */
616 if (firstTpl)
617 firstTpl = FALSE;
618 else
619 (void) putc ('\n', fpSrfOut);
620 if (colName == NULL)
621 {
622 iCol = 0;
623 for (iKwd = 0; kwdCur[iKwd] != NULL; iKwd++)
624 {
Technical Details
Message-ID:
<1993Apr16.171128.1446@tessi.com>Path:
arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!darwin.sura.net!haven.umd.edu!uunet!tessi!joeyShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,2a3944f9bfe67bed,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-04-16 10:18:07 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!darwin.sura.net!haven.umd.edu!uunet!tessi!joey From: joey@tessi.com (Joey Pruett) Subject: protoize confusion Message-ID: <1993Apr16.171128.1446@tessi.com> Organization: Test Systems Strategies, Inc., Beaverton, Oregon Date: Fri, 16 Apr 1993 17:11:28 GMT Lines: 50