summaryrefslogtreecommitdiff
path: root/package.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-01-07 21:43:34 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-01-07 21:43:34 -0500
commit5f3c455003272bfca6769afcaaade1ca365038d9 (patch)
tree292a149deef3761f769aa47b2d704403544bee7a /package.c
parent0bd0b45ae59e559d88bdc908b8bab8401eb41a30 (diff)
formatting (emacs doesnt like my tabs)
Diffstat (limited to 'package.c')
-rw-r--r--package.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/package.c b/package.c
index b83c4d0..5c429b0 100644
--- a/package.c
+++ b/package.c
@@ -160,7 +160,7 @@ static bool export_type(Exporter *ex, Type *type, Location where) {
case TYPE_STRUCT: {
StructDef *struc = type->struc;
if (struc->export.id == 0) {
- StructDef **ptr = arr_add(&ex->exported_structs);
+ StructDef **ptr = arr_add(&ex->exported_structs);
*ptr = struc;
size_t nexported_structs = arr_len(ex->exported_structs);
if (nexported_structs > U32_MAX) {
@@ -268,7 +268,7 @@ static bool export_val_ptr(Exporter *ex, void *val, Type *type, Location where)
case TYPE_UNKNOWN:
case TYPE_EXPR:
assert(0);
- return false;
+ return false;
}
return true;
}
@@ -325,7 +325,7 @@ static bool export_expr(Exporter *ex, Expression *e) {
assert(e->c.code->kind == EXPR_VAL);
if (!export_val(ex, e->c.code->val, &e->c.code->type, e->where))
return false;
- break;
+ break;
case EXPR_IDENT:
export_ident(ex, e->ident);
break;