[sword-svn] r1933 - in trunk: lib/bcppmake src/mgr src/modules
scribe at crosswire.org
scribe at crosswire.org
Tue Jun 27 04:01:59 MST 2006
Author: scribe
Date: 2006-06-27 04:01:57 -0700 (Tue, 27 Jun 2006)
New Revision: 1933
Modified:
trunk/lib/bcppmake/libsword.bpr
trunk/src/mgr/swmgr.cpp
trunk/src/modules/swmodule.cpp
Log:
support searching for strongs numbers when not indexed
added support for new lookup path: ../library/
Modified: trunk/lib/bcppmake/libsword.bpr
===================================================================
--- trunk/lib/bcppmake/libsword.bpr 2006-06-26 00:38:14 UTC (rev 1932)
+++ trunk/lib/bcppmake/libsword.bpr 2006-06-27 11:01:57 UTC (rev 1933)
@@ -128,7 +128,7 @@
<PATHRC value=".;"/>
<PATHASM value=".;"/>
<LINKER value="TLib"/>
- <USERDEFINES value="UNICODE;_ICU_;_ICUSWORD_;USBINARY;U_HAVE_PLACEMENT_NEW=0;USELUCENE;_WIN32;_CL_DISABLE_MULTITHREADING;_DEBUG"/>
+ <USERDEFINES value="UNICODE;_ICU_;_ICUSWORD_;USBINARY;U_HAVE_PLACEMENT_NEW=0;USELUCENE;_WIN32;_CL_DISABLE_MULTITHREADING"/>
<SYSDEFINES value="NO_STRICT"/>
<MAINSOURCE value="libsword.bpf"/>
<INCLUDEPATH value="..\..\src\modules\tests;..\..\src\utilfuns\zlib;..\..\src\modules\lexdict\zld;..\..\src\modules\lexdict\rawld4;..\..\src\modules\comments\zcom;..\..\src\modules\genbook\rawgenbook;..\..\src\modules\genbook;..\..\src\modules\texts\ztext;..\..\src\modules\texts\rawtext;..\..\src\modules\texts;..\..\src\modules\lexdict\rawld;..\..\src\modules\lexdict;..\..\src\modules\filters;..\..\src\modules\common;..\..\src\modules\comments\rawfiles;..\..\src\modules\comments\rawcom;..\..\src\modules\comments\hrefcom;..\..\src\modules\comments;..\..\src\modules;..\..\src\frontend;..\..\src\utilfuns;..\..\src\mgr;..\..\src\keys;..\..\..\icu-sword\source\common;..\..\apps\windoze\CBuilder5\InstallMgr\curl\include;..\..\include;$(BCB)\include;$(BCB)\include\vcl;..\..\..\icu-sword\source\i18n;..\..\..\biblecs\clucene\src;..\..\..\biblecs\apps\InstallMgr\curl\include"/>
@@ -154,9 +154,9 @@
-I..\..\..\biblecs\apps\InstallMgr\curl\include -src_suffix cpp -DUNICODE
-D_ICU_ -D_ICUSWORD_ -DUSBINARY -DU_HAVE_PLACEMENT_NEW=0 -DUSELUCENE
-D_WIN32 -D_CL_DISABLE_MULTITHREADING -no_tie -boa"/>
- <CFLAG1 value="-vGc -vGt -vGd -Od -Vx -X- -r- -a8 -b- -k -y -v -vi- -c -tW -tWM"/>
- <PFLAGS value="-$Y+ -$W -$O- -v -JPHNE -M"/>
- <AFLAGS value="/mx /w2 /zi"/>
+ <CFLAG1 value="-O2 -Vx -X- -a8 -b- -k- -vi -c -tW -tWM"/>
+ <PFLAGS value="-$Y- -$L- -$D- -v -JPHNE -M"/>
+ <AFLAGS value="/mx /w2 /zn"/>
<LFLAGS value="/P512"/>
</OPTIONS>
<LINKER>
@@ -230,8 +230,8 @@
[HistoryLists\hlConditionals]
Count=22
-Item0=UNICODE;_ICU_;_ICUSWORD_;USBINARY;U_HAVE_PLACEMENT_NEW=0;USELUCENE;_WIN32;_CL_DISABLE_MULTITHREADING;_DEBUG
-Item1=UNICODE;_ICU_;_ICUSWORD_;USBINARY;U_HAVE_PLACEMENT_NEW=0;USELUCENE;_WIN32;_CL_DISABLE_MULTITHREADING
+Item0=UNICODE;_ICU_;_ICUSWORD_;USBINARY;U_HAVE_PLACEMENT_NEW=0;USELUCENE;_WIN32;_CL_DISABLE_MULTITHREADING
+Item1=UNICODE;_ICU_;_ICUSWORD_;USBINARY;U_HAVE_PLACEMENT_NEW=0;USELUCENE;_WIN32;_CL_DISABLE_MULTITHREADING;_DEBUG
Item2=_ICU_;_ICUSWORD_;USBINARY;U_HAVE_PLACEMENT_NEW=0;USELUCENE;_WIN32;_CL_DISABLE_MULTITHREADING
Item3=_ICU_;_ICUSWORD_;USBINARY;U_HAVE_PLACEMENT_NEW=0;USELUCENE;_WIN32;_CL_DISABLE_MULTITHREADING;UNICODE
Item4=_UCS2;_ICU_;_ICUSWORD_;USBINARY;U_HAVE_PLACEMENT_NEW=0;USELUCENE;_WIN32;_CL_DISABLE_MULTITHREADING
@@ -280,7 +280,7 @@
[Compiler]
ShowInfoMsgs=0
LinkDebugVcl=0
-LinkCGLIB=1
+LinkCGLIB=0
[Language]
ActiveLang=
Modified: trunk/src/mgr/swmgr.cpp
===================================================================
--- trunk/src/mgr/swmgr.cpp 2006-06-26 00:38:14 UTC (rev 1932)
+++ trunk/src/mgr/swmgr.cpp 2006-06-27 11:01:57 UTC (rev 1933)
@@ -357,7 +357,6 @@
// check working directory
DEBUGSTR("Checking working directory for mods.conf...");
-
if (FileMgr::existsFile(".", "mods.conf")) {
DEBUGSTR("found\n");
stdstr(prefixPath, "./");
@@ -374,6 +373,15 @@
return;
}
+ // check working directory ../library/
+ DEBUGSTR("\nChecking working directory ../library/ for mods.d...");
+ if (FileMgr::existsDir("../library", "mods.d")) {
+ DEBUGSTR("found\n");
+ stdstr(prefixPath, "../library/");
+ stdstr(configPath, "../library/mods.d");
+ *configType = 1;
+ return;
+ }
// check environment variable SWORD_PATH
DEBUGSTR("\nChecking SWORD_PATH...");
Modified: trunk/src/modules/swmodule.cpp
===================================================================
--- trunk/src/modules/swmodule.cpp 2006-06-26 00:38:14 UTC (rev 1932)
+++ trunk/src/modules/swmodule.cpp 2006-06-27 11:01:57 UTC (rev 1933)
@@ -432,6 +432,8 @@
terminateSearch = false;
char perc = 1;
bool savePEA = isProcessEntryAttributes();
+ // determine if we might be doing special strip searches. useful for knowing if we can use shortcuts
+ bool specialStrips = (getConfigEntry("LocalStripFilter") || strchr(istr, '<'));
processEntryAttributes(searchType == -3);
@@ -647,7 +649,6 @@
else if (searchType == -2) {
int loopCount = 0;
int foundWords = 0;
- bool specialStrips = getConfigEntry("LocalStripFilter");
do {
const char* textBuf = ((loopCount == 0)&&(!specialStrips)) ? getRawEntry() : StripText();
foundWords = 0;
More information about the sword-cvs
mailing list