MCPcopy Index your code
hub / github.com/git/git / compile_regexp_failed

Function compile_regexp_failed

grep.c:220–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220static NORETURN void compile_regexp_failed(const struct grep_pat *p,
221 const char *error)
222{
223 char where[1024];
224
225 if (p->no)
226 xsnprintf(where, sizeof(where), "In '%s' at %d, ", p->origin, p->no);
227 else if (p->origin)
228 xsnprintf(where, sizeof(where), "%s, ", p->origin);
229 else
230 where[0] = 0;
231
232 die("%s'%s': %s", where, p->pattern, error);
233}
234
235static int is_fixed(const char *s, size_t len)
236{

Callers 3

compile_pcre2_patternFunction · 0.85
compile_fixed_regexpFunction · 0.85
compile_regexpFunction · 0.85

Calls 2

xsnprintfFunction · 0.85
dieFunction · 0.70

Tested by

no test coverage detected