[M3commit] CVS Update: cm3
jkrell at elego.de
Fri May 9 10:11:35 CEST 2008
Changes by: jkrell at birch. 08/05/09 10:11:35
cm3/m3-libs/m3core/src/runtime/common/: RTLinker.i3 RTLinker.m3
fix RTArgs environment variable functionality
that has always been broken in some form or another,
at least back to 3.6, and which changed but didn't get
fixed by Olaf in 2003 with:
I knew! nothing had actually changed here, just that it never really worked, but was slow
to get around to looking into it.
This change is "carefully" written to avoid a compiler/runtime coupling.
However a better change is probably to change the compiler, when targeting NT386, to always call
GetEnvironmentStrings and never use the envp parameter to main.
Or perhaps something sleazy like setting the low bit to indicate "type".
Or perhaps for main/WinMain to set the "useFlatEnv" variable (through a function call,
to avoid dynamically linked data).
More information about the M3commit