]> granicus.if.org Git - onig/commitdiff
Remove unused defined symbols
authorPeter Kokot <peterkokot@gmail.com>
Fri, 7 Sep 2018 17:48:58 +0000 (19:48 +0200)
committerPeter Kokot <peterkokot@gmail.com>
Fri, 7 Sep 2018 17:48:58 +0000 (19:48 +0200)
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.

src/config.h.win32
src/config.h.win64
src/config.h.windows.in

index 36fe268d964f1d8afa6ddc3e6b4bed3956e2f355..121baaba963ae59840c05a9d60146bbd3a733255 100644 (file)
 #define HAVE_ALLOCA 1\r
 #define HAVE_DUP2 1\r
 #define HAVE_MKDIR 1\r
-#define HAVE_STRCASECMP 1\r
-#define HAVE_STRNCASECMP 1\r
-#define HAVE_STRFTIME 1\r
-#define HAVE_STRTOD 1\r
-#define HAVE_STRTOL 1\r
-#define HAVE_STRTOUL 1\r
 #define HAVE_FLOCK 1\r
 #define HAVE_VSNPRINTF 1\r
 #define HAVE_FINITE 1\r
-#define HAVE_FMOD 1\r
-#define HAVE_FREXP 1\r
 #define HAVE_HYPOT 1\r
-#define HAVE_MODF 1\r
 #define HAVE_WAITPID 1\r
 #define HAVE_CHSIZE 1\r
 #define HAVE_TIMES 1\r
 #define HAVE_TELLDIR 1\r
 #define HAVE_SEEKDIR 1\r
-#define HAVE_MKTIME 1\r
-#define HAVE_COSH 1\r
-#define HAVE_SINH 1\r
-#define HAVE_TANH 1\r
 #define HAVE_EXECVE 1\r
-#define HAVE_TZNAME 1\r
 #define HAVE_DAYLIGHT 1\r
 #define SETPGRP_VOID 1\r
 #define inline __inline\r
index bc2ba3e984c2dfa2a4d0bc8d94bdc88061390612..236f54e9ccc3a44151db80d323ebf86d8df3f322 100644 (file)
 #define HAVE_ALLOCA 1\r
 #define HAVE_DUP2 1\r
 #define HAVE_MKDIR 1\r
-#define HAVE_STRCASECMP 1\r
-#define HAVE_STRNCASECMP 1\r
-#define HAVE_STRFTIME 1\r
-#define HAVE_STRTOD 1\r
-#define HAVE_STRTOL 1\r
-#define HAVE_STRTOUL 1\r
 #define HAVE_FLOCK 1\r
 #define HAVE_VSNPRINTF 1\r
 #define HAVE_FINITE 1\r
-#define HAVE_FMOD 1\r
-#define HAVE_FREXP 1\r
 #define HAVE_HYPOT 1\r
-#define HAVE_MODF 1\r
 #define HAVE_WAITPID 1\r
 #define HAVE_CHSIZE 1\r
 #define HAVE_TIMES 1\r
 #define HAVE_TELLDIR 1\r
 #define HAVE_SEEKDIR 1\r
-#define HAVE_MKTIME 1\r
-#define HAVE_COSH 1\r
-#define HAVE_SINH 1\r
-#define HAVE_TANH 1\r
 #define HAVE_EXECVE 1\r
-#define HAVE_TZNAME 1\r
 #define HAVE_DAYLIGHT 1\r
 #define SETPGRP_VOID 1\r
 #define inline __inline\r
index 160bd86f4bcdb190eeb8e2d1f8c22d7f8c1d29bf..2b128ee81adc3acff52f34fd2247316df091f00b 100644 (file)
 #define HAVE_ALLOCA 1\r
 #define HAVE_DUP2 1\r
 #define HAVE_MKDIR 1\r
-#define HAVE_STRCASECMP 1\r
-#define HAVE_STRNCASECMP 1\r
-#define HAVE_STRFTIME 1\r
-#define HAVE_STRTOD 1\r
-#define HAVE_STRTOL 1\r
-#define HAVE_STRTOUL 1\r
 #define HAVE_FLOCK 1\r
 #define HAVE_VSNPRINTF 1\r
 #define HAVE_FINITE 1\r
-#define HAVE_FMOD 1\r
-#define HAVE_FREXP 1\r
 #define HAVE_HYPOT 1\r
-#define HAVE_MODF 1\r
 #define HAVE_WAITPID 1\r
 #define HAVE_CHSIZE 1\r
 #define HAVE_TIMES 1\r
 #define HAVE_TELLDIR 1\r
 #define HAVE_SEEKDIR 1\r
-#define HAVE_MKTIME 1\r
-#define HAVE_COSH 1\r
-#define HAVE_SINH 1\r
-#define HAVE_TANH 1\r
 #define HAVE_EXECVE 1\r
-#define HAVE_TZNAME 1\r
 #define HAVE_DAYLIGHT 1\r
 #define SETPGRP_VOID 1\r
 #define inline __inline\r