fix fmt-c while without body
This commit is contained in:
@@ -607,9 +607,11 @@
|
|||||||
|
|
||||||
(define (c-while check . body)
|
(define (c-while check . body)
|
||||||
(c-reset-newline
|
(c-reset-newline
|
||||||
(cat (c-block (cat "while (" (c-in-test (c-expr check)) ")")
|
(if (null? body)
|
||||||
(c-in-stmt (apply c-begin body)))
|
(cat "while (" (c-in-test (c-expr check)) ");")
|
||||||
fl)))
|
(cat (c-block (cat "while (" (c-in-test (c-expr check)) ")")
|
||||||
|
(c-in-stmt (apply c-begin body)))
|
||||||
|
fl))))
|
||||||
|
|
||||||
(define (c-for init check update . body)
|
(define (c-for init check update . body)
|
||||||
(c-reset-newline
|
(c-reset-newline
|
||||||
|
|||||||
Reference in New Issue
Block a user