Changeset 1738 for trunk/gsdl/src/recpt/z3950proto.cpp
- Timestamp:
- 2000-12-04T17:08:12+13:00 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/z3950proto.cpp
r1642 r1738 69 69 // FILE *errfile declared in z3950cfg.h, defined in zparse.y 70 70 71 if ((errfile=fopen(errf.getcstr(),"a"))==NULL) { 71 char *errf_str=errf.getcstr(); 72 if ((errfile=fopen(errf_str,"a"))==NULL) { 72 73 // what do we do if we can't open the error file? 73 74 // this means that errors will go to stderr, which may stuff up … … 75 76 errfile=stderr; 76 77 } 78 delete errf_str; 77 79 yyout=errfile; 78 80 … … 80 82 // which is the bison output of zparse.y 81 83 82 yyin=fopen(filename.getcstr(),"r"); 84 char *filename_str=filename.getcstr(); 85 yyin=fopen(filename_str,"r"); 83 86 if (yyin==NULL) { 84 cerr << "Could not open "<<filename.getcstr()<<" for reading.\n"; 87 cerr << "Could not open "<<filename_str<<" for reading.\n"; 88 delete filename_str; 85 89 return; 86 90 } 91 delete filename_str; 87 92 zconfigparse(); 88 93 … … 230 235 if (here==end) { 231 236 err=protocolError; 237 char *coll_str=collection.getcstr(); 232 238 logout << "z39.50: couldn't find collection" 233 << coll ection.getcstr()239 << coll_str 234 240 << endl; 241 delete coll_str; 235 242 return; 236 243 } … … 350 357 OptionValue_tarray::iterator ov_end=request.filterOptions.end(); 351 358 while (ov_here != ov_end) { 352 // cout<< "OV pair: `" << ov_here->name.getcstr() << "'=`"353 // << ov_here->value.getcstr() << "'\n";359 // cerr << "OV pair: `" << ov_here->name.getcstr() << "'=`" 360 // << ov_here->value.getcstr() << "'\n"; 354 361 if (ov_here->name=="Term") 355 362 {
Note:
See TracChangeset
for help on using the changeset viewer.