Changeset 114 for trunk/gsdl/src/colservr
- Timestamp:
- 1999-01-19T14:38:20+13:00 (25 years ago)
- Location:
- trunk/gsdl/src/colservr
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/colservr/gdbmclass.cpp
r112 r114 12 12 /* 13 13 $Log$ 14 Revision 1.3 1999/01/19 01:38:15 rjmcnab 15 16 Made the source more portable. 17 14 18 Revision 1.2 1999/01/12 01:51:01 rjmcnab 15 19 … … 31 35 #include <string.h> 32 36 33 #ifndef USE_OBJECTSPACE 37 #if defined(GSDL_NEED_STRINGS_H) 38 #include <strings.h> 39 #endif 40 41 #if defined(GSDL_USE_OBJECTSPACE) 42 # include <ospace\std\algorithm> 43 #elif defined(GSDL_USE_STL_H) 44 # if defined(GSDL_USE_ALGO_H) 45 # include <algo.h> 46 # else 47 # include <algorithm.h> 48 # endif 49 #else 34 50 # include <algorithm> 35 #else36 # include <ospace\std\algorithm>37 51 #endif 38 52 -
trunk/gsdl/src/colservr/mgsearch.cpp
r112 r114 12 12 /* 13 13 $Log$ 14 Revision 1.3 1999/01/19 01:38:17 rjmcnab 15 16 Made the source more portable. 17 14 18 Revision 1.2 1999/01/12 01:51:02 rjmcnab 15 19 … … 23 27 24 28 29 #include "gsdlconf.h" 25 30 #include "mgsearch.h" 26 31 … … 30 35 #include <ctype.h> 31 36 32 #ifdef __GNUG__ 37 #if defined(GSDL_USE_OBJECTSPACE) 38 # include <ospace\std\iostream> 39 #elif defined(GSDL_USE_IOS_H) 33 40 # include <iostream.h> 34 # include <gdbm.h>35 36 41 #else 37 # ifndef USE_OBJECTSPACE 38 # include <iostream> 39 # else 40 # include <ospace\std\iostream> 41 # endif 42 42 # include <iostream> 43 #endif 44 45 #if defined(__WIN32__) 43 46 // gdbm stuff 44 47 # include "autoconf.h" … … 46 49 # include "gdbmconst.h" 47 50 # include "gdbm.h" 51 #else 52 # include <gdbm.h> 48 53 #endif 54 49 55 50 56 #include <assert.h> … … 203 209 // it assumes that cache_num is set up correctly to point to 204 210 // a suitable result cache 205 int ourquerycallback(char *UDoc, int ULen, int DocNum,211 int ourquerycallback(char *UDoc, int /*ULen*/, int DocNum, 206 212 float Weight, void *info) { 207 213 … … 227 233 // This callback is called once for each term in the query 228 234 int termfreqcallback(char *Word, int ULen, int Freq, 229 float Weight, void *info) {235 float /*Weight*/, void *info) { 230 236 queryresultsclass *queryresults = (queryresultsclass *)info; 231 237 … … 241 247 242 248 // this callback is called once for each variation of each term 243 int termscallback(char *Word, int ULen, int Freq,244 float Weight, void *info) {249 int termscallback(char *Word, int ULen, int /*Freq*/, 250 float /*Weight*/, void *info) { 245 251 246 252 text_t term; … … 253 259 254 260 // This callback is for getting document text 255 int doctextcallback(char *Word, int ULen, int Freq,256 float Weight, void *info) {261 int doctextcallback(char *Word, int ULen, int /*Freq*/, 262 float /*Weight*/, void *info) { 257 263 text_t *output = (text_t *)info; 258 264 if (output == NULL) return 0; -
trunk/gsdl/src/colservr/querycache.cpp
r112 r114 12 12 /* 13 13 $Log$ 14 Revision 1.3 1999/01/19 01:38:17 rjmcnab 15 16 Made the source more portable. 17 14 18 Revision 1.2 1999/01/12 01:51:02 rjmcnab 15 19 … … 94 98 for (i=0; i < maxcachesize; i++) 95 99 { 96 if (resultcache[i].accessnum < minaccessnum) 100 if (resultcache[i].accessnum < minaccessnum) { 101 minaccessnum = resultcache[i].accessnum; 97 102 minaccessi = i; 103 } 98 104 } 99 105 100 return i;106 return minaccessi; 101 107 } 102 108 -
trunk/gsdl/src/colservr/queryinfo.h
r110 r114 15 15 16 16 17 #include "gsdlconf.h" 17 18 #include "text_t.h" 18 19 19 #ifndef USE_OBJECTSPACE 20 #if defined(GSDL_USE_OBJECTSPACE) 21 # include <ospace\std\vector> 22 # include <ospace\std\algorithm> 23 #elif defined(GSDL_USE_STL_H) 24 # include <vector.h> 25 # if defined(GSDL_USE_ALGO_H) 26 # include <algo.h> 27 # else 28 # include <algorithm.h> 29 # endif 30 #else 20 31 # include <vector> 21 32 # include <algorithm> 22 #else23 # include <ospace\std\vector>24 # include <ospace\std\algorithm>25 33 #endif 26 34 … … 75 83 { 76 84 public: 85 docresultclass(void) {docnum=-1;docweight=0.0;}; 86 ~docresultclass(void) {}; 87 77 88 int docnum; 78 89 float docweight;
Note:
See TracChangeset
for help on using the changeset viewer.