aboutsummaryrefslogtreecommitdiff
path: root/src/boot/translator.boot
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2012-05-20 20:02:50 +0000
committerdos-reis <gdr@axiomatics.org>2012-05-20 20:02:50 +0000
commit47a2fd61be7c98af4d53f8b885a0038a72fcd4e6 (patch)
tree4287ba6ee8112a0cb73bbaa4a456333a8e26fed1 /src/boot/translator.boot
parentd514701a383cf1c0152a5a5e97a1530eccb8ea63 (diff)
downloadopen-axiom-47a2fd61be7c98af4d53f8b885a0038a72fcd4e6.tar.gz
* boot/utility.boot (strinSuffix?): New.
* boot/translator.boot (shoeRemovebootIfNec): Use it.
Diffstat (limited to 'src/boot/translator.boot')
-rw-r--r--src/boot/translator.boot5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/boot/translator.boot b/src/boot/translator.boot
index 430f3909..6fca0944 100644
--- a/src/boot/translator.boot
+++ b/src/boot/translator.boot
@@ -503,9 +503,8 @@ shoeRemovebootIfNec s ==
shoeRemoveStringIfNec('".boot",s)
shoeRemoveStringIfNec(str,s)==
- n := SEARCH(str,s,KEYWORD::FROM_-END,true)
- n = nil => s
- subString(s,0,n)
+ n := stringSuffix?(str,s) => subString(s,0,n)
+ s
-- DEFUSE prints the definitions not used and the words used and
-- not defined in the input file and common lisp.