d562d7efb85fc4a498eedc6b1abc8a8e4443e1f4 — Eli Schwartz 13 days ago 1923fb6
remove useless re-declarations of standard functions

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.
1 files changed, 0 insertions(+), 3 deletions(-)

M src/main.c
M src/main.c => src/main.c +0 -3
@@ 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;