MCPcopy Create free account
hub / github.com/git/git / match_funcname

Function match_funcname

line-range.c:117–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115}
116
117static int match_funcname(xdemitconf_t *xecfg, const char *bol, const char *eol)
118{
119 if (xecfg) {
120 char buf[1];
121 return xecfg->find_func(bol, eol - bol, buf, 1,
122 xecfg->find_func_priv) >= 0;
123 }
124
125 if (bol == eol)
126 return 0;
127 if (isalpha(*bol) || *bol == '_' || *bol == '$')
128 return 1;
129 return 0;
130}
131
132static const char *find_funcname_matching_regexp(xdemitconf_t *xecfg, const char *start,
133 regex_t *regexp)

Callers 2

parse_range_funcnameFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected