[PATCH v4 06/15] Add POSIX regex wrapper functions.
Dodji Seketeli
dodji@seketeli.org
Mon May 11 16:37:43 GMT 2020
Giuliano Procida <gprocida@google.com> a écrit:
> libabigail code uses the POSIX regex library consistently:
>
> - compile std::string to regex, with the flag REG_EXTENDED
> - store regex using a shared pointer wrapper
> - check match of regex against std::string
>
> All the C string / std::string logic and so on is repeated at every
> call site. This patch introduces wrapper functions to take care of
> this logic.
>
> There are no behavioural changes.
>
> * include/abg-regex.h (compile): Declare new function.
> (match): Declare new function.
> * src/abg-regex.cc (compile): Add new function wrapping
> regcomp. (match): Add new function wrapping regexec.
Applied to master, thanks.
--
Dodji
More information about the Libabigail
mailing list