The ctype functions are pure.
authorDavid Given <dg@cowlark.com>
Thu, 21 Jun 2018 21:06:29 +0000 (23:06 +0200)
committerDavid Given <dg@cowlark.com>
Thu, 21 Jun 2018 21:06:29 +0000 (23:06 +0200)
lang/cem/libcc.ansi/build.lua
lang/cem/libcc.ansi/ctype/LIST [deleted file]
lang/cem/libcc.ansi/ctype/Makefile [deleted file]
lang/cem/libcc.ansi/pure/ctype/char.tab [moved from lang/cem/libcc.ansi/ctype/char.tab with 100% similarity]
lang/cem/libcc.ansi/pure/ctype/genfiles [moved from lang/cem/libcc.ansi/ctype/genfiles with 100% similarity]
lang/cem/libcc.ansi/pure/ctype/tolower.c [moved from lang/cem/libcc.ansi/ctype/tolower.c with 100% similarity]
lang/cem/libcc.ansi/pure/ctype/toupper.c [moved from lang/cem/libcc.ansi/ctype/toupper.c with 100% similarity]

index 47d9bc4..c49bdf0 100644 (file)
@@ -2,12 +2,12 @@ include("plat/build.lua")
 
 tabgen {
        name = "ctype_tab",
-       srcs = { "./ctype/char.tab" }
+       srcs = { "./pure/ctype/char.tab" }
 }
 
 normalrule {
        name = "ctype_files",
-       ins = { "./ctype/genfiles" },
+       ins = { "./pure/ctype/genfiles" },
        outleaves = {
                "isalnum.c",
                "isalpha.c",
@@ -40,7 +40,7 @@ for _, plat in ipairs(vars.plats) do
                        "./pure/setjmp/*.e",
                        "./pure/math/*.c", -- hypot.c
                        "./pure/math/*.e",
-                       "./ctype/*.c",
+                       "./pure/ctype/*.c",
                        "./errno/*.c",
                        "./malloc/*.c",
                        "./misc/environ.c", -- don't build everything here as it's all obsolete
diff --git a/lang/cem/libcc.ansi/ctype/LIST b/lang/cem/libcc.ansi/ctype/LIST
deleted file mode 100644 (file)
index a8f5817..0000000
+++ /dev/null
@@ -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
diff --git a/lang/cem/libcc.ansi/ctype/Makefile b/lang/cem/libcc.ansi/ctype/Makefile
deleted file mode 100644 (file)
index 56ef72a..0000000
+++ /dev/null
@@ -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