forked from alex-eg/sex
show the cases the comments were describing
This commit is contained in:
@@ -381,11 +381,13 @@ forms, and what remains."
|
||||
;; are not part of it: ((* const char)), (int)
|
||||
(walk-type (maybe-unwrap-type arg))))
|
||||
|
||||
;;; A parameter reaches fmt-c as `(type name)' and nothing else: it
|
||||
;;; reads the name out with `cadr', so a nameless one is the type and
|
||||
;;; an explicit #f. Handing it the bare type instead made it read the
|
||||
;;; type's own second word as the name -- `(* const char)' lost its
|
||||
;;; star -- and a one-word type had no second word to read at all.
|
||||
;;; fmt-c reads a parameter as `(type name)', taking the name with
|
||||
;;; `cadr'. A nameless one is the type and an explicit #f:
|
||||
;;;
|
||||
;;; (* const char) -> const char the star read as the name
|
||||
;;; ((* const char) #f) -> const char *
|
||||
;;; (int) -> (cadr) error
|
||||
;;; (int #f) -> int
|
||||
(define (walk-arglist form)
|
||||
;; E.g.:
|
||||
;; ((float) (int) (const char) (* const char) (¤ (* const struct res) 32))
|
||||
|
||||
Reference in New Issue
Block a user