diff options
Diffstat (limited to 'export.c')
-rw-r--r-- | export.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/export.c b/export.c new file mode 100644 index 0000000..422bed4 --- /dev/null +++ b/export.c @@ -0,0 +1,12 @@ +static void exptr_create(Exporter *exptr, FILE *out) { + exptr->out = out; +} + +static bool export_decl(Exporter *ex, Declaration *d) { + if (!ex) { + err_print(d->where, "Trying to export declaration, but a package output was not specified."); + return false; + } + putc((int)(d->idents[0]->id % 256), ex->out); + return true; +} |