From e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 17 Apr 2019 06:17:24 +0200 Subject: 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 --- source/creator/creator_intern.h | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) (limited to 'source/creator/creator_intern.h') 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__ */ -- cgit v1.2.3