Quick Search:

Mode

Context

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

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.3
 
1.4
 
MAIN:ragge:20050404164947
 
token.c
_>393393         return rval;
 394394 }
 395395 
<> 396+#ifdef NEW_READFILE
396397 /*
<> 398+ * A new file included.  Read buffers are allocated on the stack and
  399+ * all subroutines are called from here.  This function will be called
  400+ * recursive when multiple files are included.
  401+ */
  402+int
  403+pushfile(char *file)
  404+{
  405+        struct includ incl, *ic = &incl;
  406+
  407+        ic->lineno = 1;
  408+        if (ifiles != NULL) { /* not if first file */
  409+                if ((ic->infil = open(file, O_RDONLY)) < 0)
  410+                        return -1;
  411+        } else
  412+                ic->infil = 0; /* STDIN_FILENO */
  413+
  414+        ic->fname = savstr(file); /* XXX - will loose space */
  415+        savch('\0');
  416+        ic->curptr = ic->buffer;
  417+        ic->next = ifiles;
  418+        ifiles = ic;
  419+
  420+        while ((c = qscan()) != 0) {
  421+                switch (c) {
  422+                case CONTROL:
  423+                        control();
  424+                        break;
  425+
  426+                
  427+
  428+
  429+
  430+}
  431+#else
  432+/*
397433  * A new file included.
 398434  * If ifiles == NULL, this is the first file and already opened (stdin).
 399435  * Return 0 on success, -1 on failure to open file.
     
 !
432468 
 433469         return 0;
 434470 }
<> 471+#endif
<_435472 
 436473 /*
 437474  * End of included file (or everything).
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-11-01 00:02 +0100