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_fast_comp_dict.cpp

    r2442 r2468  
    1818 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    1919 *
    20  * $Id$
    21  *
    2220 **************************************************************************/
    23 
    24 
    25 /*
    26    $Log$
    27    Revision 1.3  2001/05/17 04:38:15  jrm21
    28    portability changes, use getopt from unistd.h (all POSIX systems)
    29 
    30    Revision 1.2  2000/01/18 03:53:23  rjmcnab
    31    Fixed a couple of bugs and made building silent if needed.
    32 
    33    Revision 1.1  2000/01/14 02:26:13  sjboddie
    34    Rodgers new C++ mg
    35 
    36    Revision 1.2  1999/10/17 23:43:26  cs025
    37    Changes to eradicate Xmalloc
    38 
    39    Revision 1.1  1999/10/11 02:57:50  cs025
    40    Base install of MG-PP
    41 
    42    Revision 1.1  1999/08/10 21:18:06  sjboddie
    43    renamed mg-1.3d directory mg
    44 
    45    Revision 1.2  1998/11/25 07:55:44  rjmcnab
    46 
    47    Modified mg to that you can specify the stemmer you want
    48    to use via a command line option. You specify it to
    49    mg_passes during the build process. The number of the
    50    stemmer that you used is stored within the inverted
    51    dictionary header and the stemmed dictionary header so
    52    the correct stemmer is used in later stages of building
    53    and querying.
    54 
    55    Revision 1.1  1998/11/17 09:34:57  rjmcnab
    56    *** empty log message ***
    57 
    58    * Revision 1.3  1994/10/20  03:56:55  tes
    59    * I have rewritten the boolean query optimiser and abstracted out the
    60    * components of the boolean query.
    61    *
    62    * Revision 1.2  1994/09/20  04:41:47  tes
    63    * For version 1.1
    64    *
    65  */
    6621
    6722#define _XOPEN_SOURCE 1
    6823#define _XOPEN_SOURCE_EXTENDED 1
    69 #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
    7035
    7136#include "sysfuncs.h"
    72 
    7337#include "huffman.h"
    7438#include "messages.h"
     
    212176  save_fast_dict (filename);
    213177
    214   exit (0);
     178  return (0);
    215179}
    216180
     
    708672}
    709673
    710 
    711674static void
    712675save_fast_dict (char *filename)
Note: See TracChangeset for help on using the changeset viewer.