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

    r2442 r2468  
    1919 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
    2020 *
    21  * $Id$
    22  *
    2321 **************************************************************************/
    2422
    2523#define _XOPEN_SOURCE 1
    2624#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
    2730
    2831#include "sysfuncs.h"
     
    3235#endif
    3336
    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
    3545
    3646#include "memlib.h"
    3747#include "messages.h"
    38 
    3948#include "longlong.h"
    40 
    4149#include "mg_files.h"
    4250#include "mg.h"
     
    4452#include "text.h"
    4553#include "stemmer.h"
    46 
    4754#include "FileBuf.h"
    4855#include "TextEl.h"
    4956#include "TagInfo.h"
    50 
    51 
    52 /*
    53    $Log$
    54    Revision 1.2  2001/05/17 04:38:16  jrm21
    55    portability changes, use getopt from unistd.h (all POSIX systems)
    56 
    57    Revision 1.1  2000/01/14 02:26:18  sjboddie
    58    Rodgers new C++ mg
    59 
    60    Revision 1.1  1999/10/11 02:58:00  cs025
    61    Base install of MG-PP
    62 
    63    Revision 1.1  1999/08/10 21:18:12  sjboddie
    64    renamed mg-1.3d directory mg
    65 
    66    Revision 1.3  1998/12/17 09:12:53  rjmcnab
    67 
    68    Altered mg to process utf-8 encoded Unicode. The main changes
    69    are in the parsing of the input, the casefolding, and the stemming.
    70 
    71    Revision 1.2  1998/11/25 07:55:47  rjmcnab
    72 
    73    Modified mg to that you can specify the stemmer you want
    74    to use via a command line option. You specify it to
    75    mg_passes during the build process. The number of the
    76    stemmer that you used is stored within the inverted
    77    dictionary header and the stemmed dictionary header so
    78    the correct stemmer is used in later stages of building
    79    and querying.
    80 
    81    Revision 1.1  1998/11/17 09:35:13  rjmcnab
    82    *** empty log message ***
    83 
    84    * Revision 1.3  1994/10/20  03:56:57  tes
    85    * I have rewritten the boolean query optimiser and abstracted out the
    86    * components of the boolean query.
    87    *
    88    * Revision 1.2  1994/09/20  04:41:52  tes
    89    * For version 1.1
    90    *
    91  */
    9257
    9358#define MAX_PASSES 5
     
    208173}
    209174
    210 
    211 
    212175int main (int argc, char **argv) {
    213176  int ch, in_fd;
     
    296259  Driver (in_fd, filename, tagInfo, compatMode);
    297260
    298   exit (0);
    299 }
     261  return (0);
     262}
Note: See TracChangeset for help on using the changeset viewer.