[BACK]Return to main.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / m4

Diff for /src/usr.bin/m4/main.c between version 1.35 and 1.36

version 1.35, 2000/07/24 23:08:25 version 1.36, 2000/07/27 17:44:33
Line 80 
Line 80 
 int sp;                         /* current m4  stack pointer   */  int sp;                         /* current m4  stack pointer   */
 int fp;                         /* m4 call frame pointer       */  int fp;                         /* m4 call frame pointer       */
 struct input_file infile[MAXINP];/* input file stack (0=stdin)  */  struct input_file infile[MAXINP];/* input file stack (0=stdin)  */
 FILE *outfile[MAXOUT];          /* diversion array(0=bitbucket)*/  FILE **outfile;                 /* diversion array(0=bitbucket)*/
   int maxout;
 FILE *active;                   /* active output file pointer  */  FILE *active;                   /* active output file pointer  */
 int ilevel = 0;                 /* input file stack pointer    */  int ilevel = 0;                 /* input file stack pointer    */
 int oindex = 0;                 /* diversion index..           */  int oindex = 0;                 /* diversion index..           */
Line 188 
Line 189 
         mstack = (stae *)xalloc(sizeof(stae) * STACKMAX);          mstack = (stae *)xalloc(sizeof(stae) * STACKMAX);
         sstack = (char *)xalloc(STACKMAX);          sstack = (char *)xalloc(STACKMAX);
   
           maxout = 0;
           outfile = NULL;
           resizedivs(MAXOUT);
   
         while ((c = getopt(argc, argv, "gtD:U:o:I:")) != -1)          while ((c = getopt(argc, argv, "gtD:U:o:I:")) != -1)
                 switch(c) {                  switch(c) {
   
Line 246 
Line 251 
   
         if (active != stdout)          if (active != stdout)
                 active = stdout;        /* reset output just in case */                  active = stdout;        /* reset output just in case */
         for (n = 1; n < MAXOUT; n++)    /* default wrap-up: undivert */          for (n = 1; n < maxout; n++)    /* default wrap-up: undivert */
                 if (outfile[n] != NULL)                  if (outfile[n] != NULL)
                         getdiv(n);                          getdiv(n);
                                         /* remove bitbucket if used  */                                          /* remove bitbucket if used  */

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36