From: Peter Kokot Date: Fri, 7 Sep 2018 17:48:58 +0000 (+0200) Subject: Remove unused defined symbols X-Git-Tag: v6.9.1~38^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=524ecf7b74f315bf531942299e387bbe48fed4f2;p=onig Remove unused defined symbols This patch removes unused symbols definitions: - HAVE_STRCASECMP - HAVE_STRNCASECMP - HAVE_STRFTIME - HAVE_STRTOD - HAVE_STRTOL - HAVE_STRTOUL - HAVE_FMOD - HAVE_COSH - HAVE_TANH - HAVE_SINH - HAVE_FREXP - HAVE_MKTIME - HAVE_MODF - HAVE_TZNAME since they aren't used in the current Oniguruma code base. They were originally mostly part of the build system files where they were defined based on the system and the presence of the functions strcasecmp, strncasecmp, strftime, strtod, strtol, strtoul, fmod, cosh, tanh, sinh, frexp, mktime, modf. Since these functions aren't used in the code the symbols for checking them can be also removed. The `HAVE_TZNAME` was part of the AC_STRUCT_TIMEZONE from Autoconf and other build system parts that checks if struct `tm` has a `tm_zone ` member. This is also not used in the current code base so can be removed. --- diff --git a/src/config.h.win32 b/src/config.h.win32 index 36fe268..121baab 100644 --- a/src/config.h.win32 +++ b/src/config.h.win32 @@ -33,30 +33,16 @@ #define HAVE_ALLOCA 1 #define HAVE_DUP2 1 #define HAVE_MKDIR 1 -#define HAVE_STRCASECMP 1 -#define HAVE_STRNCASECMP 1 -#define HAVE_STRFTIME 1 -#define HAVE_STRTOD 1 -#define HAVE_STRTOL 1 -#define HAVE_STRTOUL 1 #define HAVE_FLOCK 1 #define HAVE_VSNPRINTF 1 #define HAVE_FINITE 1 -#define HAVE_FMOD 1 -#define HAVE_FREXP 1 #define HAVE_HYPOT 1 -#define HAVE_MODF 1 #define HAVE_WAITPID 1 #define HAVE_CHSIZE 1 #define HAVE_TIMES 1 #define HAVE_TELLDIR 1 #define HAVE_SEEKDIR 1 -#define HAVE_MKTIME 1 -#define HAVE_COSH 1 -#define HAVE_SINH 1 -#define HAVE_TANH 1 #define HAVE_EXECVE 1 -#define HAVE_TZNAME 1 #define HAVE_DAYLIGHT 1 #define SETPGRP_VOID 1 #define inline __inline diff --git a/src/config.h.win64 b/src/config.h.win64 index bc2ba3e..236f54e 100644 --- a/src/config.h.win64 +++ b/src/config.h.win64 @@ -33,30 +33,16 @@ #define HAVE_ALLOCA 1 #define HAVE_DUP2 1 #define HAVE_MKDIR 1 -#define HAVE_STRCASECMP 1 -#define HAVE_STRNCASECMP 1 -#define HAVE_STRFTIME 1 -#define HAVE_STRTOD 1 -#define HAVE_STRTOL 1 -#define HAVE_STRTOUL 1 #define HAVE_FLOCK 1 #define HAVE_VSNPRINTF 1 #define HAVE_FINITE 1 -#define HAVE_FMOD 1 -#define HAVE_FREXP 1 #define HAVE_HYPOT 1 -#define HAVE_MODF 1 #define HAVE_WAITPID 1 #define HAVE_CHSIZE 1 #define HAVE_TIMES 1 #define HAVE_TELLDIR 1 #define HAVE_SEEKDIR 1 -#define HAVE_MKTIME 1 -#define HAVE_COSH 1 -#define HAVE_SINH 1 -#define HAVE_TANH 1 #define HAVE_EXECVE 1 -#define HAVE_TZNAME 1 #define HAVE_DAYLIGHT 1 #define SETPGRP_VOID 1 #define inline __inline diff --git a/src/config.h.windows.in b/src/config.h.windows.in index 160bd86..2b128ee 100644 --- a/src/config.h.windows.in +++ b/src/config.h.windows.in @@ -37,30 +37,16 @@ #define HAVE_ALLOCA 1 #define HAVE_DUP2 1 #define HAVE_MKDIR 1 -#define HAVE_STRCASECMP 1 -#define HAVE_STRNCASECMP 1 -#define HAVE_STRFTIME 1 -#define HAVE_STRTOD 1 -#define HAVE_STRTOL 1 -#define HAVE_STRTOUL 1 #define HAVE_FLOCK 1 #define HAVE_VSNPRINTF 1 #define HAVE_FINITE 1 -#define HAVE_FMOD 1 -#define HAVE_FREXP 1 #define HAVE_HYPOT 1 -#define HAVE_MODF 1 #define HAVE_WAITPID 1 #define HAVE_CHSIZE 1 #define HAVE_TIMES 1 #define HAVE_TELLDIR 1 #define HAVE_SEEKDIR 1 -#define HAVE_MKTIME 1 -#define HAVE_COSH 1 -#define HAVE_SINH 1 -#define HAVE_TANH 1 #define HAVE_EXECVE 1 -#define HAVE_TZNAME 1 #define HAVE_DAYLIGHT 1 #define SETPGRP_VOID 1 #define inline __inline