diff options
author | dos-reis <gdr@axiomatics.org> | 2008-01-26 23:33:47 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2008-01-26 23:33:47 +0000 |
commit | 228450b9bdf11e3a51dc0e2069bf7e12cc99d3a9 (patch) | |
tree | 051fff1be001d6f433099fa358022ad251d7b3a4 /src/interp/i-map.boot | |
parent | 31a2bea16b21b23a129599b2fd84843e58ac9273 (diff) | |
download | open-axiom-228450b9bdf11e3a51dc0e2069bf7e12cc99d3a9.tar.gz |
* interp/database.boot: Tidy uses of $EmptyEnvironment.
* interp/i-map.boot: Likewise. Allocate fresh cell for $env.
* interp/i-spec1.boot: Likewise.
* interp/i-syscmd.boot: Likewise.
* interp/i-toplev.boot: Likewise.
* interp/lisplib.boot: Likewise.
* interp/setvars.boot: Likewise.
* interp/sys-globals.boot: Likewise.
* interp/nruncomp.boot: Encode flag types too.
* interp/template.boot: Likewise.
* share/algebra: Update databases.
Diffstat (limited to 'src/interp/i-map.boot')
-rw-r--r-- | src/interp/i-map.boot | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/interp/i-map.boot b/src/interp/i-map.boot index 1dc09662..0add6301 100644 --- a/src/interp/i-map.boot +++ b/src/interp/i-map.boot @@ -1,5 +1,7 @@ -- Copyright (c) 1991-2002, The Numerical ALgorithms Group Ltd. -- All rights reserved. +-- Copyright (C) 2007-2008, Gabriel Dos Reis. +-- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are @@ -115,7 +117,7 @@ addDefMap(['DEF,lhs,mapsig,.,rhs],pred) == someDecs := nil allDecs := true mapmode := ['Mapping] - $env:local := [$EmptyEnvironment] + $env:local := [[nil]] $eval:local := true --generate code-- don't just type analyze $genValue:local := true --evaluate all generated code for d in mapsig repeat @@ -578,7 +580,7 @@ rewriteMap0(op,opName,argl) == tar:= nil argTypes:= nil get(opName,'mode,$e) is ['Mapping,tar,:argTypes] - $env: local := [$EmptyEnvironment] + $env: local := [[nil]] for arg in argl for var in $FormalMapVariableList repeat if argTypes then @@ -611,7 +613,7 @@ rewriteMap1(opName,argl,sig) == for arg in reverse argl repeat v := getValue arg evArgl := [objNew(objVal v, objMode v),:evArgl] - $env : local := [$EmptyEnvironment] + $env : local := [[nil]] for arg in argl for evArg in evArgl for var in $FormalMapVariableList repeat if argTypes then @@ -669,7 +671,7 @@ compileDeclaredMap(op,sig,mapDef) == -- creates a local modemap and puts it into the environment $localVars: local := nil $freeVars: local := nil - $env:local:= [$EmptyEnvironment] + $env:local:= [[nil]] parms:=[var for var in $FormalMapVariableList for m in CDR sig] for m in CDR sig for var in parms repeat $env:= put(var,'mode,m,$env) @@ -785,7 +787,7 @@ analyzeUndeclaredMap(op,argTypes,mapDef,$mapList) == -- Computes the signature of the map named op, and compiles the body $freeVars:local := NIL $localVars: local := NIL - $env:local:= [$EmptyEnvironment] + $env:local:= [[nil]] $mapList := [op,:$mapList] parms:=[var for var in $FormalMapVariableList for m in argTypes] for m in argTypes for var in parms repeat |