| 1679 | */ |
| 1680 | |
| 1681 | static 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 |
no outgoing calls
no test coverage detected