aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-01-06 04:41:11 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-01-06 04:41:11 -0700
commit5e64c4d92f109638111d78b6ab97feb645ee0a01 (patch)
treee0bede139e1ef7ffb7f6478f7a8c69bb4a2c8781 /src/codegen.cpp
parentf1eafe4ebb2e1258ee398641d0537e227fe2ea0d (diff)
downloadzig-5e64c4d92f109638111d78b6ab97feb645ee0a01.tar.gz
zig-5e64c4d92f109638111d78b6ab97feb645ee0a01.zip
support pub structs. move rand to std lib.
guess number example prints the answer now
Diffstat (limited to 'src/codegen.cpp')
-rw-r--r--src/codegen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/codegen.cpp b/src/codegen.cpp
index a69f9e30b8..f87ca7ef24 100644
--- a/src/codegen.cpp
+++ b/src/codegen.cpp
@@ -2164,7 +2164,7 @@ static ImportTableEntry *codegen_add_code(CodeGen *g, Buf *abs_full_path,
assert(proto_node->type == NodeTypeFnProto);
Buf *proto_name = &proto_node->data.fn_proto.name;
- bool is_private = (proto_node->data.fn_proto.visib_mod == FnProtoVisibModPrivate);
+ bool is_private = (proto_node->data.fn_proto.visib_mod == VisibModPrivate);
if (buf_eql_str(proto_name, "main") && !is_private) {
g->have_exported_main = true;
@@ -2287,7 +2287,7 @@ static void generate_h_file(CodeGen *g) {
assert(proto_node->type == NodeTypeFnProto);
AstNodeFnProto *fn_proto = &proto_node->data.fn_proto;
- if (fn_proto->visib_mod != FnProtoVisibModExport)
+ if (fn_proto->visib_mod != VisibModExport)
continue;
Buf return_type_c = BUF_INIT;