Changeset 2468 for trunk/gsdl/src/mgpp/text/mg_compression_dict.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_compression_dict.cpp
r2442 r2468 18 18 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 19 19 * 20 * $Id$21 *22 20 **************************************************************************/ 21 23 22 #define _XOPEN_SOURCE 1 24 23 #define _XOPEN_SOURCE_EXTENDED 1 25 #include <unistd.h> 24 25 // need this to avoid bizarre compiler problems under VC++ 6.0 26 #if defined (__WIN32__) && !defined (GSDL_USE_IOS_H) 27 # include <iostream> 28 #endif 29 30 #if defined (__WIN32__) 31 # include "getopt.h" 32 #else 33 # include <unistd.h> 34 #endif 26 35 27 36 #include "sysfuncs.h" 28 29 37 #include "memlib.h" 30 38 #include "messages.h" … … 44 52 45 53 #define MAXBITS (sizeof(unsigned long) * 8) 46 47 /*48 $Log$49 Revision 1.3 2001/05/17 04:38:15 jrm2150 portability changes, use getopt from unistd.h (all POSIX systems)51 52 Revision 1.2 2000/01/18 03:53:22 rjmcnab53 Fixed a couple of bugs and made building silent if needed.54 55 Revision 1.1 2000/01/14 02:26:11 sjboddie56 Rodgers new C++ mg57 58 Revision 1.3 1999/10/17 23:43:25 cs02559 Changes to eradicate Xmalloc60 61 Revision 1.2 1999/10/11 22:03:03 cs02562 Changed mistaken use of NTOHUL on a double to NTOHD as per report63 from Craig Neville-Manning of problems installing mg/gsdl.64 65 Revision 1.1 1999/10/11 02:57:46 cs02566 Base install of MG-PP67 68 Revision 1.1 1999/08/10 21:18:04 sjboddie69 renamed mg-1.3d directory mg70 71 Revision 1.4 1999/01/15 03:05:51 rjmcnab72 73 Renamed lib/heap to be lib/mgheap (it was causing some problems with74 some versions of the STL libraries which contained a heap.h)75 76 Revision 1.3 1998/12/17 09:12:52 rjmcnab77 78 Altered mg to process utf-8 encoded Unicode. The main changes79 are in the parsing of the input, the casefolding, and the stemming.80 81 Revision 1.2 1998/11/25 07:55:44 rjmcnab82 83 Modified mg to that you can specify the stemmer you want84 to use via a command line option. You specify it to85 mg_passes during the build process. The number of the86 stemmer that you used is stored within the inverted87 dictionary header and the stemmed dictionary header so88 the correct stemmer is used in later stages of building89 and querying.90 91 Revision 1.1 1998/11/17 09:34:52 rjmcnab92 *** empty log message ***93 94 * Revision 1.3 1994/10/20 03:56:54 tes95 * I have rewritten the boolean query optimiser and abstracted out the96 * components of the boolean query.97 *98 * Revision 1.2 1994/09/20 04:41:45 tes99 * For version 1.1100 *101 */102 103 /* #define DEBUG1 */104 105 /* #define DEBUG */106 54 107 55 #define is_power_of_two(a) ((a) != 0 && (((a) & ((a)-1)) == 0)) … … 264 212 Message ("Actual mem required : %8u\n", mem_reqd); 265 213 #endif 266 exit(0);214 return (0); 267 215 } 268 216
Note:
See TracChangeset
for help on using the changeset viewer.