[File] [PATCH] Merge file_regerror into file_regcomp

Christos Zoulas christos at zoulas.com
Mon Apr 18 21:54:59 UTC 2022

Committed, thanks!


> On Apr 14, 2022, at 7:21 PM, Dirk Müller <dirk at dmllr.de> wrote:
> Only regcomp() can return an error, regexec() only returns match or
> no-match. This allows to merge file_regerror into file_regcomp and
> thereby simplifies the callers of file_regcomp() as they no longer
> need to handle errors. Also this reduces memory overhead slightly
> as we can make file_regex_t directly a regex_t, saving ~ 16 bytes per
> regex.
> <0001-Merge-file_regerror-into-file_regcomp.patch>-- 
> File mailing list
> File at astron.com
> https://mailman.astron.com/mailman/listinfo/file

More information about the File mailing list