From 1cc76724bed0180355e53d705bb9ec30928a71ac Mon Sep 17 00:00:00 2001 From: Rory Bradford Date: Fri, 10 Apr 2020 11:34:57 +0100 Subject: Refactor Implement `fnmatch` file name matching. Define clang formatting, previously used defaults without a config file; apply formatting. Make `install` more cross-platform. Signed-off-by: Rory Bradford --- config.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'config.h') diff --git a/config.h b/config.h index 009908c..3a37f96 100644 --- a/config.h +++ b/config.h @@ -1,11 +1,10 @@ -char *ignored_dirs[] = { "node_modules", ".mypy_cache", ".git", - ".hg", "__pycache__", ".eggs" }; +char *ignored_dirs[] = {"*node_modules*", "*.mypy_cache*", "*.git*", "*.hg*", + "*__pycache__*", "*.eggs*"}; size_t ignored_dirs_size = sizeof(ignored_dirs) / sizeof(ignored_dirs[0]); -char *ignored_extensions[] = { ".pyc", ".jpg", ".jpeg", ".png", ".gif", - ".zip", ".tar", ".xz", ".gz", ".gzip", - ".jar", ".apk", ".deb", ".o" }; +char *ignored_extensions[] = {".pyc", ".jpg", ".jpeg", ".png", ".gif", ".zip", + ".tar", ".xz", ".gz", ".gzip", ".jar", ".apk", ".deb", ".o"}; size_t ignored_extensions_size = sizeof(ignored_extensions) / sizeof(ignored_extensions[0]); -- cgit 1.4.1-2-gfad0