| 993 | #endif |
| 994 | |
| 995 | static inline int regexec_buf(const regex_t *preg, const char *buf, size_t size, |
| 996 | size_t nmatch, regmatch_t pmatch[], int eflags) |
| 997 | { |
| 998 | assert(nmatch > 0 && pmatch); |
| 999 | pmatch[0].rm_so = 0; |
| 1000 | pmatch[0].rm_eo = size; |
| 1001 | return regexec(preg, buf, nmatch, pmatch, eflags | REG_STARTEND); |
| 1002 | } |
| 1003 | |
| 1004 | #ifdef USE_ENHANCED_BASIC_REGULAR_EXPRESSIONS |
| 1005 | int git_regcomp(regex_t *preg, const char *pattern, int cflags); |
no outgoing calls
no test coverage detected