Compile dict2dawg by default since dict2dawg.pl has problems; fix warnings.

This commit is contained in:
ehouse 2008-03-15 14:52:23 +00:00
parent 08326c6146
commit 15a2154720
2 changed files with 10 additions and 4 deletions

View file

@ -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

View file

@ -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;
}