diff options
author | dos-reis <gdr@axiomatics.org> | 2011-05-12 15:39:14 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2011-05-12 15:39:14 +0000 |
commit | 665cb7df0fd6106b61a88667ae132e613d395cc4 (patch) | |
tree | 7add9286226ea268e888be8a1c55da11fc182210 /src/boot | |
parent | a8b9a2f5f65820ce836353e0d25070fa8eaeece9 (diff) | |
download | open-axiom-665cb7df0fd6106b61a88667ae132e613d395cc4.tar.gz |
* boot/initial-env.lisp (MAKE-HASHTABLE): Remove.
(BEVC-MAKE-FULL): Likewise.
(MAKE-BVEC): Likewise.
* boot/tokens.boot (shoeKeyTableCons): Adjust.
(shoePunCons): Likewise.
(shoeDfu): Likewise.
(shoeXref): Likewise.
Diffstat (limited to 'src/boot')
-rw-r--r-- | src/boot/ast.boot | 6 | ||||
-rw-r--r-- | src/boot/initial-env.lisp | 16 | ||||
-rw-r--r-- | src/boot/strap/tokens.clisp | 4 | ||||
-rw-r--r-- | src/boot/strap/translator.clisp | 12 | ||||
-rw-r--r-- | src/boot/tokens.boot | 4 | ||||
-rw-r--r-- | src/boot/translator.boot | 12 |
6 files changed, 20 insertions, 34 deletions
diff --git a/src/boot/ast.boot b/src/boot/ast.boot index d757cda4..b7b50c51 100644 --- a/src/boot/ast.boot +++ b/src/boot/ast.boot @@ -315,9 +315,11 @@ bfUntil p== g:=bfGenSymbol() [[[g],[nil],[['SETQ,g,p]],[],[g],[]]] -bfIterators x==["ITERATORS",:x] +bfIterators x == + ["ITERATORS",:x] -bfCross x== ["CROSS",:x] +bfCross x == + ["CROSS",:x] bfLp(iters,body)== iters is ["ITERATORS",:.] => bfLp1(rest iters,body) diff --git a/src/boot/initial-env.lisp b/src/boot/initial-env.lisp index 9596211a..1f050115 100644 --- a/src/boot/initial-env.lisp +++ b/src/boot/initial-env.lisp @@ -86,14 +86,6 @@ (shoeprettyprin0 x stream) (terpri stream)) -(defun MAKE-HASHTABLE (id1) - (let ((test (case id1 - ((EQ ID) #'eq) - (CVEC #'equal) - ((UEQUAL EQUAL) #'equal) - (otherwise (error "bad arg to make-hashtable"))))) - (make-hash-table :test test))) - (defun HKEYS (table) (let (keys) (maphash #'(lambda (key val) @@ -122,14 +114,6 @@ (position table cvec :test-not #'(lambda (x y) (position y x)) :start sint))) - -(defun bvec-make-full (n x) - (make-array (list n) - :element-type 'bit - :initial-element x)) - -(defun make-bvec (n) - (bvec-make-full n 0)) (defun |shoeReadLisp| (s n) (multiple-value-list (read-from-string s nil nil :start n))) diff --git a/src/boot/strap/tokens.clisp b/src/boot/strap/tokens.clisp index 2891cea0..8080f322 100644 --- a/src/boot/strap/tokens.clisp +++ b/src/boot/strap/tokens.clisp @@ -58,7 +58,7 @@ (PROG (|KeyTable|) (RETURN (PROGN - (SETQ |KeyTable| (MAKE-HASHTABLE 'CVEC)) + (SETQ |KeyTable| (|makeTable| #'EQUAL)) (LET ((|bfVar#2| |shoeKeyWords|) (|st| NIL)) (LOOP (COND @@ -136,7 +136,7 @@ (RETURN (PROGN (SETQ |listing| (HKEYS |shoeKeyTable|)) - (SETQ |a| (MAKE-BVEC 256)) + (SETQ |a| (|makeBitVector| 256)) (LET ((|i| 0)) (LOOP (COND diff --git a/src/boot/strap/translator.clisp b/src/boot/strap/translator.clisp index 0d3d6a67..312bca9e 100644 --- a/src/boot/strap/translator.clisp +++ b/src/boot/strap/translator.clisp @@ -842,11 +842,11 @@ (RETURN (COND ((NULL |a|) (|shoeNotFound| |fn|)) - (T (SETQ |$lispWordTable| (MAKE-HASHTABLE 'EQ)) + (T (SETQ |$lispWordTable| (|makeTable| #'EQ)) (DO-SYMBOLS (|i| (FIND-PACKAGE 'LISP)) (SETF (|tableValue| |$lispWordTable| |i|) T)) - (SETQ |$bootDefined| (MAKE-HASHTABLE 'EQ)) - (SETQ |$bootUsed| (MAKE-HASHTABLE 'EQ)) + (SETQ |$bootDefined| (|makeTable| #'EQ)) + (SETQ |$bootUsed| (|makeTable| #'EQ)) (SETQ |$bootDefinedTwice| NIL) (SETQ |$GenVarCounter| 0) (SETQ |$bfClamming| NIL) (|shoeDefUse| (|shoeTransformStream| |a|)) @@ -1144,11 +1144,11 @@ (RETURN (COND ((NULL |a|) (|shoeNotFound| |fn|)) - (T (SETQ |$lispWordTable| (MAKE-HASHTABLE 'EQ)) + (T (SETQ |$lispWordTable| (|makeTable| #'EQ)) (DO-SYMBOLS (|i| (FIND-PACKAGE 'LISP)) (SETF (|tableValue| |$lispWordTable| |i|) T)) - (SETQ |$bootDefined| (MAKE-HASHTABLE 'EQ)) - (SETQ |$bootUsed| (MAKE-HASHTABLE 'EQ)) + (SETQ |$bootDefined| (|makeTable| #'EQ)) + (SETQ |$bootUsed| (|makeTable| #'EQ)) (SETQ |$GenVarCounter| 0) (SETQ |$bfClamming| NIL) (|shoeDefUse| (|shoeTransformStream| |a|)) (SETQ |out| (CONCAT |fn| ".xref")) diff --git a/src/boot/tokens.boot b/src/boot/tokens.boot index f0dbe004..905f4426 100644 --- a/src/boot/tokens.boot +++ b/src/boot/tokens.boot @@ -128,7 +128,7 @@ shoeKeyWords == [ _ shoeKeyTableCons()== - KeyTable:=MAKE_-HASHTABLE("CVEC") + KeyTable := makeTable function valueEq? for st in shoeKeyWords repeat tableValue(KeyTable,first st) := second st KeyTable @@ -170,7 +170,7 @@ shoeDict:=shoeDictCons() shoePunCons()== listing := HKEYS shoeKeyTable - a := MAKE_-BVEC 256 + a := makeBitVector 256 for i in 0..255 repeat bitmask(a,i) := 0 for k in listing repeat diff --git a/src/boot/translator.boot b/src/boot/translator.boot index d258a78d..151b4f73 100644 --- a/src/boot/translator.boot +++ b/src/boot/translator.boot @@ -525,10 +525,10 @@ $lispWordTable := nil shoeDfu(a,fn)== a=nil => shoeNotFound fn - $lispWordTable: local := MAKE_-HASHTABLE ("EQ") + $lispWordTable: local := makeTable function symbolEq? DO_-SYMBOLS(i(FIND_-PACKAGE "LISP"),tableValue($lispWordTable,i) := true) - $bootDefined: local :=MAKE_-HASHTABLE "EQ" - $bootUsed:local := MAKE_-HASHTABLE "EQ" + $bootDefined: local := makeTable function symbolEq? + $bootUsed:local := makeTable function symbolEq? $bootDefinedTwice: local := nil $GenVarCounter: local := 0 $bfClamming: local := false @@ -642,10 +642,10 @@ XREF fn== shoeXref(a,fn)== a = nil => shoeNotFound fn - $lispWordTable: local := MAKE_-HASHTABLE ("EQ") + $lispWordTable: local := makeTable function symbolEq? DO_-SYMBOLS(i(FIND_-PACKAGE "LISP"),tableValue($lispWordTable,i) := true) - $bootDefined: local := MAKE_-HASHTABLE "EQ" - $bootUsed: local := MAKE_-HASHTABLE "EQ" + $bootDefined: local := makeTable function symbolEq? + $bootUsed: local := makeTable function symbolEq? $GenVarCounter: local := 0 $bfClamming: local := false shoeDefUse shoeTransformStream a |