parent
f7c42c1e6a
commit
2efb39c391
|
@ -586,12 +586,12 @@
|
||||||
|
|
||||||
(define encode-all-from-module
|
(define encode-all-from-module
|
||||||
(match-lambda
|
(match-lambda
|
||||||
[(struct all-from-module (path phase src-phase (list) #f))
|
[(struct all-from-module (path phase src-phase #f #f))
|
||||||
(list* path phase src-phase)]
|
(list* path phase src-phase)]
|
||||||
[(struct all-from-module (path phase src-phase exns #f))
|
[(struct all-from-module (path phase src-phase exns #f))
|
||||||
(list* path phase exns src-phase)]
|
(list* path phase exns src-phase)]
|
||||||
[(struct all-from-module (path phase src-phase exns prefix))
|
[(struct all-from-module (path phase src-phase exns (vector prefix)))
|
||||||
(list* path phase src-phase (append exns prefix))]))
|
(list* path phase src-phase exns prefix)]))
|
||||||
|
|
||||||
(define (encode-wraps wraps)
|
(define (encode-wraps wraps)
|
||||||
(for/list ([wrap (in-list wraps)])
|
(for/list ([wrap (in-list wraps)])
|
||||||
|
|
|
@ -26,8 +26,6 @@
|
||||||
|
|
||||||
I think parse-module-path-index was only used for debugging, so it is short-circuited now
|
I think parse-module-path-index was only used for debugging, so it is short-circuited now
|
||||||
|
|
||||||
collects/browser/compiled/browser_scrbl.zo (eg) contains a all-from-module that looks like: (#<module-path-index> 0 (1363072) . #f) --- that doesn't seem to match the spec
|
|
||||||
|
|
||||||
|#
|
|#
|
||||||
;; ----------------------------------------
|
;; ----------------------------------------
|
||||||
;; Bytecode unmarshalers for various forms
|
;; Bytecode unmarshalers for various forms
|
||||||
|
@ -587,7 +585,7 @@
|
||||||
[(integer? a)
|
[(integer? a)
|
||||||
(unmarshal-stx-get/decode cp a (lambda (cp v) (aloop v)))]
|
(unmarshal-stx-get/decode cp a (lambda (cp v) (aloop v)))]
|
||||||
; A mark (not actually a number as the C says, but a (list <num>)
|
; A mark (not actually a number as the C says, but a (list <num>)
|
||||||
[(and (pair? a) (null? (cdr a)) (number? (car a)))
|
[(and (pair? a) (number? (car a)))
|
||||||
(make-wrap-mark (car a))]
|
(make-wrap-mark (car a))]
|
||||||
|
|
||||||
[(vector? a)
|
[(vector? a)
|
||||||
|
@ -617,10 +615,11 @@
|
||||||
(map (local [(define (phase? v)
|
(map (local [(define (phase? v)
|
||||||
(or (number? v) (not v)))]
|
(or (number? v) (not v)))]
|
||||||
(match-lambda
|
(match-lambda
|
||||||
[(list* path (? phase? phase) (? phase? src-phase) exn ... prefix)
|
[(list* path (? phase? phase) (? phase? src-phase)
|
||||||
|
(list exn ...) prefix)
|
||||||
(make-all-from-module
|
(make-all-from-module
|
||||||
(parse-module-path-index cp path)
|
(parse-module-path-index cp path)
|
||||||
phase src-phase exn prefix)]
|
phase src-phase exn (vector prefix))]
|
||||||
[(list* path (? phase? phase) (list exn ...) (? phase? src-phase))
|
[(list* path (? phase? phase) (list exn ...) (? phase? src-phase))
|
||||||
(make-all-from-module
|
(make-all-from-module
|
||||||
(parse-module-path-index cp path)
|
(parse-module-path-index cp path)
|
||||||
|
@ -628,7 +627,7 @@
|
||||||
[(list* path (? phase? phase) (? phase? src-phase))
|
[(list* path (? phase? phase) (? phase? src-phase))
|
||||||
(make-all-from-module
|
(make-all-from-module
|
||||||
(parse-module-path-index cp path)
|
(parse-module-path-index cp path)
|
||||||
phase src-phase empty #f)]))
|
phase src-phase #f #f)]))
|
||||||
unmarshals)
|
unmarshals)
|
||||||
(decode-renames renames)
|
(decode-renames renames)
|
||||||
mark-renames
|
mark-renames
|
||||||
|
|
|
@ -179,8 +179,8 @@
|
||||||
(define-form-struct all-from-module ([path module-path-index?]
|
(define-form-struct all-from-module ([path module-path-index?]
|
||||||
[phase (or/c exact-integer? #f)]
|
[phase (or/c exact-integer? #f)]
|
||||||
[src-phase any/c] ; should be (or/c exact-integer? #f)
|
[src-phase any/c] ; should be (or/c exact-integer? #f)
|
||||||
[exceptions list?] ; should be (listof symbol?)
|
[exceptions (or/c (listof symbol?) #f)] ; should be (listof symbol?)
|
||||||
[prefix any/c])) ; should be (or/c symbol? #f)
|
[prefix (or/c (vector/c (or/c symbol? #f)) #f)])) ; should be (or/c symbol? #f)
|
||||||
|
|
||||||
(define-form-struct nominal-path ())
|
(define-form-struct nominal-path ())
|
||||||
(define-form-struct (simple-nominal-path nominal-path) ([value module-path-index?]))
|
(define-form-struct (simple-nominal-path nominal-path) ([value module-path-index?]))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user