Changeset 10705 for trunk/gsdl/src/recpt/z3950proto.cpp
- Timestamp:
- 2005-10-07T10:33:14+13:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/z3950proto.cpp
r10440 r10705 30 30 #include "filter.h" 31 31 // z39.50 yaz stuff 32 #include <stdio.h> // for (FILE *) type for yyin and fopen. 33 // config file parsing stuff 34 extern "C" { 32 35 33 #include "z3950cfg.h" // for reading in config files - 36 34 // defines "struct z3950cfg *zserver_list" as the head of the list. 37 } 35 38 36 // note! yyin is hash-defined in z3950cfg.h to something else, to avoid 39 37 // name conflicts with "other" yyins. 40 //extern "C" { 41 FILE *yyin; 42 FILE *yyout; // redirect for `errors' (unmatched tokens in flex) 43 //} 44 extern "C" { 45 extern int zconfigparse(); 46 } 47 38 extern FILE *yyin; 39 extern FILE *yyout; // redirect for `errors' (unmatched tokens in flex) 48 40 49 41 … … 81 73 yyout=errfile; 82 74 83 // zconfigparse() is defined in zparse.tab.c,84 // which is the bison output of zparse.y85 75 86 76 char *filename_str=filename.getcstr(); … … 92 82 } 93 83 delete []filename_str; 94 zconfigparse(); 84 85 // this is in zparse.tab.c, 86 // which is the bison output of zparse.y 87 yyparse(); 95 88 96 89 if (errfile!=stderr)
Note:
See TracChangeset
for help on using the changeset viewer.