[File-cvs] CVS commit: file/src
Christos Zoulas
christos at zoulas.com
Mon Apr 18 21:50:49 UTC 2022
Module Name: file
Committed By: christos
Date: Mon Apr 18 21:50:49 UTC 2022
Modified Files:
file/src: apprentice.c file.h funcs.c softmagic.c
Log Message:
From: Dirk Mueller:
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.
To generate a diff of this commit:
cvs rdiff -r1.322 -r1.323 file/src/apprentice.c
cvs rdiff -r1.231 -r1.232 file/src/file.h
cvs rdiff -r1.127 -r1.128 file/src/funcs.c
cvs rdiff -r1.321 -r1.322 file/src/softmagic.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
More information about the File-cvs
mailing list