]> granicus.if.org Git - onig/commitdiff
Remove unused old symbols for string.h functions
authorPeter Kokot <peterkokot@gmail.com>
Thu, 6 Sep 2018 03:07:37 +0000 (05:07 +0200)
committerPeter Kokot <peterkokot@gmail.com>
Thu, 6 Sep 2018 03:07:37 +0000 (05:07 +0200)
The C89 standard and later defines the <string.h> header as part of the
standard headers [1]. Functions memcmp, memmove, strerror, strchr, strstr,
and others are all part of C89 and <string.h> header definition.

Some build systems used to define the presence of these functions via
HAVE_MEMCMP, HAVE_MEMMOVE, HAVE_STRERROR, HAVE_STRCHR, HAVE_STRSTR
symbols. These aren't used in oniguruma library anymore and can be
ommitted from the config files for windows systems.

[1]: https://port70.net/~nsz/c/c89/c89-draft.html#4.11

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

index ead09941b450f24c253935c17762e37601aac3e1..97d37e91b4ea3ab76d0aa4aff0be466a78ad891a 100644 (file)
 #define GETGROUPS_T int\r
 #define HAVE_ALLOCA 1\r
 #define HAVE_DUP2 1\r
-#define HAVE_MEMCMP 1\r
-#define HAVE_MEMMOVE 1\r
 #define HAVE_MKDIR 1\r
 #define HAVE_STRCASECMP 1\r
 #define HAVE_STRNCASECMP 1\r
-#define HAVE_STRERROR 1\r
 #define HAVE_STRFTIME 1\r
-#define HAVE_STRCHR 1\r
-#define HAVE_STRSTR 1\r
 #define HAVE_STRTOD 1\r
 #define HAVE_STRTOL 1\r
 #define HAVE_STRTOUL 1\r
index 2a7b86842d48e80e1849169ace279b3aa49781a4..93ab603beec092b4c9912154fd2f835dc2629ab0 100644 (file)
 #define GETGROUPS_T int\r
 #define HAVE_ALLOCA 1\r
 #define HAVE_DUP2 1\r
-#define HAVE_MEMCMP 1\r
-#define HAVE_MEMMOVE 1\r
 #define HAVE_MKDIR 1\r
 #define HAVE_STRCASECMP 1\r
 #define HAVE_STRNCASECMP 1\r
-#define HAVE_STRERROR 1\r
 #define HAVE_STRFTIME 1\r
-#define HAVE_STRCHR 1\r
-#define HAVE_STRSTR 1\r
 #define HAVE_STRTOD 1\r
 #define HAVE_STRTOL 1\r
 #define HAVE_STRTOUL 1\r
index f80880665522f426aaff15626f2e8a8711045e78..d64e81c2614e5369fedaefddfbd02ac8483f3d46 100644 (file)
 #define GETGROUPS_T int\r
 #define HAVE_ALLOCA 1\r
 #define HAVE_DUP2 1\r
-#define HAVE_MEMCMP 1\r
-#define HAVE_MEMMOVE 1\r
 #define HAVE_MKDIR 1\r
 #define HAVE_STRCASECMP 1\r
 #define HAVE_STRNCASECMP 1\r
-#define HAVE_STRERROR 1\r
 #define HAVE_STRFTIME 1\r
-#define HAVE_STRCHR 1\r
-#define HAVE_STRSTR 1\r
 #define HAVE_STRTOD 1\r
 #define HAVE_STRTOL 1\r
 #define HAVE_STRTOUL 1\r