Skip to content

Commit

Permalink
FEAT: push a delimiter after args/env before calling into libc
Browse files Browse the repository at this point in the history
  • Loading branch information
earl committed Feb 26, 2012
1 parent 6669e26 commit cc6b046
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion red-system/runtime/start.reds
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ system: declare struct! [ ;-- trimmed down temporary system definition
***__argc: pop
***__argv: system/stack/top
system/stack/top: as pointer! [integer!] (FFFFFFF0h and as integer! ***__argv)
push 0
***__stack_end: system/stack/top

libc-start :***-start ***__argc ***__argv null null null ***__argv
libc-start :***-start ***__argc ***__argv null null null ***__stack_end
]
]

0 comments on commit cc6b046

Please sign in to comment.