aboutsummaryrefslogtreecommitdiff
path: root/src/interp/br-data.boot
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-04-21 05:56:14 +0000
committerdos-reis <gdr@axiomatics.org>2011-04-21 05:56:14 +0000
commit97463cc77bbec1c33f46ceb44584a180264682c3 (patch)
tree61d9cf3e25771fbdd5de776ea989aff622684aa3 /src/interp/br-data.boot
parent1ca37b944b566ef3f0479d4c2fe6895e9fbd3785 (diff)
downloadopen-axiom-97463cc77bbec1c33f46ceb44584a180264682c3.tar.gz
* boot/tokens.boot: Don't rename nreverse.
* boot/utility.boot (reverse!): Define. * boot/parser.boot: Use reverse! instead of NREVERSE. * boot/ast.boot: Generate reverse! forms instead of NREVERSE.
Diffstat (limited to 'src/interp/br-data.boot')
-rw-r--r--src/interp/br-data.boot14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/interp/br-data.boot b/src/interp/br-data.boot
index 5df41701..4d20e105 100644
--- a/src/interp/br-data.boot
+++ b/src/interp/br-data.boot
@@ -269,7 +269,7 @@ dbReadComments(n) ==
x.(j := j + 1) = char "-" and x.(j := j + 1) = char "-" repeat
xtralines := [subString(x,j + 1),:xtralines]
SHUT instream
- strconc(line, strconc/nreverse xtralines)
+ strconc(line, strconc/reverse! xtralines)
dbSplitLibdb() ==
instream := MAKE_-INSTREAM '"olibdb.text"
@@ -512,7 +512,7 @@ getParentsFor(cname,formalParams,constructorCategory) ==
x := SUBLISLIS(IFCDR constructorForm,formalParams,x)
x := substitute('Type,'Object,x)
acc := [:explodeIfs x,:acc]
- nreverse acc
+ reverse! acc
$parentsCache := nil
@@ -538,7 +538,7 @@ getParentsForDomain domname == --called by parentsOf
sublisFormal(IFCDR getConstructorForm domname,x,$TriangleVariableList)
sublisFormal(IFCDR getConstructorForm domname,x)
acc := [:explodeIfs x,:acc]
- nreverse acc
+ reverse! acc
explodeIfs x == main where --called by getParents, getParentsForDomain
main() ==
@@ -625,7 +625,7 @@ computeAncestorsOf(conform,domform) ==
acc := nil
for op in listSort(function GLESSEQP,HKEYS $if) repeat
for pair in HGET($if,op) repeat acc := [pair,:acc]
- nreverse acc
+ reverse! acc
ancestorsRecur(conform,domform,pred,firstTime?) == --called by ancestorsOf
op := opOf conform
@@ -696,7 +696,7 @@ transKCatAlist(conform,domname,s) == main where
null match? => 'skip
npred := sublisFormal(KDR leftForm,pred)
acc := [[leftForm,:npred],:acc]
- nreverse acc
+ reverse! acc
--conform has no arguments so each pair has form [con,:pred]
for pair in s repeat
leftForm := getConstructorForm first pair or systemError nil
@@ -719,7 +719,7 @@ transKCatAlist(conform,domname,s) == main where
['hasArgs,:subargs]
npred := quickAnd(hpred,npred)
acc := [[leftForm,:npred],:acc]
- nreverse acc
+ reverse! acc
for pair in s repeat --pair has form [con,:pred]
leftForm := getConstructorForm first pair
pair.first := leftForm
@@ -744,7 +744,7 @@ sublisFormal(args,exp,:options) == main where
while cons? y repeat
acc := [sublisFormal1(args,first y,n),:acc]
y := rest y
- r := nreverse acc
+ r := reverse! acc
if y then
nd := lastNode r
nd.rest := sublisFormal1(args,y,n)