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:
authorCampbell Barton <ideasman42@gmail.com>2019-04-17 07:17:24 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-17 07:21:24 +0300
commite12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch)
tree8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/blenkernel/intern/autoexec.c
parentb3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff)
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
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;
}