pcre2/src
Carlo Marcelo Arenas Belón 9c8abddc52
pcre2test: really allow using libedit when enabled (#96)
* pcre2test: use the right header for libedit in FreeBSD with autoconf

When `./configure --enable-pcre2test-libedit` is used in FreeBSD,
the resulting test will succeed but won't set the necessary flag
to distinguish between libedit and readline header files, therefore
using readline's at built time (if installed)

Consolidate all header tests into one and use instead the corresponding
autogenerated defines to check for each possibility.

* pcre2test: really allow libedit with cmake

Using cmake to configure and enable linking pcre2test with libedit,
could result in a broken build, because the header used was instead
pointing to readline.

In cases were the build will succeed (because both libraries were
available), it would likely show warnings, because several history
functions were being used without declarations, since readline
requires including "history.h" for those.

Additionally, since PCRE2_SUPPORT_READLINE is ON by default (unlike
configure), turning PCRE2_SUPPORT_LIBEDIT=ON, would require setting
that other option to OFF explicitly (even if readline wasn't available)
or the setup would abort.

Lastly, in systems with no default sysroot (ex: macOS), the use of
absolute paths for searching for libedit's readline.h could fail so
use instead relative PATH_SUFFIXES.

* pcre2test: avoid using readline headers with libedit

When asked to enable libedit in a system that ALSO has readline,
the headers of the former would be found and used by the earlier.

While that would mostly work, some functions will be missing
definitions (which is forbidden in C99), so instead abort the
configuration and let the user provide for them.
2022-04-08 17:07:30 +01:00
..
sljit JIT compiler update. 2022-02-24 14:15:15 +00:00
config.h.generic Final file tidies for 10.39. 2021-10-29 17:09:37 +01:00
config.h.in Update ChangeLog for GitHub commits and generate HTML docs. 2021-10-29 15:12:56 +01:00
pcre2.h.generic Final file tidies for 10.39. 2021-10-29 17:09:37 +01:00
pcre2.h.in inttypes and stdint cleanup (#30) 2021-10-29 15:05:19 +01:00
pcre2_auto_possess.c Merge scriptx and bidi fields (#78) 2022-01-12 17:00:12 +00:00
pcre2_chartables.c.dist Renamed dftables as pcre2_dftables and enable it to write the tables in binary. 2020-03-20 18:09:59 +00:00
pcre2_compile.c Fix incorrect compiling when [Aa] etc. are quantified 2022-01-26 08:37:18 +00:00
pcre2_config.c Renamed dftables as pcre2_dftables and enable it to write the tables in binary. 2020-03-20 18:09:59 +00:00
pcre2_context.c Correct tables argument data type for pcre2_set_character_tables() and fix 2019-07-28 15:58:24 +00:00
pcre2_convert.c Fix two instances of <= 0 being applied to unsigned integers. 2018-11-17 16:59:39 +00:00
pcre2_dfa_match.c Extend unicode boolean property bitset index to 12 bit (#81) 2022-01-14 15:51:03 +00:00
pcre2_dftables.c File tidies for 10.36-RC1 2020-11-06 17:27:35 +00:00
pcre2_error.c Revised script handling (see ChangeLog) 2021-12-21 16:11:30 +00:00
pcre2_extuni.c Refactor Python scripts for generating Unicode property data 2021-12-26 17:49:58 +00:00
pcre2_find_bracket.c File tidies and documentation update for 10.32-RC1 Release Candidate. 2018-08-13 11:57:09 +00:00
pcre2_fuzzsupport.c Make pcre2_dfa_match() take notice of the match limit, to catch patterns that 2017-05-30 10:42:57 +00:00
pcre2_internal.h Extend unicode boolean property bitset index to 12 bit (#81) 2022-01-14 15:51:03 +00:00
pcre2_intmodedep.h match: Properly align heapframes for CHERI/Arm's Morello prototype (#72) 2022-01-04 17:06:14 +00:00
pcre2_jit_compile.c Improve the code generator of recurse in JIT 2022-03-27 06:38:01 +00:00
pcre2_jit_match.c doc: formatting/typo fixes to documentation (#47) 2021-11-27 16:27:49 +00:00
pcre2_jit_misc.c jit: use correct type when checking for max value (#73) 2022-01-06 14:46:43 +01:00
pcre2_jit_neon_inc.h Fix ARM64 compilation warning in JIT. 2020-11-13 08:04:06 +00:00
pcre2_jit_simd_inc.h jit: update SIMD code to latest syntax (#95) 2022-04-03 10:22:45 +02:00
pcre2_jit_test.c Fixed an issue affecting recursions in JIT 2022-03-26 08:03:11 +00:00
pcre2_maketables.c Renamed dftables as pcre2_dftables and enable it to write the tables in binary. 2020-03-20 18:09:59 +00:00
pcre2_match.c Extend unicode boolean property bitset index to 12 bit (#81) 2022-01-14 15:51:03 +00:00
pcre2_match_data.c Implemented pcre2_get_match_data_size(). 2019-07-16 15:50:09 +00:00
pcre2_newline.c Final file updates for 10.21 release. 2016-01-12 14:44:34 +00:00
pcre2_ord2utf.c Remove all "register" declarations. 2016-11-03 17:35:59 +00:00
pcre2_pattern_info.c File tidies and documentation update for 10.32-RC1 Release Candidate. 2018-08-13 11:57:09 +00:00
pcre2_printint.c Initial code for Boolean property support 2022-01-09 14:46:43 +00:00
pcre2_script_run.c Merge scriptx and bidi fields (#78) 2022-01-12 17:00:12 +00:00
pcre2_serialize.c Renamed dftables as pcre2_dftables and enable it to write the tables in binary. 2020-03-20 18:09:59 +00:00
pcre2_string_utils.c Add support for Bidi_Control and Bidi_Class properties 2021-12-08 15:34:27 +00:00
pcre2_study.c Fix minor issues raised by Clang sanitize 2021-12-14 15:52:24 +00:00
pcre2_substitute.c Fix minor issues raised by Clang sanitize 2021-12-14 15:52:24 +00:00
pcre2_substring.c Avoid pointer overflow for unset captures in pcre2_substring_list_get(), though 2018-01-12 18:48:27 +00:00
pcre2_tables.c Refactor Python scripts for generating Unicode property data 2021-12-26 17:49:58 +00:00
pcre2_ucd.c Remove overlooked excess initializer 2022-03-03 16:44:06 +00:00
pcre2_ucp.h Initial code for Boolean property support 2022-01-09 14:46:43 +00:00
pcre2_ucptables.c Restore lost de-duplication 2022-01-10 11:31:27 +00:00
pcre2_valid_utf.c Fix bug in UTF-16 checker returning wrong offset for missing low surrogate. 2020-02-24 15:39:56 +00:00
pcre2_xclass.c Extend unicode boolean property bitset index to 12 bit (#81) 2022-01-14 15:51:03 +00:00
pcre2demo.c Doc file tidies for 10.38-RC1 2021-08-31 17:14:42 +01:00
pcre2grep.c pcre2grep: remove JFRIEDL_DEBUG obsoleted code (#49) 2021-11-27 16:36:17 +00:00
pcre2posix.c Add check for NULL subject to POSIX regexec(). 2021-11-28 16:38:36 +00:00
pcre2posix.h More file tidies for 10.33-RC1 2019-03-04 18:07:04 +00:00
pcre2test.c pcre2test: really allow using libedit when enabled (#96) 2022-04-08 17:07:30 +01:00