From 83e1b2ad9467551776c96ad361c0aeec66bd4870 Mon Sep 17 00:00:00 2001 From: David Given Date: Thu, 21 Jun 2018 22:39:08 +0200 Subject: [PATCH] Move the str and mem functions into the new src/core. --- lang/cem/libcc.ansi/build.lua | 1 + .../libcc.ansi/{string => errno}/strerror.c | 0 .../libcc.ansi/{string => src/core}/memchr.c | 0 .../libcc.ansi/{string => src/core}/memcmp.c | 0 .../libcc.ansi/{string => src/core}/memcpy.c | 0 .../libcc.ansi/{string => src/core}/memmove.c | 0 .../libcc.ansi/{string => src/core}/memset.c | 0 .../libcc.ansi/{string => src/core}/strcat.c | 0 .../libcc.ansi/{string => src/core}/strchr.c | 0 .../libcc.ansi/{string => src/core}/strcmp.c | 0 .../libcc.ansi/{string => src/core}/strcoll.c | 0 .../libcc.ansi/{string => src/core}/strcpy.c | 0 .../libcc.ansi/{string => src/core}/strcspn.c | 0 .../libcc.ansi/{string => src/core}/strdup.c | 0 .../libcc.ansi/{string => src/core}/strlen.c | 0 .../libcc.ansi/{string => src/core}/strncat.c | 0 .../libcc.ansi/{string => src/core}/strncmp.c | 0 .../libcc.ansi/{string => src/core}/strncpy.c | 0 .../libcc.ansi/{string => src/core}/strpbrk.c | 0 .../libcc.ansi/{string => src/core}/strrchr.c | 0 .../libcc.ansi/{string => src/core}/strspn.c | 0 .../libcc.ansi/{string => src/core}/strstr.c | 0 .../libcc.ansi/{string => src/core}/strtok.c | 0 .../libcc.ansi/{string => src/core}/strxfrm.c | 0 lang/cem/libcc.ansi/string/LIST | 22 ------------------- lang/cem/libcc.ansi/string/Makefile | 5 ----- 26 files changed, 1 insertion(+), 27 deletions(-) rename lang/cem/libcc.ansi/{string => errno}/strerror.c (100%) rename lang/cem/libcc.ansi/{string => src/core}/memchr.c (100%) rename lang/cem/libcc.ansi/{string => src/core}/memcmp.c (100%) rename lang/cem/libcc.ansi/{string => src/core}/memcpy.c (100%) rename lang/cem/libcc.ansi/{string => src/core}/memmove.c (100%) rename lang/cem/libcc.ansi/{string => src/core}/memset.c (100%) rename lang/cem/libcc.ansi/{string => src/core}/strcat.c (100%) rename lang/cem/libcc.ansi/{string => src/core}/strchr.c (100%) rename lang/cem/libcc.ansi/{string => src/core}/strcmp.c (100%) rename lang/cem/libcc.ansi/{string => src/core}/strcoll.c (100%) rename lang/cem/libcc.ansi/{string => src/core}/strcpy.c (100%) rename lang/cem/libcc.ansi/{string => src/core}/strcspn.c (100%) rename lang/cem/libcc.ansi/{string => src/core}/strdup.c (100%) rename lang/cem/libcc.ansi/{string => src/core}/strlen.c (100%) rename lang/cem/libcc.ansi/{string => src/core}/strncat.c (100%) rename lang/cem/libcc.ansi/{string => src/core}/strncmp.c (100%) rename lang/cem/libcc.ansi/{string => src/core}/strncpy.c (100%) rename lang/cem/libcc.ansi/{string => src/core}/strpbrk.c (100%) rename lang/cem/libcc.ansi/{string => src/core}/strrchr.c (100%) rename lang/cem/libcc.ansi/{string => src/core}/strspn.c (100%) rename lang/cem/libcc.ansi/{string => src/core}/strstr.c (100%) rename lang/cem/libcc.ansi/{string => src/core}/strtok.c (100%) rename lang/cem/libcc.ansi/{string => src/core}/strxfrm.c (100%) delete mode 100644 lang/cem/libcc.ansi/string/LIST delete mode 100644 lang/cem/libcc.ansi/string/Makefile diff --git a/lang/cem/libcc.ansi/build.lua b/lang/cem/libcc.ansi/build.lua index 27704f208..25011e729 100644 --- a/lang/cem/libcc.ansi/build.lua +++ b/lang/cem/libcc.ansi/build.lua @@ -33,6 +33,7 @@ for _, plat in ipairs(vars.plats) do srcs = { "+ctype_files", "+ctype_tab", + "./src/core/*.c", "./ctype/*.c", "./errno/*.c", "./locale/*.c", diff --git a/lang/cem/libcc.ansi/string/strerror.c b/lang/cem/libcc.ansi/errno/strerror.c similarity index 100% rename from lang/cem/libcc.ansi/string/strerror.c rename to lang/cem/libcc.ansi/errno/strerror.c diff --git a/lang/cem/libcc.ansi/string/memchr.c b/lang/cem/libcc.ansi/src/core/memchr.c similarity index 100% rename from lang/cem/libcc.ansi/string/memchr.c rename to lang/cem/libcc.ansi/src/core/memchr.c diff --git a/lang/cem/libcc.ansi/string/memcmp.c b/lang/cem/libcc.ansi/src/core/memcmp.c similarity index 100% rename from lang/cem/libcc.ansi/string/memcmp.c rename to lang/cem/libcc.ansi/src/core/memcmp.c diff --git a/lang/cem/libcc.ansi/string/memcpy.c b/lang/cem/libcc.ansi/src/core/memcpy.c similarity index 100% rename from lang/cem/libcc.ansi/string/memcpy.c rename to lang/cem/libcc.ansi/src/core/memcpy.c diff --git a/lang/cem/libcc.ansi/string/memmove.c b/lang/cem/libcc.ansi/src/core/memmove.c similarity index 100% rename from lang/cem/libcc.ansi/string/memmove.c rename to lang/cem/libcc.ansi/src/core/memmove.c diff --git a/lang/cem/libcc.ansi/string/memset.c b/lang/cem/libcc.ansi/src/core/memset.c similarity index 100% rename from lang/cem/libcc.ansi/string/memset.c rename to lang/cem/libcc.ansi/src/core/memset.c diff --git a/lang/cem/libcc.ansi/string/strcat.c b/lang/cem/libcc.ansi/src/core/strcat.c similarity index 100% rename from lang/cem/libcc.ansi/string/strcat.c rename to lang/cem/libcc.ansi/src/core/strcat.c diff --git a/lang/cem/libcc.ansi/string/strchr.c b/lang/cem/libcc.ansi/src/core/strchr.c similarity index 100% rename from lang/cem/libcc.ansi/string/strchr.c rename to lang/cem/libcc.ansi/src/core/strchr.c diff --git a/lang/cem/libcc.ansi/string/strcmp.c b/lang/cem/libcc.ansi/src/core/strcmp.c similarity index 100% rename from lang/cem/libcc.ansi/string/strcmp.c rename to lang/cem/libcc.ansi/src/core/strcmp.c diff --git a/lang/cem/libcc.ansi/string/strcoll.c b/lang/cem/libcc.ansi/src/core/strcoll.c similarity index 100% rename from lang/cem/libcc.ansi/string/strcoll.c rename to lang/cem/libcc.ansi/src/core/strcoll.c diff --git a/lang/cem/libcc.ansi/string/strcpy.c b/lang/cem/libcc.ansi/src/core/strcpy.c similarity index 100% rename from lang/cem/libcc.ansi/string/strcpy.c rename to lang/cem/libcc.ansi/src/core/strcpy.c diff --git a/lang/cem/libcc.ansi/string/strcspn.c b/lang/cem/libcc.ansi/src/core/strcspn.c similarity index 100% rename from lang/cem/libcc.ansi/string/strcspn.c rename to lang/cem/libcc.ansi/src/core/strcspn.c diff --git a/lang/cem/libcc.ansi/string/strdup.c b/lang/cem/libcc.ansi/src/core/strdup.c similarity index 100% rename from lang/cem/libcc.ansi/string/strdup.c rename to lang/cem/libcc.ansi/src/core/strdup.c diff --git a/lang/cem/libcc.ansi/string/strlen.c b/lang/cem/libcc.ansi/src/core/strlen.c similarity index 100% rename from lang/cem/libcc.ansi/string/strlen.c rename to lang/cem/libcc.ansi/src/core/strlen.c diff --git a/lang/cem/libcc.ansi/string/strncat.c b/lang/cem/libcc.ansi/src/core/strncat.c similarity index 100% rename from lang/cem/libcc.ansi/string/strncat.c rename to lang/cem/libcc.ansi/src/core/strncat.c diff --git a/lang/cem/libcc.ansi/string/strncmp.c b/lang/cem/libcc.ansi/src/core/strncmp.c similarity index 100% rename from lang/cem/libcc.ansi/string/strncmp.c rename to lang/cem/libcc.ansi/src/core/strncmp.c diff --git a/lang/cem/libcc.ansi/string/strncpy.c b/lang/cem/libcc.ansi/src/core/strncpy.c similarity index 100% rename from lang/cem/libcc.ansi/string/strncpy.c rename to lang/cem/libcc.ansi/src/core/strncpy.c diff --git a/lang/cem/libcc.ansi/string/strpbrk.c b/lang/cem/libcc.ansi/src/core/strpbrk.c similarity index 100% rename from lang/cem/libcc.ansi/string/strpbrk.c rename to lang/cem/libcc.ansi/src/core/strpbrk.c diff --git a/lang/cem/libcc.ansi/string/strrchr.c b/lang/cem/libcc.ansi/src/core/strrchr.c similarity index 100% rename from lang/cem/libcc.ansi/string/strrchr.c rename to lang/cem/libcc.ansi/src/core/strrchr.c diff --git a/lang/cem/libcc.ansi/string/strspn.c b/lang/cem/libcc.ansi/src/core/strspn.c similarity index 100% rename from lang/cem/libcc.ansi/string/strspn.c rename to lang/cem/libcc.ansi/src/core/strspn.c diff --git a/lang/cem/libcc.ansi/string/strstr.c b/lang/cem/libcc.ansi/src/core/strstr.c similarity index 100% rename from lang/cem/libcc.ansi/string/strstr.c rename to lang/cem/libcc.ansi/src/core/strstr.c diff --git a/lang/cem/libcc.ansi/string/strtok.c b/lang/cem/libcc.ansi/src/core/strtok.c similarity index 100% rename from lang/cem/libcc.ansi/string/strtok.c rename to lang/cem/libcc.ansi/src/core/strtok.c diff --git a/lang/cem/libcc.ansi/string/strxfrm.c b/lang/cem/libcc.ansi/src/core/strxfrm.c similarity index 100% rename from lang/cem/libcc.ansi/string/strxfrm.c rename to lang/cem/libcc.ansi/src/core/strxfrm.c diff --git a/lang/cem/libcc.ansi/string/LIST b/lang/cem/libcc.ansi/string/LIST deleted file mode 100644 index 5f594fd11..000000000 --- a/lang/cem/libcc.ansi/string/LIST +++ /dev/null @@ -1,22 +0,0 @@ -memchr.c -memcmp.c -memcpy.c -memmove.c -memset.c -strcat.c -strchr.c -strcmp.c -strcoll.c -strcpy.c -strcspn.c -strerror.c -strncat.c -strncpy.c -strrchr.c -strstr.c -strlen.c -strtok.c -strpbrk.c -strspn.c -strncmp.c -strxfrm.c diff --git a/lang/cem/libcc.ansi/string/Makefile b/lang/cem/libcc.ansi/string/Makefile deleted file mode 100644 index f6263807f..000000000 --- a/lang/cem/libcc.ansi/string/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -clean: - rm -f memchr.o memcmp.o memcpy.o memmove.o memset.o strcat.o \ - strchr.o strcmp.o strcoll.o strcpy.o strcspn.o strerror.o \ - strncat.o strncpy.o strrchr.o strstr.o strlen.o strtok.o \ - strpbrk.o strspn.o strncmp.o strxfrm.o OLIST