summaryrefslogtreecommitdiff
path: root/05/codegen.b
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-02-14 16:52:33 -0500
committerpommicket <pommicket@gmail.com>2022-02-14 16:52:33 -0500
commitc15db88951d7c5d1903fb3e5f42ca9f966f27d21 (patch)
treed5b6bae3a1458b519efbbfd762be61f645a1b4f0 /05/codegen.b
parentd0d868433eb8e737fd581c1eb6f2734f293e6267 (diff)
almost all of stdio.h
Diffstat (limited to '05/codegen.b')
-rw-r--r--05/codegen.b4
1 files changed, 2 insertions, 2 deletions
diff --git a/05/codegen.b b/05/codegen.b
index 0220450..8e06318 100644
--- a/05/codegen.b
+++ b/05/codegen.b
@@ -3030,7 +3030,7 @@ function generate_code
generate_functions()
; generate code at the entry point of the executable
local main_addr
- main_addr = ident_list_lookup(functions_addresses, .str_main)
+ main_addr = ident_list_lookup(functions_addresses, .str__main)
if main_addr == 0 goto no_main_function
; on entry, we will have:
@@ -3066,7 +3066,7 @@ function generate_code
:no_main_function
die(.str_no_main_function)
:str_no_main_function
- string Error: No main function.
+ string Error: No _main function.
byte 0
:too_much_code
die(.str_too_much_code)