replace fold-right append with flatten in type-convert-to-c
They are not equivalent, but it'll be allright in this case. Probably. Passes tests at least.
This commit is contained in:
@@ -145,9 +145,9 @@
|
||||
(if (atom? type) (atom-to-fmt-c type)
|
||||
(flatten
|
||||
(tree-map atom-to-fmt-c
|
||||
(fold-right append (list)
|
||||
(list-join (reverse (list-split type '*))
|
||||
'(*)))))))
|
||||
(flatten
|
||||
(list-join (reverse (list-split type '*))
|
||||
'(*)))))))
|
||||
|
||||
(define (walk-fn-def form)
|
||||
(match form
|
||||
|
||||
Reference in New Issue
Block a user