Ignore:
Timestamp:
2001-05-24T17:06:48+12:00 (23 years ago)
Author:
sjboddie
Message:

Fiddled about with mgpp to get it compiling on Windows under VC++ 6.0. I
still can't get it to compile under VC++ 4.2 because of some weird
behaviour in STLport.

Also tidied up a little and removed some of the old log information
that was scattered about in some of the files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/mgpp/text/mg_compression_dict.cpp

    r2442 r2468  
    1818 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    1919 *
    20  * $Id$
    21  *
    2220 **************************************************************************/
     21
    2322#define _XOPEN_SOURCE 1
    2423#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
    2635
    2736#include "sysfuncs.h"
    28 
    2937#include "memlib.h"
    3038#include "messages.h"
     
    4452
    4553#define MAXBITS (sizeof(unsigned long) * 8)
    46 
    47 /*
    48    $Log$
    49    Revision 1.3  2001/05/17 04:38:15  jrm21
    50    portability changes, use getopt from unistd.h (all POSIX systems)
    51 
    52    Revision 1.2  2000/01/18 03:53:22  rjmcnab
    53    Fixed a couple of bugs and made building silent if needed.
    54 
    55    Revision 1.1  2000/01/14 02:26:11  sjboddie
    56    Rodgers new C++ mg
    57 
    58    Revision 1.3  1999/10/17 23:43:25  cs025
    59    Changes to eradicate Xmalloc
    60 
    61    Revision 1.2  1999/10/11 22:03:03  cs025
    62    Changed mistaken use of NTOHUL on a double to NTOHD as per report
    63    from Craig Neville-Manning of problems installing mg/gsdl.
    64 
    65    Revision 1.1  1999/10/11 02:57:46  cs025
    66    Base install of MG-PP
    67 
    68    Revision 1.1  1999/08/10 21:18:04  sjboddie
    69    renamed mg-1.3d directory mg
    70 
    71    Revision 1.4  1999/01/15 03:05:51  rjmcnab
    72 
    73    Renamed lib/heap to be lib/mgheap (it was causing some problems with
    74    some versions of the STL libraries which contained a heap.h)
    75 
    76    Revision 1.3  1998/12/17 09:12:52  rjmcnab
    77 
    78    Altered mg to process utf-8 encoded Unicode. The main changes
    79    are in the parsing of the input, the casefolding, and the stemming.
    80 
    81    Revision 1.2  1998/11/25 07:55:44  rjmcnab
    82 
    83    Modified mg to that you can specify the stemmer you want
    84    to use via a command line option. You specify it to
    85    mg_passes during the build process. The number of the
    86    stemmer that you used is stored within the inverted
    87    dictionary header and the stemmed dictionary header so
    88    the correct stemmer is used in later stages of building
    89    and querying.
    90 
    91    Revision 1.1  1998/11/17 09:34:52  rjmcnab
    92    *** empty log message ***
    93 
    94    * Revision 1.3  1994/10/20  03:56:54  tes
    95    * I have rewritten the boolean query optimiser and abstracted out the
    96    * components of the boolean query.
    97    *
    98    * Revision 1.2  1994/09/20  04:41:45  tes
    99    * For version 1.1
    100    *
    101  */
    102 
    103 /* #define DEBUG1 */
    104 
    105 /* #define DEBUG */
    10654
    10755#define is_power_of_two(a) ((a) != 0 && (((a) & ((a)-1)) == 0))
     
    264212  Message ("Actual mem required : %8u\n", mem_reqd);
    265213#endif
    266   exit (0);
     214  return (0);
    267215}
    268216
Note: See TracChangeset for help on using the changeset viewer.