mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
Compile dict2dawg by default since dict2dawg.pl has problems; fix warnings.
This commit is contained in:
parent
08326c6146
commit
15a2154720
2 changed files with 10 additions and 4 deletions
|
@ -32,8 +32,10 @@ LANGUAGE = $(shell basename $$(pwd))
|
|||
|
||||
# prefer the compiled version if available. But don't compile it
|
||||
# automatically until it's a bit better tested.
|
||||
DICT2DAWG = $(if $(shell test -x ../dict2dawg && echo foo),\
|
||||
../dict2dawg,../dict2dawg.pl)
|
||||
# DICT2DAWG = $(if $(shell test -x ../dict2dawg && echo foo),\
|
||||
# ../dict2dawg,../dict2dawg.pl)
|
||||
|
||||
DICT2DAWG = ../dict2dawg
|
||||
|
||||
#all: target_all
|
||||
|
||||
|
@ -268,6 +270,10 @@ values.bin: ../xloc.pl
|
|||
%.dict: %.dict.gz
|
||||
zcat $< > $@
|
||||
|
||||
# clean this up....
|
||||
../dict2dawg: ../dict2dawg.cpp
|
||||
cd ../ && g++ -DDEBUG -O -o dict2dawg dict2dawg.cpp
|
||||
|
||||
clean_common:
|
||||
rm -f $(XWLANG)Main.dict *.bin *.pdb *.seb dawg*.stamp *.$(FRANK_EXT) \
|
||||
$(XWLANG)*.pdb $(XWLANG)*.seb
|
||||
|
|
|
@ -399,7 +399,7 @@ readFromSortedArray( void )
|
|||
}
|
||||
|
||||
for ( ; ; ) {
|
||||
char* word = "";
|
||||
char* word = (char*)"";
|
||||
|
||||
if ( !gDone ) {
|
||||
gDone = gNextWordIndex == sInputStrings->size();
|
||||
|
@ -570,7 +570,7 @@ readFromFile( void )
|
|||
gDone = NULL == word;
|
||||
}
|
||||
if ( gDone ) {
|
||||
word = "";
|
||||
word = (char*)"";
|
||||
len = 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue