Better types #15
@@ -194,13 +194,13 @@
|
|||||||
(match form
|
(match form
|
||||||
((type (fields ...) . attrs) ; anonymous struct
|
((type (fields ...) . attrs) ; anonymous struct
|
||||||
`(,type ,(process-struct-fields fields)
|
`(,type ,(process-struct-fields fields)
|
||||||
. ,(map atom-to-fmt-c attrs)))
|
. ,(tree-map atom-to-fmt-c attrs)))
|
||||||
((type name) ; simple 'struct whatever', like in variable def
|
((type name) ; simple 'struct whatever', like in variable def
|
||||||
`(,type ,(atom-to-fmt-c name)))
|
`(,type ,(atom-to-fmt-c name)))
|
||||||
((type name (fields ...) . attrs)
|
((type name (fields ...) . attrs)
|
||||||
`(,type ,(atom-to-fmt-c name)
|
`(,type ,(atom-to-fmt-c name)
|
||||||
,(process-struct-fields fields)
|
,(process-struct-fields fields)
|
||||||
. ,(map atom-to-fmt-c attrs)))
|
. ,(tree-map atom-to-fmt-c attrs)))
|
||||||
(else (error "Malformed aggregate definition " form))))
|
(else (error "Malformed aggregate definition " form))))
|
||||||
|
|
||||||
(define (walk-extern form)
|
(define (walk-extern form)
|
||||||
|
|||||||
Reference in New Issue
Block a user