Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.1
 
1.2
 
MAIN:ragge:20050319093405
 
token.c
     
 !
_> 32+#include <unistd.h>
  33+#include <fcntl.h>
     
 !
<> 42+#ifdef NEWBUF
  43+        int infil;
  44+        usch *inpbuf;
  45+        usch *curptr;
  46+        int curlen;
  47+#else
     
 !
<> 49+#endif
     
 !
<> 53+#if 0
  54+usch inpbuf[NAMEMAX+CPPBUF], *curimp, *imptop;
  55+#endif
     
 !
<>46 -int nyylex(void);
     
 !
<>48 -#if 0
     
 !
<>50 -"\n"                    { return nyylex(); }
 51 -.                       { return nyylex(); }
  60+#ifdef NEWBUF
  61+static int
  62+input(void)
  63+{
  64+        if (ifiles->curptr < ifiles->inpbuf+ifiles->curlen)
  65+                return *ifiles->curptr++;
  66+        if ((ifiles->curlen = read(ifiles->infil, ifiles->inpbuf, CPPBUF)) < 0)
  67+                error("read error on file %s", ifiles->fname);
  68+        ifiles->curptr = ifiles->inpbuf;
  69+        return input();
  70+}
     
 !
<>53 -#endif
 54 -
  72+static void
  73+unput(int c)
  74+{
  75+        if (ifiles->curptr > ifiles->inpbuf)
  76+                *--ifiles->curptr = c;
  77+        else
  78+                error("out of pushback space");
  79+}
  80+#else
     
 !
<> 83+#endif
     
 !
<>98 -int yylex() { return nyylex(); }
 99 -
     
 !
<>101 -nyylex()
  126+yylex()
     
 !
<>113 -                rval = yywrap() ? 0 : nyylex();
  138+                rval = yywrap() ? 0 : yylex();
     
 !
<>280 -                                rval = nyylex();
  305+                                rval = yylex();
     
 !
<> 354+#ifdef NEWBUF
  355+                if ((ic->infil = open(file, O_RDONLY)) < 0)
  356+                        return -1;
  357+#else
     
 !
<> 360+#endif
     
 !
<> 362+#ifdef NEWBUF
  363+                ic->infil = 0;
  364+#else
     
 !
<> 366+#endif
  367+#ifdef NEWBUF
  368+        ic->curptr = ic->inpbuf = malloc(CPPBUF);
  369+#endif
     
 !
<> 386+#ifdef NEWBUF
  387+        close(ic->infil);
  388+#else
     
 !
<_ 390+#endif
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-09-19 05:46 +0200