Changeset 1642


Ignore:
Timestamp:
2000-11-01T14:51:13+13:00 (23 years ago)
Author:
jrm21
Message:

Redirect flex's (parse.fl) "FILE *yyout" to go to the error file, so
unmatched tokens go there, instead of into the HTTP headers (oops...).
The only unmatched tokens known are non-alphanum symbols - for example,
the "<<<<<<<<<<<<<<" printed out in a CVS conflict..... (thanks Gordon!)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/z3950proto.cpp

    r1617 r1642  
    3838// name conflicts with "other" yyins.
    3939extern FILE *yyin;
     40extern FILE *yyout; // redirect for `errors' (unmatched tokens in flex)
     41
    4042extern "C" {
    4143  extern int zconfigparse();
     
    7375    errfile=stderr;
    7476  }
     77  yyout=errfile;
    7578
    7679  // zconfigparse() is defined in zparse.tab.c,
    7780  // which is the bison output of zparse.y
    78 
     81 
    7982  yyin=fopen(filename.getcstr(),"r");
    8083  if (yyin==NULL) {
Note: See TracChangeset for help on using the changeset viewer.