mescc: Resurrect --write.
* module/mescc/mescc.scm (mescc:preprocess): Pass pretty-print/write to c->ast.
This commit is contained in:
parent
72e3582322
commit
d5a0ecb3d5
|
@ -57,7 +57,7 @@
|
||||||
(arch (if (equal? machine "32") "__i386__=1" "__x86_64__=1"))
|
(arch (if (equal? machine "32") "__i386__=1" "__x86_64__=1"))
|
||||||
(defines (cons (arch-get-define options) defines)))
|
(defines (cons (arch-get-define options) defines)))
|
||||||
(with-output-to-file ast-file-name
|
(with-output-to-file ast-file-name
|
||||||
(lambda _ (for-each (cut c->ast prefix defines includes write <>) files)))))
|
(lambda _ (for-each (cut c->ast prefix defines includes pretty-print/write <>) files)))))
|
||||||
|
|
||||||
(define (c->ast prefix defines includes write file-name)
|
(define (c->ast prefix defines includes write file-name)
|
||||||
(with-input-from-file file-name
|
(with-input-from-file file-name
|
||||||
|
|
Loading…
Reference in a new issue