Welcome to mirror list, hosted at ThFree Co, Russian Federation.

regcomp_enhanced.c « compat - git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 84193ce53b64f5ff98bbcc3c4869c53a7796a17e (plain)
1
2
3
4
5
6
7
8
9
#include "../git-compat-util.h"
#undef regcomp

int git_regcomp(regex_t *preg, const char *pattern, int cflags)
{
	if (!(cflags & REG_EXTENDED))
		cflags |= REG_ENHANCED;
	return regcomp(preg, pattern, cflags);
}