aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/cgen.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-08-05 09:31:06 +0200
committerlemon <lsof@mailbox.org>2022-08-05 09:31:06 +0200
commite0630766450d402455d9c8368087f96d8075c07c (patch)
tree57c6815ff9c4e4264e39f4643e60e4d0be7c192c /bootstrap/cgen.c
parent9667272414380e2d50113e0a0c6408a02e7c23eb (diff)
headers, import
Diffstat (limited to 'bootstrap/cgen.c')
-rw-r--r--bootstrap/cgen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bootstrap/cgen.c b/bootstrap/cgen.c
index 2f92375..b4cea42 100644
--- a/bootstrap/cgen.c
+++ b/bootstrap/cgen.c
@@ -593,13 +593,13 @@ prelude() {
}
void
-cgen(FILE *fp, const struct transunit *tu) {
+cgen(FILE *fp, const struct comfile *cf) {
outfp = fp;
prelude();
visittypes(defctype, NULL);
- for (int i = 0; i < tu->decls.n; ++i) {
- gendecl(&tu->decls.d[i], 1);
+ for (int i = 0; i < cf->decls.n; ++i) {
+ gendecl(&cf->decls.d[i], 1);
}
}