Move the pure stdlib functions into the new pure directory.
This commit is contained in:
parent
4dbdb7d8d5
commit
b9d2f353d9
|
@ -34,6 +34,7 @@ for _, plat in ipairs(vars.plats) do
|
|||
"+ctype_files",
|
||||
"+ctype_tab",
|
||||
"./pure/string/*.c",
|
||||
"./pure/stdlib/*.c",
|
||||
"./ctype/*.c",
|
||||
"./errno/*.c",
|
||||
"./locale/*.c",
|
||||
|
|
|
@ -64,7 +64,7 @@ int setenv(register const char* name, register const char* value, int rewrite)
|
|||
environ[cnt + 1] = NULL;
|
||||
offset = cnt;
|
||||
}
|
||||
for (C = name; *C && *C != '='; ++C)
|
||||
for (C = (char*) name; *C && *C != '='; ++C)
|
||||
; /* no `=' in name */
|
||||
if (!(environ[offset] = /* name + `=' + value */
|
||||
malloc((unsigned)((int)(C - name) + l_value + 2))))
|
Loading…
Reference in a new issue