Changeset 2701 for trunk/gsdl/src


Ignore:
Timestamp:
2001-08-15T12:52:36+12:00 (23 years ago)
Author:
kjm18
Message:

previous changes broke linux version. all fixed now hopefully :-)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/colservr/mgppsearch.cpp

    r2699 r2701  
    7979bool mgppsearchclass::search(const queryparamclass &queryparams,
    8080                 queryresultsclass &queryresult) {
    81 
    82   char *basepath="";
     81 
     82#ifdef __WIN32__
     83  char basepath[]="";
     84#else
     85  char basepath[] = "/";
     86#endif
     87 
    8388  char *indexname = (filename_cat(collectdir, getindexsuffix(queryparams))).getcstr();
    8489
     
    178183  }
    179184  // clean up
    180   //indexData.UnloadData(); - leave it cached for next query
    181185  delete indexname;
    182   delete basepath;
    183186  return true;
    184187
     
    189192                    queryresultsclass &queryresult) {
    190193
    191   char *basepath = "";
     194#ifdef __WIN32__
     195  char basepath[]="";
     196#else
     197  char basepath[] = "/";
     198#endif
     199
    192200  char *indexname = (filename_cat(collectdir, getindexsuffix(queryparams))).getcstr();
    193201 
    194   //IndexData indexData;
    195202  if (indexData == NULL) {
    196203    indexData = new IndexData();
     
    232239  }
    233240  // clean up
    234   //indexData.UnloadData();
    235241  delete indexname;
    236   delete basepath;
    237242
    238243  return true;
     
    253258                    text_t &output) {
    254259 
    255   char *basepath = "";
    256   char *textname = (filename_cat(collectdir, "index", "text", collection)).getcstr();;
     260#ifdef __WIN32__
     261  char basepath[]="";
     262#else
     263  char basepath[] = "/";
     264#endif
     265   char *textname = (filename_cat(collectdir, "index", "text", collection)).getcstr();;
    257266 
    258267  TextData textdata;
     
    279288  //clean up
    280289  textdata.UnloadData ();
    281   delete basepath;
    282290  delete textname;
    283291
Note: See TracChangeset for help on using the changeset viewer.