diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:17:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:21:24 +0300 |
commit | e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch) | |
tree | 8cf3453d12edb177a218ef8009357518ec6cab6a /source/creator/creator_intern.h | |
parent | b3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (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/creator/creator_intern.h')
-rw-r--r-- | source/creator/creator_intern.h | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/source/creator/creator_intern.h b/source/creator/creator_intern.h index c2500c2ac06..959fb71d218 100644 --- a/source/creator/creator_intern.h +++ b/source/creator/creator_intern.h @@ -32,35 +32,33 @@ struct bContext; void main_args_setup(struct bContext *C, struct bArgs *ba); void main_args_setup_post(struct bContext *C, struct bArgs *ba); - /* creator_signals.c */ void main_signal_setup(void); void main_signal_setup_background(void); void main_signal_setup_fpe(void); -#endif /* WITH_PYTHON_MODULE */ - +#endif /* WITH_PYTHON_MODULE */ /* Shared data for argument handlers to store state in */ struct ApplicationState { - struct { - bool use_crash_handler; - bool use_abort_handler; - } signal; - - /* we may want to set different exit codes for other kinds of errors */ - struct { - unsigned char python; - } exit_code_on_error; + struct { + bool use_crash_handler; + bool use_abort_handler; + } signal; + + /* we may want to set different exit codes for other kinds of errors */ + struct { + unsigned char python; + } exit_code_on_error; }; -extern struct ApplicationState app_state; /* creator.c */ +extern struct ApplicationState app_state; /* creator.c */ /* for the callbacks: */ #ifndef WITH_PYTHON_MODULE -#define BLEND_VERSION_FMT "Blender %d.%02d (sub %d)" -#define BLEND_VERSION_ARG BLENDER_VERSION / 100, BLENDER_VERSION % 100, BLENDER_SUBVERSION +# define BLEND_VERSION_FMT "Blender %d.%02d (sub %d)" +# define BLEND_VERSION_ARG BLENDER_VERSION / 100, BLENDER_VERSION % 100, BLENDER_SUBVERSION /* pass directly to printf */ -#define BLEND_VERSION_STRING_FMT BLEND_VERSION_FMT "\n", BLEND_VERSION_ARG +# define BLEND_VERSION_STRING_FMT BLEND_VERSION_FMT "\n", BLEND_VERSION_ARG #endif #ifdef WITH_BUILDINFO_HEADER @@ -69,7 +67,7 @@ extern struct ApplicationState app_state; /* creator.c */ /* from buildinfo.c */ #ifdef BUILD_DATE - extern char build_date[]; +extern char build_date[]; extern char build_time[]; extern char build_hash[]; extern unsigned long build_commit_timestamp; @@ -87,4 +85,4 @@ extern char build_linkflags[]; extern char build_system[]; #endif -#endif /* __CREATOR_INTERN_H__ */ +#endif /* __CREATOR_INTERN_H__ */ |