MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / InList

Function InList

dbug/dbug.c:1681–1695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1679 */
1680
1681static int InList(struct link *linkp, const char *cp)
1682{
1683 int result;
1684
1685 for (result=MATCHED; linkp != NULL; linkp= linkp->next_link)
1686 {
1687 if (!fnmatch(linkp->str, cp, 0))
1688 return linkp->flags;
1689 if (!(linkp->flags & EXCLUDE))
1690 result=NOT_MATCHED;
1691 if (linkp->flags & SUBDIR)
1692 result|=SUBDIR;
1693 }
1694 return result;
1695}
1696
1697/*
1698 * FUNCTION

Callers 2

DoTraceFunction · 0.85
_db_keyword_Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected