The ctype functions are pure.
This commit is contained in:
parent
d9d7ffe0d7
commit
62025c92bd
|
@ -2,12 +2,12 @@ include("plat/build.lua")
|
||||||
|
|
||||||
tabgen {
|
tabgen {
|
||||||
name = "ctype_tab",
|
name = "ctype_tab",
|
||||||
srcs = { "./ctype/char.tab" }
|
srcs = { "./pure/ctype/char.tab" }
|
||||||
}
|
}
|
||||||
|
|
||||||
normalrule {
|
normalrule {
|
||||||
name = "ctype_files",
|
name = "ctype_files",
|
||||||
ins = { "./ctype/genfiles" },
|
ins = { "./pure/ctype/genfiles" },
|
||||||
outleaves = {
|
outleaves = {
|
||||||
"isalnum.c",
|
"isalnum.c",
|
||||||
"isalpha.c",
|
"isalpha.c",
|
||||||
|
@ -40,7 +40,7 @@ for _, plat in ipairs(vars.plats) do
|
||||||
"./pure/setjmp/*.e",
|
"./pure/setjmp/*.e",
|
||||||
"./pure/math/*.c", -- hypot.c
|
"./pure/math/*.c", -- hypot.c
|
||||||
"./pure/math/*.e",
|
"./pure/math/*.e",
|
||||||
"./ctype/*.c",
|
"./pure/ctype/*.c",
|
||||||
"./errno/*.c",
|
"./errno/*.c",
|
||||||
"./malloc/*.c",
|
"./malloc/*.c",
|
||||||
"./misc/environ.c", -- don't build everything here as it's all obsolete
|
"./misc/environ.c", -- don't build everything here as it's all obsolete
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
isalnum.c
|
|
||||||
isalpha.c
|
|
||||||
iscntrl.c
|
|
||||||
isdigit.c
|
|
||||||
isgraph.c
|
|
||||||
islower.c
|
|
||||||
isprint.c
|
|
||||||
ispunct.c
|
|
||||||
isspace.c
|
|
||||||
isupper.c
|
|
||||||
isxdigit.c
|
|
||||||
isascii.c
|
|
||||||
toupper.c
|
|
||||||
tolower.c
|
|
||||||
chartab.c
|
|
|
@ -1,15 +0,0 @@
|
||||||
clean:
|
|
||||||
rm -f isalnum.o isalpha.o iscntrl.o isdigit.o isgraph.o \
|
|
||||||
islower.o isprint.o ispunct.o isspace.o isupper.o \
|
|
||||||
isxdigit.o isascii.o tolower.o toupper.o chartab.o \
|
|
||||||
isalnum.c isalpha.c iscntrl.c isdigit.c isgraph.c \
|
|
||||||
islower.c isprint.c ispunct.c isspace.c isupper.c \
|
|
||||||
isxdigit.c isascii.c chartab.c \
|
|
||||||
OLIST
|
|
||||||
|
|
||||||
chartab.c: char.tab
|
|
||||||
tabgen -fchar.tab > chartab.c
|
|
||||||
|
|
||||||
isalnum.c isalpha.c iscntrl.c isdigit.c isgraph.c islower.c isprint.c \
|
|
||||||
ispunct.c isspace.c isupper.c isxdigit.c isascii.c: genfiles
|
|
||||||
sh genfiles
|
|
Loading…
Reference in a new issue