Changeset 1951
- Timestamp:
- 10/24/07 22:11:17 (9 months ago)
- Files:
-
- swish-e/branches/2.6/configure (modified) (2 diffs)
- swish-e/branches/2.6/configure.in (modified) (1 diff)
- swish-e/branches/2.6/pod/CHANGES.pod (modified) (1 diff)
- swish-e/branches/2.6/src/Makefile.am (modified) (6 diffs)
- swish-e/branches/2.6/src/Makefile.in (modified) (16 diffs)
- swish-e/branches/2.6/src/config.h (modified) (2 diffs)
- swish-e/branches/2.6/src/expat (deleted)
- swish-e/branches/2.6/src/fs.c (modified) (1 diff)
- swish-e/branches/2.6/src/html.c (deleted)
- swish-e/branches/2.6/src/html.h (deleted)
- swish-e/branches/2.6/src/http.c (deleted)
- swish-e/branches/2.6/src/http.h (deleted)
- swish-e/branches/2.6/src/httpserver.c (deleted)
- swish-e/branches/2.6/src/httpserver.h (deleted)
- swish-e/branches/2.6/src/index.c (modified) (6 diffs)
- swish-e/branches/2.6/src/methods.c (modified) (2 diffs)
- swish-e/branches/2.6/src/parse_conffile.c (modified) (1 diff)
- swish-e/branches/2.6/src/swish.c (modified) (6 diffs)
- swish-e/branches/2.6/src/swishspider (deleted)
- swish-e/branches/2.6/src/txt.c (deleted)
- swish-e/branches/2.6/src/txt.h (deleted)
- swish-e/branches/2.6/src/vms/descrip_axp.mms (modified) (6 diffs)
- swish-e/branches/2.6/src/vms/descrip_libxml2.mms (modified) (7 diffs)
- swish-e/branches/2.6/src/vms/descrip_vax.mms (modified) (6 diffs)
- swish-e/branches/2.6/src/win32/dllswishe.dsp (modified) (2 diffs)
- swish-e/branches/2.6/src/win32/swishe.dsp (modified) (4 diffs)
- swish-e/branches/2.6/src/xml.c (deleted)
- swish-e/branches/2.6/src/xml.h (deleted)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
swish-e/branches/2.6/configure
r1939 r1951 28022 28022 28023 28023 28024 ac_config_files="$ac_config_files Makefile html/Makefile pod/Makefile man/Makefile src/Makefile src/expat/Makefile src/replace/Makefile src/snowball/Makefile rpm/swish-e.spec tests/Makefile example/Makefile prog-bin/Makefile filters/Makefile filters/SWISH/Makefile conf/Makefile filter-bin/Makefile swish-e.pc swish-config"28024 ac_config_files="$ac_config_files Makefile html/Makefile pod/Makefile man/Makefile src/Makefile src/replace/Makefile src/snowball/Makefile rpm/swish-e.spec tests/Makefile example/Makefile prog-bin/Makefile filters/Makefile filters/SWISH/Makefile conf/Makefile filter-bin/Makefile swish-e.pc swish-config" 28025 28025 28026 28026 cat >confcache <<\_ACEOF … … 28613 28613 "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 28614 28614 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 28615 "src/expat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/expat/Makefile" ;;28616 28615 "src/replace/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/replace/Makefile" ;; 28617 28616 "src/snowball/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/snowball/Makefile" ;; swish-e/branches/2.6/configure.in
r1939 r1951 388 388 man/Makefile 389 389 src/Makefile 390 src/expat/Makefile391 390 src/replace/Makefile 392 391 src/snowball/Makefile swish-e/branches/2.6/pod/CHANGES.pod
r1950 r1951 15 15 Jose Ruiz contributed a new BDB index format. The old native 16 16 and experimental incremental index formats have been removed. 17 18 =item Removed -S http feature 19 20 The spider.pl script is now preferred in combination with -S prog. 21 22 =item Removed expat parser 23 24 libxml2 parser is now required. 17 25 18 26 =back swish-e/branches/2.6/src/Makefile.am
r1947 r1951 1 SUBDIRS = expatreplace snowball1 SUBDIRS = replace snowball 2 2 3 3 # Using AM_CPPFLAGS instead of per-target flags means object names … … 44 44 swish_words.c swish_words.h \ 45 45 proplimit.c proplimit.h \ 46 rank.c rank.h \46 rank.c rank.h \ 47 47 db_read.c sw_db.h \ 48 48 result_sort.c result_sort.h \ … … 68 68 69 69 noinst_LTLIBRARIES = libswishindex.la 70 libswishindex_la_LIBADD = expat/libswexpat.la$(LIBXML2_OBJS) snowball/libsnowball.la70 libswishindex_la_LIBADD = $(LIBXML2_OBJS) snowball/libsnowball.la 71 71 libswishindex_la_LDFLAGS = $(LIBXML2_LIB) $(Z_LIBS) $(PCRE_LIBS) 72 72 … … 78 78 libswishindex_la_SOURCES = \ 79 79 fs.c fs.h \ 80 http.c http.h \81 httpserver.c httpserver.h \82 80 extprog.c extprog.h \ 83 bash.c bash.h \81 bash.c bash.h \ 84 82 methods.c \ 85 html.c html.h \86 txt.c txt.h \87 xml.c xml.h \88 83 entities.c entities.h \ 89 84 index.c index.h \ … … 91 86 pre_sort.c \ 92 87 file.c file.h \ 93 filter.c filter.h \88 filter.c filter.h \ 94 89 parse_conffile.c parse_conffile.h \ 95 90 swregex.c swregex.h \ 96 91 db_write.c \ 97 92 docprop_write.c \ 98 getruntime.c getruntime.h93 getruntime.c getruntime.h 99 94 100 95 … … 103 98 include_HEADERS = swish-e.h 104 99 105 106 libexec_SCRIPTS = swishspider107 108 EXTRA_DIST = swishspiderswish-e/branches/2.6/src/Makefile.in
r1947 r1951 107 107 am__quote = @am__quote@ 108 108 install_sh = @install_sh@ 109 SUBDIRS = expatreplace snowball109 SUBDIRS = replace snowball 110 110 111 111 … … 143 143 swish_words.c swish_words.h \ 144 144 proplimit.c proplimit.h \ 145 rank.c rank.h \145 rank.c rank.h \ 146 146 db_read.c sw_db.h \ 147 147 result_sort.c result_sort.h \ … … 165 165 166 166 noinst_LTLIBRARIES = libswishindex.la 167 libswishindex_la_LIBADD = expat/libswexpat.la$(LIBXML2_OBJS) snowball/libsnowball.la167 libswishindex_la_LIBADD = $(LIBXML2_OBJS) snowball/libsnowball.la 168 168 libswishindex_la_LDFLAGS = $(LIBXML2_LIB) $(Z_LIBS) $(PCRE_LIBS) 169 169 … … 174 174 libswishindex_la_SOURCES = \ 175 175 fs.c fs.h \ 176 http.c http.h \177 httpserver.c httpserver.h \178 176 extprog.c extprog.h \ 179 bash.c bash.h \177 bash.c bash.h \ 180 178 methods.c \ 181 html.c html.h \182 txt.c txt.h \183 xml.c xml.h \184 179 entities.c entities.h \ 185 180 index.c index.h \ … … 187 182 pre_sort.c \ 188 183 file.c file.h \ 189 filter.c filter.h \184 filter.c filter.h \ 190 185 parse_conffile.c parse_conffile.h \ 191 186 swregex.c swregex.h \ 192 187 db_write.c \ 193 188 docprop_write.c \ 194 getruntime.c getruntime.h189 getruntime.c getruntime.h 195 190 196 191 197 192 include_HEADERS = swish-e.h 198 199 libexec_SCRIPTS = swishspider200 201 EXTRA_DIST = swishspider202 193 subdir = src 203 194 mkinstalldirs = $(SHELL) $(top_srcdir)/config/mkinstalldirs … … 212 203 date_time.lo double_metaphone.lo stemmer.lo soundex.lo 213 204 libswish_e_la_OBJECTS = $(am_libswish_e_la_OBJECTS) 214 am_libswishindex_la_OBJECTS = fs.lo http.lo httpserver.lo extprog.lo \215 bash.lo methods.lo html.lo txt.lo xml.lo entities.lo index.lo \216 merge.lo pre_sort.lo file.lo filter.lo parse_conffile.lo \217 swregex.lo db_write.lo docprop_write.logetruntime.lo205 am_libswishindex_la_OBJECTS = fs.lo extprog.lo bash.lo methods.lo \ 206 entities.lo index.lo merge.lo pre_sort.lo file.lo filter.lo \ 207 parse_conffile.lo swregex.lo db_write.lo docprop_write.lo \ 208 getruntime.lo 218 209 libswishindex_la_OBJECTS = $(am_libswishindex_la_OBJECTS) 219 210 EXTRA_PROGRAMS = libtest$(EXEEXT) … … 229 220 swish_e_DEPENDENCIES = libswishindex.la libswish-e.la 230 221 swish_e_LDFLAGS = 231 SCRIPTS = $(libexec_SCRIPTS)232 233 222 234 223 DEFS = @DEFS@ … … 250 239 @AMDEP_TRUE@ ./$(DEPDIR)/fs.Plo ./$(DEPDIR)/getruntime.Plo \ 251 240 @AMDEP_TRUE@ ./$(DEPDIR)/hash.Plo ./$(DEPDIR)/headers.Plo \ 252 @AMDEP_TRUE@ ./$(DEPDIR)/html.Plo ./$(DEPDIR)/http.Plo \ 253 @AMDEP_TRUE@ ./$(DEPDIR)/httpserver.Plo ./$(DEPDIR)/index.Plo \ 254 @AMDEP_TRUE@ ./$(DEPDIR)/keychar_out.Po ./$(DEPDIR)/libtest.Po \ 255 @AMDEP_TRUE@ ./$(DEPDIR)/list.Plo ./$(DEPDIR)/mem.Plo \ 256 @AMDEP_TRUE@ ./$(DEPDIR)/merge.Plo ./$(DEPDIR)/metanames.Plo \ 257 @AMDEP_TRUE@ ./$(DEPDIR)/methods.Plo \ 241 @AMDEP_TRUE@ ./$(DEPDIR)/index.Plo ./$(DEPDIR)/keychar_out.Po \ 242 @AMDEP_TRUE@ ./$(DEPDIR)/libtest.Po ./$(DEPDIR)/list.Plo \ 243 @AMDEP_TRUE@ ./$(DEPDIR)/mem.Plo ./$(DEPDIR)/merge.Plo \ 244 @AMDEP_TRUE@ ./$(DEPDIR)/metanames.Plo ./$(DEPDIR)/methods.Plo \ 258 245 @AMDEP_TRUE@ ./$(DEPDIR)/parse_conffile.Plo \ 259 246 @AMDEP_TRUE@ ./$(DEPDIR)/parser.Plo ./$(DEPDIR)/pre_sort.Plo \ … … 265 252 @AMDEP_TRUE@ ./$(DEPDIR)/swish_qsort.Plo \ 266 253 @AMDEP_TRUE@ ./$(DEPDIR)/swish_words.Plo ./$(DEPDIR)/swregex.Plo \ 267 @AMDEP_TRUE@ ./$(DEPDIR)/swstring.Plo ./$(DEPDIR)/txt.Plo \ 268 @AMDEP_TRUE@ ./$(DEPDIR)/xml.Plo 254 @AMDEP_TRUE@ ./$(DEPDIR)/swstring.Plo 269 255 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ 270 256 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) … … 392 378 @rm -f swish-e$(EXEEXT) 393 379 $(LINK) $(swish_e_LDFLAGS) $(swish_e_OBJECTS) $(swish_e_LDADD) $(LIBS) 394 libexecSCRIPT_INSTALL = $(INSTALL_SCRIPT)395 install-libexecSCRIPTS: $(libexec_SCRIPTS)396 @$(NORMAL_INSTALL)397 $(mkinstalldirs) $(DESTDIR)$(libexecdir)398 @list='$(libexec_SCRIPTS)'; for p in $$list; do \399 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \400 if test -f $$d$$p; then \401 f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \402 echo " $(libexecSCRIPT_INSTALL) $$d$$p $(DESTDIR)$(libexecdir)/$$f"; \403 $(libexecSCRIPT_INSTALL) $$d$$p $(DESTDIR)$(libexecdir)/$$f; \404 else :; fi; \405 done406 407 uninstall-libexecSCRIPTS:408 @$(NORMAL_UNINSTALL)409 @list='$(libexec_SCRIPTS)'; for p in $$list; do \410 f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \411 echo " rm -f $(DESTDIR)$(libexecdir)/$$f"; \412 rm -f $(DESTDIR)$(libexecdir)/$$f; \413 done414 380 415 381 mostlyclean-compile: … … 439 405 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hash.Plo@am__quote@ 440 406 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/headers.Plo@am__quote@ 441 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/html.Plo@am__quote@442 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/http.Plo@am__quote@443 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/httpserver.Plo@am__quote@444 407 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/index.Plo@am__quote@ 445 408 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/keychar_out.Po@am__quote@ … … 466 429 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/swregex.Plo@am__quote@ 467 430 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/swstring.Plo@am__quote@ 468 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/txt.Plo@am__quote@469 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xml.Plo@am__quote@470 431 471 432 distclean-depend: … … 655 616 check-am: all-am 656 617 check: check-recursive 657 all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(SCRIPTS) $(HEADERS) \ 658 acconfig.h 618 all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(HEADERS) acconfig.h 659 619 install-binPROGRAMS: install-libLTLIBRARIES 660 620 661 621 installdirs: installdirs-recursive 662 622 installdirs-am: 663 $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(bindir) $(DESTDIR)$( libexecdir) $(DESTDIR)$(includedir)623 $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(bindir) $(DESTDIR)$(includedir) 664 624 665 625 install: install-recursive … … 708 668 install-data-am: install-includeHEADERS 709 669 710 install-exec-am: install-binPROGRAMS install-libLTLIBRARIES \ 711 install-libexecSCRIPTS 670 install-exec-am: install-binPROGRAMS install-libLTLIBRARIES 712 671 713 672 install-info: install-info-recursive … … 727 686 728 687 uninstall-am: uninstall-binPROGRAMS uninstall-includeHEADERS \ 729 uninstall-info-am uninstall-libLTLIBRARIES \ 730 uninstall-libexecSCRIPTS 688 uninstall-info-am uninstall-libLTLIBRARIES 731 689 732 690 uninstall-info: uninstall-info-recursive … … 742 700 install-exec install-exec-am install-exec-recursive \ 743 701 install-includeHEADERS install-info install-info-am \ 744 install-info-recursive install-libLTLIBRARIES \745 install- libexecSCRIPTS install-man install-recursive\746 install -strip installcheck installcheck-am installdirs\747 installdirs-am installdirs-recursive maintainer-clean\748 maintainer-clean- generic maintainer-clean-recursive mostlyclean\749 mostlyclean- compile mostlyclean-generic mostlyclean-libtool\750 mostlyclean-recursive tags tags-recursive uninstall\751 uninstall- am uninstall-binPROGRAMS uninstall-includeHEADERS \702 install-info-recursive install-libLTLIBRARIES install-man \ 703 install-recursive install-strip installcheck installcheck-am \ 704 installdirs installdirs-am installdirs-recursive \ 705 maintainer-clean maintainer-clean-generic \ 706 maintainer-clean-recursive mostlyclean mostlyclean-compile \ 707 mostlyclean-generic mostlyclean-libtool mostlyclean-recursive \ 708 tags tags-recursive uninstall uninstall-am \ 709 uninstall-binPROGRAMS uninstall-includeHEADERS \ 752 710 uninstall-info-am uninstall-info-recursive \ 753 uninstall-libLTLIBRARIES uninstall-libexecSCRIPTS \ 754 uninstall-recursive 711 uninstall-libLTLIBRARIES uninstall-recursive 755 712 756 713 # Tell versions [3.59,3.63) of GNU make to not export all variables. swish-e/branches/2.6/src/config.h
r1944 r1951 134 134 135 135 136 #define ALLOW_HTTP_INDEXING_DATA_SOURCE 1137 136 #define ALLOW_FILESYSTEM_INDEXING_DATA_SOURCE 1 138 137 #define ALLOW_EXTERNAL_PROGRAM_DATA_SOURCE 1 … … 144 143 ** be sure to leave at least one option. 145 144 */ 146 147 #define DEFAULT_HTTP_DELAY 5148 149 /* DEFAULT_HTTP_DELAY is the default delay when using swishspider -S http */150 145 151 146 swish-e/branches/2.6/src/fs.c
r1736 r1951 47 47 #include "check.h" 48 48 #include "error.h" 49 #include "xml.h"50 #include "txt.h"51 49 #include "parse_conffile.h" 52 50 #include "swish_qsort.h" swish-e/branches/2.6/src/index.c
r1944 r1951 136 136 #include "deflate.h" 137 137 */ 138 #include "html.h"139 #include "xml.h"140 138 #include "parser.h" 141 #include "txt.h"142 139 #include "metanames.h" 143 140 #include "result_sort.h" … … 238 235 idx->metaIDtable.defaultID = -1; 239 236 240 241 /* $$$ this is only a fix while http.c and httpserver.c still exist */242 idx->tmpdir = estrdup(".");243 237 244 238 /* By default, we are not in update mode */ … … 505 499 506 500 /* Look for title if HTML document */ 507 508 if (fprop->doctype == HTML) 509 { 510 title = parseHTMLtitle( sw , buffer ); 511 512 if (!isoktitle(sw, title)) 513 return -2; /* skipped because of title */ 514 } 515 516 517 #ifdef HAVE_LIBXML2 518 if (fprop->doctype == HTML2 || !fprop->doctype) 501 502 if (fprop->doctype == HTML || fprop->doctype == HTML2 || !fprop->doctype) 519 503 return parse_HTML( sw, fprop, fi, buffer ); 520 #endif521 504 522 505 … … 1016 999 1017 1000 1018 1019 1020 1021 /** Read the buffer, if not a stream parser **/ 1022 1023 #ifdef HAVE_LIBXML2 1024 if ( !fprop->doctype || fprop->doctype == HTML2 || fprop->doctype == XML2 || fprop->doctype == TXT2 ) 1025 rd_buffer = NULL; 1026 else 1027 #endif 1028 /* -- Read all data, last 1 is flag that we are expecting text only */ 1029 rd_buffer = read_stream(sw, fprop, 1); 1030 1001 rd_buffer = NULL; 1031 1002 1032 1003 /* just for fun so we can show total bytes shown */ … … 1034 1005 1035 1006 1036 /* Set which parser to use */1007 /* Set which parser to use -- the duplicates are for backwards compat for pre2.6 config files */ 1037 1008 1038 1009 switch (fprop->doctype) 1039 1010 { 1040 1011 1012 case XML: 1013 strcpy(strType,"XML2"); 1014 countwords = parse_XML; 1015 break; 1016 1017 case HTML: 1018 strcpy(strType,"HTML2"); 1019 countwords = parse_HTML; 1020 break; 1021 1041 1022 case TXT: 1042 strcpy(strType,"TXT ");1043 countwords = countwords_TXT;1023 strcpy(strType,"TXT2"); 1024 countwords = parse_TXT; 1044 1025 break; 1045 1026 1046 case HTML:1047 strcpy(strType,"HTML");1048 countwords = countwords_HTML;1049 break;1050 1051 case XML:1052 strcpy(strType,"XML");1053 countwords = countwords_XML;1054 break;1055 1056 case WML:1057 strcpy(strType,"WML");1058 countwords = countwords_HTML;1059 break;1060 1061 #ifdef HAVE_LIBXML21062 1027 case XML2: 1063 1028 strcpy(strType,"XML2"); … … 1080 1045 break; 1081 1046 1082 #else1083 1084 /* Default if libxml not installed */1085 default:1086 strcpy(strType,"DEFAULT (HTML)");1087 countwords = countwords_HTML;1088 break;1089 #endif1090 1091 1047 } 1092 1048 swish-e/branches/2.6/src/methods.c
r1736 r1951 35 35 #endif 36 36 37 #ifdef ALLOW_HTTP_INDEXING_DATA_SOURCE38 extern struct _indexing_data_source_def HTTPIndexingDataSource;39 #endif40 41 37 #ifdef ALLOW_EXTERNAL_PROGRAM_DATA_SOURCE 42 38 extern struct _indexing_data_source_def ExternalProgramDataSource; … … 50 46 #endif 51 47 52 #ifdef ALLOW_HTTP_INDEXING_DATA_SOURCE53 &HTTPIndexingDataSource,54 #endif55 48 56 49 #ifdef ALLOW_EXTERNAL_PROGRAM_DATA_SOURCE swish-e/branches/2.6/src/parse_conffile.c
r1939 r1951 1470 1470 doc_map[] = 1471 1471 { 1472 {"TXT", TXT}, 1473 {"HTML", HTML}, 1474 {"XML", XML}, 1475 {"WML", WML}, 1476 #ifdef HAVE_LIBXML2 1477 {"XML2", XML2 }, 1478 {"HTML2", HTML2 }, 1479 {"TXT2", TXT2 }, 1480 {"XML*", XML2 }, 1481 {"HTML*", HTML2 }, 1482 {"TXT*", TXT2 }, 1483 #else 1484 {"XML*", XML }, 1485 {"HTML*", HTML }, 1486 {"TXT*", TXT } 1487 #endif 1472 {"TXT", TXT}, 1473 {"HTML", HTML}, 1474 {"XML", XML}, 1475 {"XML2", XML2}, 1476 {"HTML2", HTML2}, 1477 {"TXT2", TXT2}, 1478 {"XML*", XML2}, 1479 {"HTML*", HTML2}, 1480 {"TXT*", TXT2}, 1488 1481 }; 1489 1482 int i; swish-e/branches/2.6/src/swish.c
r1944 r1951 46 46 #include "index.h" 47 47 #include "file.h" 48 #include "http.h"49 48 #include "merge.h" 50 49 #include "docprop.h" … … 295 294 #endif 296 295 297 #ifdef ALLOW_HTTP_INDEXING_DATA_SOURCE298 printf(" for \"-S http\" - specify a list of URLs\n");299 #endif300 301 296 #ifdef ALLOW_EXTERNAL_PROGRAM_DATA_SOURCE 302 297 printf(" for \"-S prog\" - specify a list of programs or the string \"stdin\"\n"); … … 322 317 #endif 323 318 324 #ifdef ALLOW_HTTP_INDEXING_DATA_SOURCE325 printf(" \"http\" - index web site files using a web crawler\n");326 if (!*defaultIndexingSystem)327 defaultIndexingSystem = "http";328 #endif329 330 319 #ifdef ALLOW_EXTERNAL_PROGRAM_DATA_SOURCE 331 320 printf(" \"prog\" - index files supplied by an external program\n"); 332 321 333 if (!*defaultIndexingSystem)334 defaultIndexingSystem = "http";335 322 #endif 336 323 printf(" The default value is: \"%s\"\n", defaultIndexingSystem); … … 369 356 * 370 357 * Note that initModule_* code is called even when it's not going to be used 371 * (e.g. initModule_HTTP is called when searching).372 358 * 373 359 * … … 383 369 initModule_ResultSort(sw); 384 370 initModule_Filter(sw); 385 initModule_Entities(sw); /* used only by the old HTML parser -- not long to live */386 371 initModule_Index(sw); 387 372 initModule_FS(sw); 388 initModule_HTTP(sw);389 373 initModule_Prog(sw); 390 374 … … 415 399 416 400 freeModule_Filter(sw); 417 freeModule_Entities(sw);418 401 freeModule_Index(sw); 419 402 freeModule_ResultSort(sw); 420 403 freeModule_FS(sw); 421 freeModule_HTTP(sw);422 404 freeModule_Prog(sw); 423 405 swish-e/branches/2.6/src/vms/descrip_axp.mms
r1456 r1951 23 23 #CWARN= 24 24 CDEF = /def=(VMS,HAVE_CONFIG_H,STDC_HEADERS) 25 CINCL= /include=( [.expat.xmlparse],[.expat.xmltok],libz:)25 CINCL= /include=(libz:) 26 26 CWARN= 27 27 #CDEBUG= /debug/noopt … … 39 39 40 40 FILESYSTEM_OBJS=fs.obj 41 HTTP_OBJS=http.obj httpserver.obj42 41 FS_OBJS=$(FILESYSTEM_OBJS) 43 WEB_OBJS=$(HTTP_OBJS)44 42 VMS_OBJS = regex.obj 45 43 VSNPRINTF_OBJ = vsnprintf.obj … … 47 45 OBJS= check.obj file.obj index.obj search.obj error.obj methods.obj\ 48 46 hash.obj list.obj mem.obj merge.obj swish2.obj stemmer.obj \ 49 soundex.obj docprop.obj compress.obj xml.obj txt.obj\50 metanames.obj result_sort.obj html.obj\47 soundex.obj docprop.obj compress.obj \ 48 metanames.obj result_sort.obj \ 51 49 filter.obj parse_conffile.obj result_output.obj date_time.obj \ 52 50 keychar_out.obj extprog.obj bash.obj db_native.obj dump.obj \ 53 51 entities.obj swish_words.obj \ 54 52 proplimit.obj swish_qsort.obj ramdisk.obj rank.obj \ 55 xmlparse.obj xmltok.obj xmlrole.objswregex.obj vsnprintf.obj \56 double_metaphone.obj db_read.obj db_write.obj swstring.obj \53 swregex.obj vsnprintf.obj \ 54 double_metaphone.obj db_read.obj db_write.obj swstring.obj \ 57 55 pre_sort.obj headers.obj docprop_write.obj stemmer.obj\ 58 $(FILESYSTEM_OBJS) $( HTTP_OBJS) $(VMS_OBJS) \56 $(FILESYSTEM_OBJS) $(VMS_OBJS) \ 59 57 api.obj stem_de.obj stem_dk.obj stem_en1.obj stem_en2.obj stem_es.obj\ 60 58 stem_fi.obj stem_fr.obj stem_it.obj stem_nl.obj stem_no.obj \ … … 64 62 ! 65 63 66 xmlparse.obj : [.expat.xmlparse]xmlparse.c67 68 xmltok.obj : [.expat.xmltok]xmltok.c69 70 xmlrole.obj : [.expat.xmltok]xmlrole.c71 64 72 65 $(NAME) : $(OBJS) libswish-e.olb swish.obj … … 134 127 list.h 135 128 hash.obj : hash.c swish.h config.h hash.h mem.h 136 http.obj : http.c swish.h config.h index.h hash.h mem.h file.h \137 http.h httpserver.h138 httpserver.obj : httpserver.c swish.h config.h mem.h http.h \139 httpserver.h140 129 index.obj : index.c swish.h config.h index.h hash.h mem.h \ 141 130 check.h search.h docprop.h stemmer.h compress.h … … 155 144 libtest.obj : libtest.c swish.h config.h error.h list.h search.h index.h \ 156 145 file.h merge.h docprop.h 157 txt.obj : txt.c txt.h swish.h mem.h index.h158 xml.obj : xml.c txt.h swish.h mem.h index.h159 146 proplimi.obj : swish.h mem.h merge.h docprop.h index.h metanames.h \ 160 147 compress.h error.h db.h result_sort.h swish_qsort.h proplimit.h 161 148 metanames.obj : metanames.c 162 149 result_sort.obj : result_sort.c 163 html.obj : html.c164 150 filter.obj : filter.c 165 151 parse_conffile.obj : parse_conffile.c swish-e/branches/2.6/src/vms/descrip_libxml2.mms
r1456 r1951 23 23 #CWARN= 24 24 CDEF = /def=(HAVE_LIBXML2,VMS,HAVE_CONFIG_H,STDC_HEADERS) 25 CINCL= /include=( [.expat.xmlparse],[.expat.xmltok],libz:)25 CINCL= /include=(libz:) 26 26 CWARN= 27 27 #CDEBUG= /debug/noopt … … 39 39 40 40 FILESYSTEM_OBJS=fs.obj 41 HTTP_OBJS=http.obj httpserver.obj42 41 FS_OBJS=$(FILESYSTEM_OBJS) 43 WEB_OBJS=$(HTTP_OBJS)44 42 VMS_OBJS = regex.obj 45 43 46 XML_PARSE = xmlparse.obj xmltok.obj xmlrole.obj47 44 LIBXML2_LIB = libxml:libxml.olb/lib 48 45 LIBXML2_OBJS = parser.obj … … 51 48 OBJS= check.obj file.obj index.obj search.obj error.obj methods.obj\ 52 49 hash.obj list.obj mem.obj merge.obj swish2.obj stemmer.obj \ 53 soundex.obj docprop.obj compress.obj xml.obj txt.obj\54 metanames.obj result_sort.obj html.obj\50 soundex.obj docprop.obj compress.obj \ 51 metanames.obj result_sort.obj \ 55 52 filter.obj parse_conffile.obj result_output.obj date_time.obj \ 56 53 keychar_out.obj extprog.obj bash.obj db_native.obj dump.obj \ … … 61 58 $(XML_PARSE)\ 62 59 $(LIBXML2_OBJS)\ 63 $(FILESYSTEM_OBJS) $( HTTP_OBJS) $(VMS_OBJS) $(VSNPRINTF_OBJ) \60 $(FILESYSTEM_OBJS) $(VMS_OBJS) $(VSNPRINTF_OBJ) \ 64 61 api.obj stem_de.obj stem_dk.obj stem_en1.obj stem_en2.obj stem_es.obj\ 65 62 stem_fi.obj stem_fr.obj stem_it.obj stem_nl.obj stem_no.obj \ … … 69 66 all : acconfig.h $(NAME) swish-search.exe libtest.exe 70 67 ! 71 72 xmlparse.obj : [.expat.xmlparse]xmlparse.c73 74 xmltok.obj : [.expat.xmltok]xmltok.c75 76 xmlrole.obj : [.expat.xmltok]xmlrole.c77 68 78 69 $(NAME) : $(OBJS) libswish-e.olb swish.obj … … 140 131 list.h 141 132 hash.obj : hash.c swish.h config.h hash.h mem.h 142 http.obj : http.c swish.h config.h index.h hash.h mem.h file.h \143 http.h httpserver.h144 httpserver.obj : httpserver.c swish.h config.h mem.h http.h \145 httpserver.h146 133 index.obj : index.c swish.h config.h index.h hash.h mem.h \ 147 134 check.h search.h docprop.h stemmer.h compress.h … … 161 148 libtest.obj : libtest.c swish.h config.h error.h list.h search.h index.h \ 162 149 file.h merge.h docprop.h 163 txt.obj : txt.c txt.h swish.h mem.h index.h164 xml.obj : xml.c txt.h swish.h mem.h index.h165 150 proplimi.obj : swish.h mem.h merge.h docprop.h index.h metanames.h \ 166 151 compress.h error.h db.h result_sort.h swish_qsort.h proplimit.h swish-e/branches/2.6/src/vms/descrip_vax.mms
r1456 r1951 23 23 #CWARN= 24 24 CDEF = /def=(VMS,HAVE_CONFIG_H,STDC_HEADERS, REGEX_MALLOC) 25 CINCL= /include=( [.expat.xmlparse],[.expat.xmltok],libz:)25 CINCL= /include=(libz:) 26 26 CWARN= 27 27 #CDEBUG= /debug/noopt … … 39 39 40 40 FILESYSTEM_OBJS=fs.obj 41 HTTP_OBJS=http.obj httpserver.obj42 41 FS_OBJS=$(FILESYSTEM_OBJS) 43 WEB_OBJS=$(HTTP_OBJS)44 42 VMS_OBJS = regex.obj 45 43 VSNPRINTF_OBJ = vsnprintf.obj … … 47 45 OBJS= check.obj file.obj index.obj search.obj error.obj methods.obj\ 48 46 hash.obj list.obj mem.obj merge.obj swish2.obj stemmer.obj \ 49 soundex.obj docprop.obj compress.obj xml.obj txt.obj\50 metanames.obj result_sort.obj html.obj\47 soundex.obj docprop.obj compress.obj \ 48 metanames.obj result_sort.obj \ 51 49 filter.obj parse_conffile.obj result_output.obj date_time.obj \ 52 50 keychar_out.obj extprog.obj bash.obj db_native.obj dump.obj \ 53 51 entities.obj swish_words.obj \ 54 52 proplimit.obj swish_qsort.obj ramdisk.obj rank.obj \ 55 xmlparse.obj xmltok.obj xmlrole.objswregex.obj vsnprintf.obj \53 swregex.obj vsnprintf.obj \ 56 54 double_metaphone.obj db_read.obj db_write.obj swstring.obj \ 57 55 pre_sort.obj headers.obj docprop_write.obj stemmer.obj\ 58 $(FILESYSTEM_OBJS) $( HTTP_OBJS) $(VMS_OBJS)\56 $(FILESYSTEM_OBJS) $(VMS_OBJS)\ 59 57 api.obj stem_de.obj stem_dk.obj stem_en1.obj stem_en2.obj stem_es.obj\ 60 58 stem_fi.obj stem_fr.obj stem_it.obj stem_nl.obj stem_no.obj \ … … 63 61 all : acconfig.h $(NAME) swish-search.exe ! libtest.exe 64 62 ! 65 66 xmlparse.obj : [.expat.xmlparse]xmlparse.c67 68 xmltok.obj : [.expat.xmltok]xmltok.c69 70 xmlrole.obj : [.expat.xmltok]xmlrole.c71 63 72 64 $(NAME) : $(OBJS) libswish-e.olb swish.obj … … 134 126 list.h 135 127 hash.obj : hash.c swish.h config.h hash.h mem.h 136 http.obj : http.c swish.h config.h index.h hash.h mem.h file.h \137 http.h httpserver.h138 httpserver.obj : httpserver.c swish.h config.h mem.h http.h \139 httpserver.h140 128 index.obj : index.c swish.h config.h index.h hash.h mem.h \ 141 129 check.h search.h docprop.h stemmer.h compress.h … … 155 143 libtest.obj : libtest.c swish.h config.h error.h list.h search.h index.h \ 156 144 file.h merge.h docprop.h 157 txt.obj : txt.c txt.h swish.h mem.h index.h158 xml.obj : xml.c txt.h swish.h mem.h index.h159 145 proplimi.obj : swish.h mem.h merge.h docprop.h index.h metanames.h \ 160 146 compress.h error.h db.h result_sort.h swish_qsort.h proplimit.h swish-e/branches/2.6/src/win32/dllswishe.dsp
r1802 r1951 44 44 # PROP Target_Dir "" 45 45 # ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "DLLSWISH_EXPORTS" /Yu"stdafx.h" /FD /c 46 # ADD CPP /nologo /MT /W3 /GX /O2 /I "." /I "..\replace" /I ".. \..\..\expat\xmlparse" /I "../../../libxml2/include" /I "..\..\..\expat\xmltok" /I "../../../pcre/include" /I "..\..\..\zlib\include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "DLLSWISH_EXPORTS" /D "HAVE_PCRE" /D "HAVE_CONFIG_H" /D "HAVE_ZLIB" /FD /c46 # ADD CPP /nologo /MT /W3 /GX /O2 /I "." /I "..\replace" /I "../../../libxml2/include" /I "../../../pcre/include" /I "..\..\..\zlib\include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "DLLSWISH_EXPORTS" /D "HAVE_PCRE" /D "HAVE_CONFIG_H" /D "HAVE_ZLIB" /FD /c 47 47 # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32 48 48 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 … … 71 71 # PROP Target_Dir "" 72 72 # ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "DLLSWISH_EXPORTS" /Yu"stdafx.h" /FD /GZ /c 73 # ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /I "../replace" /I "." /I ".. \..\..\expat\xmlparse" /I "../../../libxml2/include" /I "..\..\..\expat\xmltok" /I "../../../pcre/include" /I "..\..\..\zlib\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "DLLSWISH_EXPORTS" /D "HAVE_PCRE" /D "HAVE_CONFIG_H" /D "HAVE_ZLIB" /FD /GZ /c73 # ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /I "../replace" /I "." /I "../../../libxml2/include" /I "../../../pcre/include" /I "..\..\..\zlib\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "DLLSWISH_EXPORTS" /D "HAVE_PCRE" /D "HAVE_CONFIG_H" /D "HAVE_ZLIB" /FD /GZ /c 74 74 # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32 75 75 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 swish-e/branches/2.6/src/win32/swishe.dsp
r1802 r1951 43 43 # PROP Target_Dir "" 44 44 # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c 45 # ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I "../replace" /I "..\..\..\ expat\xmlparse" /I "..\..\..\zlib\include" /I "..\..\..\expat\xmltok" /I "../../../libxml2/include" /I "../../../pcre/include" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /D "HAVE_PCRE" /D "HAVE_CONFIG_H" /D "HAVE_ZLIB" /FR /YX /FD /c45 # ADD CPP /nologo /MD /W3 /GX /O2 /I "." /I "../replace" /I "..\..\..\zlib\include" /I "../../../libxml2/include" /I "../../../pcre/include" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /D "HAVE_PCRE" /D "HAVE_CONFIG_H" /D "HAVE_ZLIB" /FR /YX /FD /c 46 46 # ADD BASE RSC /l 0x409 /d "NDEBUG" 47 47 # ADD RSC /l 0x409 /d "NDEBUG" … … 51 51 LINK32=link.exe 52 52 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 53 # ADD LINK32 kernel32.lib dllswish-e.lib libswishindex.lib ../ expat/xmltok/Release/xmltok.lib ../expat/xmlparse/Release/xmlparse.lib ../../../libxml2/lib/libxml2.lib ../../../zlib/lib/zdll.lib ../../../pcre/lib/pcreposix.lib /nologo /subsystem:console /machine:I386 /out:"swish-e.exe"53 # ADD LINK32 kernel32.lib dllswish-e.lib libswishindex.lib ../../../libxml2/lib/libxml2.lib ../../../zlib/lib/zdll.lib ../../../pcre/lib/pcreposix.lib /nologo /subsystem:console /machine:I386 /out:"swish-e.exe" 54 54 # SUBTRACT LINK32 /pdb:none 55 55 … … 68 68 # PROP Target_Dir "" 69 69 # ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c 70 # ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I "." /I "../replace" /I ".. \..\..\expat\xmlparse" /I "../../../libxml2/include" /I "..\..\..\expat\xmltok" /I "../../../pcre/include" /I "../../../zlib" /D "HAVE_PCRE" /D "HAVE_CONFIG_H" /D "HAVE_ZLIB" /D "_CONSOLE" /D "WIN32" /D "_DEBUG" /D "_MBCS" /YX /FD /I /GZ /c70 # ADD CPP /nologo /W3 /Gm /GX /ZI /Od /I "." /I "../replace" /I "../../../libxml2/include" /I "../../../pcre/include" /I "../../../zlib" /D "HAVE_PCRE" /D "HAVE_CONFIG_H" /D "HAVE_ZLIB" /D "_CONSOLE" /D "WIN32" /D "_DEBUG" /D "_MBCS" /YX /FD /I /GZ /c 71 71 # ADD BASE RSC /l 0x409 /d "_DEBUG" 72 72 # ADD RSC /l 0x409 /d "_DEBUG" … … 76 76 LINK32=link.exe 77 77 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept 78 # ADD LINK32 kernel32.lib libswish-e.lib libswishindex.lib ../ expat/xmltok/Release/xmltok.lib ../expat/xmlparse/Release/xmlparse.lib ../../../libxml2/lib/libxml2.lib ../../../zlib/lib/zdll.lib ../../../pcre/lib/pcreposix.lib /nologo /subsystem:console /debug /machine:I386 /out:"swish-e.exe" /pdbtype:sept78 # ADD LINK32 kernel32.lib libswish-e.lib libswishindex.lib ../../../libxml2/lib/libxml2.lib ../../../zlib/lib/zdll.lib ../../../pcre/lib/pcreposix.lib /nologo /subsystem:console /debug /machine:I386 /out:"swish-e.exe" /pdbtype:sept 79 79 # SUBTRACT LINK32 /pdb:none 80 80
