From d562d7efb85fc4a498eedc6b1abc8a8e4443e1f4 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Wed, 08 Mar 2023 11:56:09 -0500 Subject: [PATCH] remove useless re-declarations of standard functions Historically, scdoc has used a project-local string.h, which overrode and masked 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 --- diff --git a/src/main.c b/src/main.c index 46b4aa824e527732ae3689582bbf6ae872ddbe32..676e2cb7d513e73cbcdd7831de0e1cc13171ca71 100644 --- a/src/main.c +++ b/src/main.c @@ -13,9 +13,6 @@ #include "str.h" #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.48.1