Mercurial > hg > dmlib
changeset 1407:4bca92dd7280
Rename dm_strmatch() to dmStrMatch().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 05 Nov 2017 02:35:15 +0200 |
parents | cb9865a49134 |
children | 2e1b2b87dada |
files | tools/packed.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/packed.c Sun Nov 05 02:35:01 2017 +0200 +++ b/tools/packed.c Sun Nov 05 02:35:15 2017 +0200 @@ -503,7 +503,7 @@ * wildcards ? and *. "?" matches any character and "*" matches * any number of characters. */ -BOOL dm_strmatch(const char *str, const char *pattern) +BOOL dmStrMatch(const char *str, const char *pattern) { BOOL matched = TRUE, any = FALSE, end = FALSE; const char *tmp = NULL; @@ -615,7 +615,7 @@ int i; for (i = 0; i < nexcFilenames; i++) { - if (dm_strmatch(filename, excFilenames[i])) + if (dmStrMatch(filename, excFilenames[i])) return TRUE; } return FALSE; @@ -725,7 +725,7 @@ { match = FALSE; for (i = 0; i < nsrcFilenames && !match; i++) - match = dm_strmatch(node->filename, srcFilenames[i]); + match = dmStrMatch(node->filename, srcFilenames[i]); } else // No filenames specified, everything shown @@ -770,7 +770,7 @@ match = FALSE; for (i = 0; (i < nsrcFilenames) && !match; i++) { - if (dm_strmatch(node->filename, srcFilenames[i]) && + if (dmStrMatch(node->filename, srcFilenames[i]) && !dmCheckExcluded(node->filename)) match = TRUE; }