Move the pure stdlib functions into the new pure directory.

This commit is contained in:
David Given 2018-06-21 22:52:31 +02:00
parent 4dbdb7d8d5
commit b9d2f353d9
19 changed files with 2 additions and 1 deletions

View file

@ -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",

View file

@ -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))))