Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
clean-compiler-and-rts
compiler
Commits
f36dcd61
Commit
f36dcd61
authored
Dec 19, 2008
by
John van Groningen
Browse files
pass world to main function without argument
parent
2fba4755
Changes
1
Hide whitespace changes
Inline
Side-by-side
backendC/CleanCompilerSources/instructions.c
View file @
f36dcd61
...
...
@@ -3502,8 +3502,8 @@ void GenStart (SymbDef startsymb)
GenOAStackLayout
(
0
);
FPrintF
(
OutFile
,
"
\n
__%s_%s"
,
CurrentModule
,
start_function_name
);
if
(
arity
!=
0
){
if
(
arity
!=
0
||
strcmp
(
start_function_name
,
"main"
)
==
0
){
put_instruction_b
(
buildI
);
put_arguments_n_b
(
65536l
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment