[File] [PATCH] Merge file_regerror into file_regcomp

Dirk Müller dirk at dmllr.de
Thu Apr 14 23:21:10 UTC 2022


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Merge-file_regerror-into-file_regcomp.patch
Type: text/x-patch
Size: 5082 bytes
Desc: not available
URL: <https://mailman.astron.com/pipermail/file/attachments/20220415/98832d82/attachment.bin>


More information about the File mailing list