Changeset 2442
- Timestamp:
- 2001-05-17T16:38:16+12:00 (23 years ago)
- Location:
- trunk/gsdl/src/mgpp
- Files:
-
- 3 deleted
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/mgpp/lib/Makefile.in
r2372 r2442 47 47 localedir = $(datadir)/locale 48 48 49 COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS)$(CFLAGS)50 CPPCOMPILE = $(CPP) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)49 COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS) 50 CPPCOMPILE = $(CPP) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) 51 51 52 52 .SUFFIXES: … … 80 80 HEADERS = \ 81 81 bitio_m_random.h local_strings.h lovinstem.h \ 82 bitio_m_stdio.h getopt.hmemlib.h netorder.h \82 bitio_m_stdio.h memlib.h netorder.h \ 83 83 bitio_gen.h mgheap.h messages.h \ 84 84 bitio_m.h huffman.h \ … … 94 94 huffman.cpp messages.cpp \ 95 95 bitio_gen.cpp perf_hash.cpp \ 96 getopt.cpp \ 97 getopt1.cpp local_strings.cpp lovinstem.cpp \ 96 local_strings.cpp lovinstem.cpp \ 98 97 bitio_m_mem.cpp bitio_m_stdio.cpp bitio_m_mems.cpp \ 99 alloca.c 100 gmalloc.cftruncate.cpp strcasecmp.cpp random.cpp \98 alloca.c xmalloc.c strstr.cpp \ 99 ftruncate.cpp strcasecmp.cpp random.cpp \ 101 100 simplefrenchstem.cpp unitool.cpp bitio_m_random.cpp \ 102 101 bitio_m_abstract.cpp … … 106 105 huffman$o messages$o \ 107 106 bitio_gen$o perf_hash$o \ 108 getopt$o \109 107 local_strings$o lovinstem$o \ 110 108 bitio_m_mem$o bitio_m_stdio$o bitio_m_mems$o \ … … 112 110 random$o simplefrenchstem$o \ 113 111 unitool$o 114 # memlib$o removed - assume we use std system malloc, free, etc.115 # only need getopt1$o if we don't have <unistd.h>116 # probably don't need gmalloc either (see top-level configure - for HP-UX)117 112 118 113 DISTFILES = Makefile.in $(HEADERS) $(SOURCES) … … 124 119 $(AR) cru libmg.a $(OBJECTS) 125 120 $(RANLIB) libmg.a 126 127 $(OBJECTS): ../../../config.h128 121 129 122 install: -
trunk/gsdl/src/mgpp/lib/local_strings.h
r855 r2442 47 47 suff = **base; 48 48 *base = *base + 1; 49 bcopy((char *) *base, (char *) (data + copy + 1), suff);49 memcpy( (data + copy + 1), *base, suff); 50 50 *data = copy + suff; 51 51 *base += suff; -
trunk/gsdl/src/mgpp/lib/sysfuncs.h
r1294 r2442 300 300 /* Until getoptold function is declared in getopt.h, we need this here for 301 301 struct option. */ 302 #include <getopt.h> 302 /*#include <getopt.h>*/ 303 303 304 304 #ifdef WITH_DMALLOC -
trunk/gsdl/src/mgpp/text/Makefile.in
r1597 r2442 37 37 CC = @CC@ 38 38 CPP = @CXX@ 39 CFLAGS = @CFLAGS@ -ansi - Wall -Wunused -pedantic -W -Woverloaded-virtual -g -DSILENT -DSHORT_SUFFIX40 CPPFLAGS = @CPPFLAGS@ -ansi - Wall -Wunused -pedantic -W -Woverloaded-virtual -g -DSILENT -DSHORT_SUFFIX39 CFLAGS = @CFLAGS@ -ansi -DSILENT -DSHORT_SUFFIX 40 CPPFLAGS = @CPPFLAGS@ -ansi -DSILENT -DSHORT_SUFFIX 41 41 DEFS = @DEFS@ 42 42 RANLIB = @RANLIB@ -
trunk/gsdl/src/mgpp/text/Queryer.cpp
r1850 r2442 21 21 * 22 22 **************************************************************************/ 23 #define _XOPEN_SOURCE 1 24 #define _XOPEN_SOURCE_EXTENDED 1 25 #include <unistd.h> 23 26 24 27 #include "MGQuery.h" -
trunk/gsdl/src/mgpp/text/mg_compression_dict.cpp
r860 r2442 21 21 * 22 22 **************************************************************************/ 23 #define _XOPEN_SOURCE 1 24 #define _XOPEN_SOURCE_EXTENDED 1 25 #include <unistd.h> 23 26 24 27 #include "sysfuncs.h" … … 44 47 /* 45 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 46 52 Revision 1.2 2000/01/18 03:53:22 rjmcnab 47 53 Fixed a couple of bugs and made building silent if needed. -
trunk/gsdl/src/mgpp/text/mg_decompress_text.cpp
r1123 r2442 21 21 * 22 22 **************************************************************************/ 23 24 #define _XOPEN_SOURCE 1 25 #define _XOPEN_SOURCE_EXTENDED 1 26 #include <unistd.h> 23 27 24 28 #include "sysfuncs.h" -
trunk/gsdl/src/mgpp/text/mg_fast_comp_dict.cpp
r860 r2442 25 25 /* 26 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 27 30 Revision 1.2 2000/01/18 03:53:23 rjmcnab 28 31 Fixed a couple of bugs and made building silent if needed. … … 61 64 * 62 65 */ 66 67 #define _XOPEN_SOURCE 1 68 #define _XOPEN_SOURCE_EXTENDED 1 69 #include <unistd.h> 63 70 64 71 #include "sysfuncs.h" … … 132 139 133 140 cur = buffer = Xmalloc (mem); 134 bzero (buffer, mem);141 memset (buffer, 0, mem); 135 142 fixup = (u_char *) Xmalloc (fixup_mem); 136 bzero (fixup, fixup_mem);143 memset (fixup, 0, fixup_mem); 137 144 138 145 #ifndef SILENT -
trunk/gsdl/src/mgpp/text/mg_invf_dict.cpp
r860 r2442 21 21 * 22 22 **************************************************************************/ 23 #define _XOPEN_SOURCE 1 24 #define _XOPEN_SOURCE_EXTENDED 1 25 #include <unistd.h> 23 26 24 27 #include "sysfuncs.h" … … 30 33 /* 31 34 $Log$ 35 Revision 1.3 2001/05/17 04:38:15 jrm21 36 portability changes, use getopt from unistd.h (all POSIX systems) 37 32 38 Revision 1.2 2000/01/18 03:53:24 rjmcnab 33 39 Fixed a couple of bugs and made building silent if needed. -
trunk/gsdl/src/mgpp/text/mg_invf_dict_dump.cpp
r1899 r2442 21 21 * 22 22 **************************************************************************/ 23 #define _XOPEN_SOURCE 1 24 #define _XOPEN_SOURCE_EXTENDED 1 25 #include <unistd.h> 23 26 24 27 #include "sysfuncs.h" … … 30 33 /* 31 34 $Log$ 35 Revision 1.3 2001/05/17 04:38:15 jrm21 36 portability changes, use getopt from unistd.h (all POSIX systems) 37 32 38 Revision 1.2 2001/02/02 01:13:05 kjm18 33 39 changed the help message -
trunk/gsdl/src/mgpp/text/mg_invf_dump.cpp
r1898 r2442 21 21 * 22 22 **************************************************************************/ 23 #define _XOPEN_SOURCE 1 24 #define _XOPEN_SOURCE_EXTENDED 1 25 #include <unistd.h> 23 26 24 27 #include "sysfuncs.h" … … 37 40 /* 38 41 $Log$ 42 Revision 1.3 2001/05/17 04:38:16 jrm21 43 portability changes, use getopt from unistd.h (all POSIX systems) 44 39 45 Revision 1.2 2001/02/02 01:12:29 kjm18 40 46 added more command line options, and better help message -
trunk/gsdl/src/mgpp/text/mg_passes.cpp
r856 r2442 23 23 **************************************************************************/ 24 24 25 #define _XOPEN_SOURCE 1 26 #define _XOPEN_SOURCE_EXTENDED 1 27 25 28 #include "sysfuncs.h" 26 29 … … 28 31 # include <malloc.h> 29 32 #endif 33 34 #include <unistd.h> 30 35 31 36 #include "memlib.h" … … 47 52 /* 48 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 49 57 Revision 1.1 2000/01/14 02:26:18 sjboddie 50 58 Rodgers new C++ mg -
trunk/gsdl/src/mgpp/text/mg_perf_hash_build.cpp
r2377 r2442 22 22 **************************************************************************/ 23 23 24 #define _XOPEN_SOURCE 1 25 #define _XOPEN_SOURCE_EXTENDED 1 26 #include <unistd.h> 27 24 28 #include "sysfuncs.h" 25 29 #include "memlib.h" … … 37 41 /* 38 42 $Log$ 43 Revision 1.4 2001/05/17 04:38:16 jrm21 44 portability changes, use getopt from unistd.h (all POSIX systems) 45 39 46 Revision 1.3 2001/05/07 05:01:47 jrm21 40 47 replaced bcopy with memcpy -
trunk/gsdl/src/mgpp/text/mg_stem_idx.cpp
r2377 r2442 20 20 **************************************************************************/ 21 21 22 #define _XOPEN_SOURCE 1 23 #define _XOPEN_SOURCE_EXTENDED 1 24 #include <unistd.h> 22 25 23 26 #include "sysfuncs.h" … … 46 49 /* 47 50 $Log$ 51 Revision 1.5 2001/05/17 04:38:16 jrm21 52 portability changes, use getopt from unistd.h (all POSIX systems) 53 48 54 Revision 1.4 2001/05/07 05:01:47 jrm21 49 55 replaced bcopy with memcpy -
trunk/gsdl/src/mgpp/text/mg_weights_build.cpp
r861 r2442 21 21 * 22 22 **************************************************************************/ 23 #define _XOPEN_SOURCE 1 24 #define _XOPEN_SOURCE_EXTENDED 1 25 #include <unistd.h> 23 26 24 27 #include "sysfuncs.h" … … 48 51 /* 49 52 $Log$ 53 Revision 1.4 2001/05/17 04:38:16 jrm21 54 portability changes, use getopt from unistd.h (all POSIX systems) 55 50 56 Revision 1.3 2000/01/18 23:24:19 rjmcnab 51 57 fixed a few more bugs
Note:
See TracChangeset
for help on using the changeset viewer.