Ignore:
Timestamp:
2005-10-07T10:33:14+13:00 (19 years ago)
Author:
jrm21
Message:

tidied up interaction between flex/bison and greenstone's z3950 client
classes. renamed parse.y to zparse.y to make it more obvious it's related
to that stuff.

File:
1 edited

Legend:

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

    r10440 r10705  
    3030#include "filter.h"
    3131// z39.50 yaz stuff
    32 #include <stdio.h> // for (FILE *) type for yyin and fopen.
    33 // config file parsing stuff
    34 extern "C" {
     32
    3533#include "z3950cfg.h" // for reading in config files -
    3634// defines "struct z3950cfg *zserver_list" as the head of the list.
    37 }
     35
    3836// note! yyin is hash-defined in z3950cfg.h to something else, to avoid
    3937// 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 
     38extern FILE *yyin;
     39extern FILE *yyout; // redirect for `errors' (unmatched tokens in flex)
    4840
    4941
     
    8173  yyout=errfile;
    8274
    83   // zconfigparse() is defined in zparse.tab.c,
    84   // which is the bison output of zparse.y
    8575 
    8676  char *filename_str=filename.getcstr();
     
    9282  }
    9383  delete []filename_str;
    94   zconfigparse();
     84
     85  // this is in zparse.tab.c,
     86  // which is the bison output of zparse.y
     87  yyparse();
    9588
    9689  if (errfile!=stderr)
Note: See TracChangeset for help on using the changeset viewer.