From 9b357bace3850a9c6c03e8fb6b3b82f4e57da507 Mon Sep 17 00:00:00 2001 From: Mike Gran Date: Thu, 15 Sep 2022 20:51:05 -0700 Subject: Presume ISO C90 headers are always available This includes , , , , , , , , , , , , , , , , , and . * configure.ac: don't check for , , , . Remove AC_INCLUDES_DEFAULT macro * libguile/bytevectors.c: include , remove HAVE_LIMITS_H * libguile/filesys.c: include , remove HAVE_STRING_H * libguile/fports.c: include , remove HAVE_STRING_H * libguile/gen-scmconfig.c: remove HAVE_LIMITS_H, HAVE_TIME_H, STDC_HEADERS Remove SCM_HAVE_STDC_HEADERS * libguile/hash.c: include , remove HAVE_WCHAR_H * libguile/net_db.c: include , remove HAVE_STRING_H * libguile/numbers.h: remove SCM_HAVE_STDC_HEADERS * libguile/regex-posix.c: include , remove HAVE_WCHAR_H (fixup_multibyte_match): always defined (scm_regexp_exec): use fixup_multibyte_match * libguile/scmsigs.c: remove STDC_HEADERS * libguile/socket.c: include , remove HAVE_STRING_H * test-suite/standalone/test-unwind.c: include , remove HAVE_STRING_H --- libguile/regex-posix.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'libguile/regex-posix.c') diff --git a/libguile/regex-posix.c b/libguile/regex-posix.c index a08da02db..5eb05c07c 100644 --- a/libguile/regex-posix.c +++ b/libguile/regex-posix.c @@ -35,10 +35,7 @@ #include #include #include - -#ifdef HAVE_WCHAR_H #include -#endif #include "async.h" #include "feature.h" @@ -187,7 +184,6 @@ SCM_DEFINE (scm_make_regexp, "make-regexp", 1, 0, 1, } #undef FUNC_NAME -#ifdef HAVE_WCHAR_H /* * While regexec does respect the current locale, it returns byte * offsets instead of character offsets. This routine fixes up the @@ -222,7 +218,6 @@ fixup_multibyte_match (regmatch_t *matches, int nmatches, char *str) } } -#endif SCM_DEFINE (scm_regexp_exec, "regexp-exec", 2, 2, 0, (SCM rx, SCM str, SCM start, SCM flags), @@ -280,10 +275,8 @@ SCM_DEFINE (scm_regexp_exec, "regexp-exec", 2, 2, 0, status = regexec (SCM_RGX (rx), c_str, nmatches, matches, scm_to_int (flags)); -#ifdef HAVE_WCHAR_H if (!status) fixup_multibyte_match (matches, nmatches, c_str); -#endif free (c_str); -- cgit v1.2.3