From: Eli Schwartz <eschwartz93@gmail.com>
Historically, scdoc has used a project-local string.h, which overrode
and masked <string.h> and caused issues.
For example, strstr and strerror were impossible to obtain definitions
for. Instead of fixing the clashing names, the definitions were locally
copied into main.c
In commit 309ff4672b7f5cba9bca1ce8657f767b51f32220 this was fixed
properly (by renaming string.h to str.h) as part of adding printf usage
to the file as well. But the old hacks were never cleaned up.
---
src/main.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/src/main.c b/src/main.c
index 46b4aa8..676e2cb 100644
--- a/src/main.c+++ b/src/main.c
@@ -13,9 +13,6 @@
#include "unicode.h"
#include "util.h"
-char *strstr(const char *haystack, const char *needle);-char *strerror(int errnum);-static struct str *parse_section(struct parser *p) {
struct str *section = str_create();
uint32_t ch;
--
2.34.7