diff options
author | dos-reis <gdr@axiomatics.org> | 2012-05-20 20:02:50 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2012-05-20 20:02:50 +0000 |
commit | 47a2fd61be7c98af4d53f8b885a0038a72fcd4e6 (patch) | |
tree | 4287ba6ee8112a0cb73bbaa4a456333a8e26fed1 /src/boot/translator.boot | |
parent | d514701a383cf1c0152a5a5e97a1530eccb8ea63 (diff) | |
download | open-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.boot | 5 |
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. |