Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/blenkernel/intern/autoexec.c')
-rw-r--r--source/blender/blenkernel/intern/autoexec.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/source/blender/blenkernel/intern/autoexec.c b/source/blender/blenkernel/intern/autoexec.c
index 1444c2cccbc..1616c46d05b 100644
--- a/source/blender/blenkernel/intern/autoexec.c
+++ b/source/blender/blenkernel/intern/autoexec.c
@@ -34,7 +34,7 @@
# include "BLI_string.h"
#endif
-#include "BKE_autoexec.h" /* own include */
+#include "BKE_autoexec.h" /* own include */
/**
* \param path: The path to check against.
@@ -42,29 +42,29 @@
*/
bool BKE_autoexec_match(const char *path)
{
- bPathCompare *path_cmp;
+ bPathCompare *path_cmp;
#ifdef WIN32
- const int fnmatch_flags = FNM_CASEFOLD;
+ const int fnmatch_flags = FNM_CASEFOLD;
#else
- const int fnmatch_flags = 0;
+ const int fnmatch_flags = 0;
#endif
- BLI_assert((U.flag & USER_SCRIPT_AUTOEXEC_DISABLE) == 0);
+ BLI_assert((U.flag & USER_SCRIPT_AUTOEXEC_DISABLE) == 0);
- for (path_cmp = U.autoexec_paths.first; path_cmp; path_cmp = path_cmp->next) {
- if (path_cmp->path[0] == '\0') {
- /* pass */
- }
- else if ((path_cmp->flag & USER_PATHCMP_GLOB)) {
- if (fnmatch(path_cmp->path, path, fnmatch_flags) == 0) {
- return true;
- }
- }
- else if (BLI_path_ncmp(path_cmp->path, path, strlen(path_cmp->path)) == 0) {
- return true;
- }
- }
+ for (path_cmp = U.autoexec_paths.first; path_cmp; path_cmp = path_cmp->next) {
+ if (path_cmp->path[0] == '\0') {
+ /* pass */
+ }
+ else if ((path_cmp->flag & USER_PATHCMP_GLOB)) {
+ if (fnmatch(path_cmp->path, path, fnmatch_flags) == 0) {
+ return true;
+ }
+ }
+ else if (BLI_path_ncmp(path_cmp->path, path, strlen(path_cmp->path)) == 0) {
+ return true;
+ }
+ }
- return false;
+ return false;
}