Revert "update for revised bytecode"

This reverts commit 6933512ec2.

The bytecode-format change was reverted.
This commit is contained in:
Matthew Flatt 2015-07-22 20:26:31 -06:00
parent a10e570edd
commit 03751ec33a
2 changed files with 4 additions and 15 deletions

View File

@ -1265,19 +1265,9 @@
null
#f))
(hash-set! ht s sc)
(define bindings-l
(if (= kind 1) ; has multi owner
(match v
[(cons (? number?) (cons multi bindings-l))
(set-scope-multi-owner! sc (decode-multi-scope multi ht))
bindings-l])
(match v
[(? number?) #f]
[(cons (? number?) bindings-l)
bindings-l])))
(when bindings-l
(unless (number? v)
(define-values (bulk-bindings end)
(let loop ([l bindings-l] [bulk-bindings null])
(let loop ([l (cdr v)] [bulk-bindings null])
(cond
[(pair? l)
(loop (cdr l) (cons (list (decode-scope-set (caar l) ht)
@ -1420,8 +1410,7 @@
[(= (add1 i) (vector-length ms)) null]
[else
(define s (decode-scope (vector-ref ms (add1 i)) ht))
(when (and (scope-multi-owner s)
(not (eq? (scope-multi-owner s) multi)))
(when (scope-multi-owner s)
(error 'decode-wrap "bad scope owner: ~e while reading ~e"
(scope-multi-owner s)
multi))

View File

@ -2,7 +2,7 @@
(define collection 'multi)
(define deps '(["base" #:version "6.2.900.5"]))
(define deps '("base"))
(define pkg-desc "Libraries for handling zo files")