aboutsummaryrefslogtreecommitdiff
path: root/src/interp/guess.boot
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2010-12-19 16:04:55 +0000
committerdos-reis <gdr@axiomatics.org>2010-12-19 16:04:55 +0000
commit0baf7a71d80fc15fdab5caa551b7e00800dccbef (patch)
tree859d6581ba133d0123a27d7e82f0c64b5aea46bc /src/interp/guess.boot
parentba495f17f8e3a8b780f038fd6f2d5877ccc2476e (diff)
downloadopen-axiom-0baf7a71d80fc15fdab5caa551b7e00800dccbef.tar.gz
* interp/vmlisp.lisp (VECP): Remove.
(REFVECP): Likewise. (CVECP): Likewise. (QMEMQ): Likewise. * interp/bootlex.lisp (TRANSLABEL1): Adjust. * interp/br-search.boot: Likewise. * interp/br-util.boot: Likewise. * interp/c-doc.boot: Likewise. * interp/category.boot: Likewise. * interp/database.boot: Likewise. * interp/debug.lisp: Likewise. * interp/format.boot: Likewise. * interp/functor.boot: Likewise. * interp/g-cndata.boot: Likewise. * interp/g-util.boot: Likewise. * interp/ggreater.lisp: Likewise. * interp/guess.boot: Likewise. * interp/i-coerfn.boot: Likewise. * interp/i-map.boot: Likewise. * interp/i-output.boot: Likewise. * interp/i-resolv.boot: Likewise. * interp/i-spec2.boot: Likewise. * interp/i-syscmd.boot: Likewise. * interp/interop.boot: Likewise. * interp/i-util.boot: Likewise. * interp/union.lisp: Likewise. * interp/trace.boot: Likewise. * interp/pspad2.boot: Likewise. * interp/pathname.boot: Likewise. * interp/nrunopt.boot: Likewise. * interp/nrunfast.boot: Likewise. * interp/nruncomp.boot: Likewise. * interp/newfort.boot: Likewise. * interp/msgdb.boot: Likewise. * interp/msg.boot: Likewise. * interp/match.boot: Likewise. * interp/word.boot: Likewise.
Diffstat (limited to 'src/interp/guess.boot')
-rw-r--r--src/interp/guess.boot4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interp/guess.boot b/src/interp/guess.boot
index 096bacc1..2947b34c 100644
--- a/src/interp/guess.boot
+++ b/src/interp/guess.boot
@@ -170,7 +170,7 @@ findApproximateWords(word,table) ==
if i = 1 and null alist then
--no winners, so try flattening to upper case and checking again
- wordSize := SIZE word
+ wordSize := # word
lastThreshold := MAX(threshold - 1,wordSize/2)
for [x,:.] in wordAlist repeat
k := deltaWordEntry(upperWord,UPCASE x)
@@ -277,7 +277,7 @@ deltaWordEntry(word,entry) ==
word = entry => 0
word.0 ~= entry.0 => 1000
#word > 2 and stringPrefix?(word,entry) => 1
- ABS(diff := SIZE word - SIZE entry) > 4 => 1000
+ ABS(diff := # word - # entry) > 4 => 1000
canForgeWord(word,entry)
--+ Note these are optimized definitions below-- see commented out versions