commit e2343a842d131ef3b3148524f48d9776635c76ba
parent d567a97bf35a7acb4dba593fbb7da3f8b0f94505
Author: finwo <finwo@pm.me>
Date: Wed, 16 Aug 2023 23:27:47 +0200
Removed erronous configmk and pkg ; fixed double-include error of header files
Diffstat:
5 files changed, 15 insertions(+), 10 deletions(-)
diff --git a/src/config.mk b/src/config.mk
@@ -1,2 +0,0 @@
-SRC+=__DIRNAME/src/strnstr.c
-SRC+=__DIRNAME/src/str_isHex.c
diff --git a/src/package.ini b/src/package.ini
@@ -1,8 +0,0 @@
-[export]
-config.mk=config.mk
-include/finwo/strnstr.h=src/strnstr.h
-include/finwo/str_isHex.h=src/str_isHex.h
-
-[package]
-deps=lib
-name=finwo/str_extra
diff --git a/src/str_extra.h b/src/str_extra.h
@@ -1,2 +1,7 @@
+#ifndef __FINWO_STREXTRA_H__
+#define __FINWO_STREXTRA_H__
+
#include "str_isHex.h"
#include "strnstr.h"
+
+#endif // __FINWO_STREXTRA_H__
diff --git a/src/str_isHex.h b/src/str_isHex.h
@@ -1,4 +1,9 @@
+#ifndef __FINWO_STREXTRA_STRISHEX_H__
+#define __FINWO_STREXTRA_STRISHEX_H__
+
#include <stdlib.h>
#include <stdbool.h>
bool str_isHex(const char *subject);
+
+#endif // __FINWO_STREXTRA_STRISHEX_H__
diff --git a/src/strnstr.h b/src/strnstr.h
@@ -1,3 +1,8 @@
+#ifndef __FINWO_STREXTRA_STRNSTR_H__
+#define __FINWO_STREXTRA_STRNSTR_H__
+
#include <stdlib.h>
char *strnstr(const char *haystack, const char *needle, size_t len);
+
+#endif // __FINWO_STREXTRA_STRNSTR_H__