Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.138
 
1.139
 
MAIN:ragge:20110716161456
 
cpp.c
_>13701370         return 1;
 13711371 }
 13721372 
<> 1373+static int
  1374+isdir(void)
  1375+{
  1376+        usch *bp = stringbuf;
  1377+        usch ch;
  1378+
  1379+        while ((ch = cinput()) == ' ' || ch == '\t')
  1380+                *stringbuf++ = ch;
  1381+        *stringbuf++ = ch;
  1382+        *stringbuf++ = 0;
  1383+        stringbuf = bp;
  1384+        if (ch == '#')
  1385+                return 1;
  1386+        unpstr(bp);
  1387+        return 0;
  1388+}
  1389+
13731390 /*
<> 1391+ * Deal with directives inside a macro.
  1392+ * Doing so is really ugly but gcc allows it, so...
  1393+ */
  1394+static void
  1395+chkdir(void)
  1396+{
  1397+        usch ch;
  1398+
  1399+        for (;;) {
  1400+                if (isdir())
  1401+                        ppdir();
  1402+                if (flslvl == 0)
  1403+                        return;
  1404+                while ((ch = cinput()) != '\n')
  1405+                        ;
  1406+                ifiles->lineno++;
  1407+                putch('\n');
  1408+        }
  1409+}
  1410+
  1411+/*
13741412  * Read arguments and put in argument array.
 13751413  * If WARN is encountered return 1, otherwise 0.
 13761414  */
     
 !
13991437                 args[i] = stringbuf;
 14001438                 plev = 0;
 14011439                 while ((c = sloscan()) == WSPACE || c == '\n')
<>1402 -                        if (c == '\n')
  1440+                        if (c == '\n') {
  1441+                                ifiles->lineno++;
14031442                                 putch(cinput());
<> 1443+                                chkdir();
  1444+                        }
14041445                 for (;;) {
 14051446                         while (c == EBLOCK) {
 14061447                                 sss();
     
 !
14181459                                 plev--;
 14191460                         savstr((usch *)yytext);
 14201461 oho:                    while ((c = sloscan()) == '\n') {
<> 1462+                                ifiles->lineno++;
14211463                                 putch(cinput());
<> 1464+                                chkdir();
<_14221465                                 savch(' ');
 14231466                         }
 14241467                         while (c == CMNT) {
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-07-10 06:01 +0200