Changeset 2468 for trunk/gsdl/src/mgpp/text/mg_passes.cpp
- Timestamp:
- 2001-05-24T17:06:48+12:00 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/mgpp/text/mg_passes.cpp
r2442 r2468 19 19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 20 20 * 21 * $Id$22 *23 21 **************************************************************************/ 24 22 25 23 #define _XOPEN_SOURCE 1 26 24 #define _XOPEN_SOURCE_EXTENDED 1 25 26 // need this to avoid bizarre compiler problems under VC++ 6.0 27 #if defined (__WIN32__) && !defined (GSDL_USE_IOS_H) 28 # include <iostream> 29 #endif 27 30 28 31 #include "sysfuncs.h" … … 32 35 #endif 33 36 34 #include <unistd.h> 37 #if defined __WIN32__ 38 # include <io.h> 39 # include "getopt.h" 40 # define close _close 41 # define open _open 42 #else 43 # include <unistd.h> 44 #endif 35 45 36 46 #include "memlib.h" 37 47 #include "messages.h" 38 39 48 #include "longlong.h" 40 41 49 #include "mg_files.h" 42 50 #include "mg.h" … … 44 52 #include "text.h" 45 53 #include "stemmer.h" 46 47 54 #include "FileBuf.h" 48 55 #include "TextEl.h" 49 56 #include "TagInfo.h" 50 51 52 /*53 $Log$54 Revision 1.2 2001/05/17 04:38:16 jrm2155 portability changes, use getopt from unistd.h (all POSIX systems)56 57 Revision 1.1 2000/01/14 02:26:18 sjboddie58 Rodgers new C++ mg59 60 Revision 1.1 1999/10/11 02:58:00 cs02561 Base install of MG-PP62 63 Revision 1.1 1999/08/10 21:18:12 sjboddie64 renamed mg-1.3d directory mg65 66 Revision 1.3 1998/12/17 09:12:53 rjmcnab67 68 Altered mg to process utf-8 encoded Unicode. The main changes69 are in the parsing of the input, the casefolding, and the stemming.70 71 Revision 1.2 1998/11/25 07:55:47 rjmcnab72 73 Modified mg to that you can specify the stemmer you want74 to use via a command line option. You specify it to75 mg_passes during the build process. The number of the76 stemmer that you used is stored within the inverted77 dictionary header and the stemmed dictionary header so78 the correct stemmer is used in later stages of building79 and querying.80 81 Revision 1.1 1998/11/17 09:35:13 rjmcnab82 *** empty log message ***83 84 * Revision 1.3 1994/10/20 03:56:57 tes85 * I have rewritten the boolean query optimiser and abstracted out the86 * components of the boolean query.87 *88 * Revision 1.2 1994/09/20 04:41:52 tes89 * For version 1.190 *91 */92 57 93 58 #define MAX_PASSES 5 … … 208 173 } 209 174 210 211 212 175 int main (int argc, char **argv) { 213 176 int ch, in_fd; … … 296 259 Driver (in_fd, filename, tagInfo, compatMode); 297 260 298 exit(0);299 } 261 return (0); 262 }
Note:
See TracChangeset
for help on using the changeset viewer.