summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-04-16 09:26:11 -0300
committerEuAndreh <eu@euandre.org>2024-04-16 09:26:11 -0300
commit5e7e9cca7bbaaa490e61f297be3e24b0607b6c48 (patch)
treef98b937902d23004c3525dd3c0a1b6426636a369
parentdeps.mk: Add correct dependency for i18n.c (diff)
downloadpindaiba-5e7e9cca7bbaaa490e61f297be3e24b0607b6c48.tar.gz
pindaiba-5e7e9cca7bbaaa490e61f297be3e24b0607b6c48.tar.xz
src/string.c: Add new empty file structure
-rw-r--r--deps.mk9
-rw-r--r--src/string.c11
-rw-r--r--src/string.h1
-rw-r--r--tests/string.c6
4 files changed, 27 insertions, 0 deletions
diff --git a/deps.mk b/deps.mk
index c1f2384..0dd69dc 100644
--- a/deps.mk
+++ b/deps.mk
@@ -8,6 +8,7 @@ sources.c = \
src/lib.c \
src/logerr.c \
src/random.c \
+ src/string.c \
src/testing.c \
src/util.c \
@@ -17,6 +18,7 @@ tests.c = \
tests/lib.c \
tests/logerr.c \
tests/random.c \
+ tests/string.c \
tests/testing.c \
tests/util.c \
@@ -25,6 +27,7 @@ src/i18n.o: src/i18n.h
src/lib.o: src/lib.h
src/logerr.o: src/logerr.h
src/random.o: src/random.h
+src/string.o: src/string.h
src/testing.o: src/testing.h
src/util.o: src/util.h
@@ -33,6 +36,7 @@ tests/i18n.o: src/i18n.c src/i18n.h
tests/lib.o: src/lib.c src/lib.h
tests/logerr.o: src/logerr.c src/logerr.h
tests/random.o: src/random.c src/random.h
+tests/string.o: src/string.c src/string.h
tests/testing.o: src/testing.c src/testing.h
tests/util.o: src/util.c src/util.h
@@ -41,6 +45,7 @@ tests/i18n.a: tests/i18n.o
tests/lib.a: tests/lib.o
tests/logerr.a: tests/logerr.o
tests/random.a: tests/random.o
+tests/string.a: tests/string.o
tests/testing.a: tests/testing.o
tests/util.a: tests/util.o
@@ -49,6 +54,7 @@ tests/i18n.bin-check: tests/i18n.bin
tests/lib.bin-check: tests/lib.bin
tests/logerr.bin-check: tests/logerr.bin
tests/random.bin-check: tests/random.bin
+tests/string.bin-check: tests/string.bin
tests/testing.bin-check: tests/testing.bin
tests/util.bin-check: tests/util.bin
@@ -58,6 +64,7 @@ src/i18n.o: src/catalog.h
src/lib.o: src/logerr.h
src/logerr.o:
src/random.o: src/logerr.h
+src/string.o:
src/testing.o:
src/util.o: src/logerr.h
@@ -66,6 +73,7 @@ tests/i18n.o: src/catalog.h src/logerr.h
tests/lib.o: src/logerr.h
tests/logerr.o: src/testing.h tests/slurp.h
tests/random.o: src/logerr.h src/testing.h
+tests/string.o:
tests/testing.o:
tests/util.o: src/logerr.h src/testing.h tests/slurp.h
@@ -74,5 +82,6 @@ tests/i18n.a: src/catalog.o src/logerr.o
tests/lib.a: src/logerr.o
tests/logerr.a: src/testing.o tests/slurp.o
tests/random.a: src/logerr.o src/testing.o
+tests/string.a:
tests/testing.a:
tests/util.a: src/logerr.o src/testing.o tests/slurp.o
diff --git a/src/string.c b/src/string.c
new file mode 100644
index 0000000..6e1ba40
--- /dev/null
+++ b/src/string.c
@@ -0,0 +1,11 @@
+#include "config.h"
+
+#include <stddef.h>
+
+#include "string.h"
+
+
+struct String {
+ char *bytes;
+ size_t length;
+};
diff --git a/src/string.h b/src/string.h
new file mode 100644
index 0000000..2a60e26
--- /dev/null
+++ b/src/string.h
@@ -0,0 +1 @@
+struct String;
diff --git a/tests/string.c b/tests/string.c
new file mode 100644
index 0000000..4d1ee74
--- /dev/null
+++ b/tests/string.c
@@ -0,0 +1,6 @@
+#include "../src/string.c"
+
+int
+main(void) {
+ return 0;
+}