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/python/intern/bpy_app_build_options.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/python/intern/bpy_app_build_options.c')
-rw-r--r--source/blender/python/intern/bpy_app_build_options.c232
1 files changed, 116 insertions, 116 deletions
diff --git a/source/blender/python/intern/bpy_app_build_options.c b/source/blender/python/intern/bpy_app_build_options.c
index a80156a23bf..a841e974e85 100644
--- a/source/blender/python/intern/bpy_app_build_options.c
+++ b/source/blender/python/intern/bpy_app_build_options.c
@@ -27,265 +27,265 @@
static PyTypeObject BlenderAppBuildOptionsType;
static PyStructSequence_Field app_builtopts_info_fields[] = {
- /* names mostly follow CMake options, lowercase, after WITH_ */
- {(char *)"bullet", NULL},
- {(char *)"codec_avi", NULL},
- {(char *)"codec_ffmpeg", NULL},
- {(char *)"codec_sndfile", NULL},
- {(char *)"compositor", NULL},
- {(char *)"cycles", NULL},
- {(char *)"cycles_osl", NULL},
- {(char *)"freestyle", NULL},
- {(char *)"image_cineon", NULL},
- {(char *)"image_dds", NULL},
- {(char *)"image_hdr", NULL},
- {(char *)"image_openexr", NULL},
- {(char *)"image_openjpeg", NULL},
- {(char *)"image_tiff", NULL},
- {(char *)"input_ndof", NULL},
- {(char *)"audaspace", NULL},
- {(char *)"international", NULL},
- {(char *)"openal", NULL},
- {(char *)"sdl", NULL},
- {(char *)"sdl_dynload", NULL},
- {(char *)"jack", NULL},
- {(char *)"libmv", NULL},
- {(char *)"mod_fluid", NULL},
- {(char *)"mod_oceansim", NULL},
- {(char *)"mod_remesh", NULL},
- {(char *)"mod_smoke", NULL},
- {(char *)"collada", NULL},
- {(char *)"opencolorio", NULL},
- {(char *)"openmp", NULL},
- {(char *)"openvdb", NULL},
- {(char *)"alembic", NULL},
- {NULL},
+ /* names mostly follow CMake options, lowercase, after WITH_ */
+ {(char *)"bullet", NULL},
+ {(char *)"codec_avi", NULL},
+ {(char *)"codec_ffmpeg", NULL},
+ {(char *)"codec_sndfile", NULL},
+ {(char *)"compositor", NULL},
+ {(char *)"cycles", NULL},
+ {(char *)"cycles_osl", NULL},
+ {(char *)"freestyle", NULL},
+ {(char *)"image_cineon", NULL},
+ {(char *)"image_dds", NULL},
+ {(char *)"image_hdr", NULL},
+ {(char *)"image_openexr", NULL},
+ {(char *)"image_openjpeg", NULL},
+ {(char *)"image_tiff", NULL},
+ {(char *)"input_ndof", NULL},
+ {(char *)"audaspace", NULL},
+ {(char *)"international", NULL},
+ {(char *)"openal", NULL},
+ {(char *)"sdl", NULL},
+ {(char *)"sdl_dynload", NULL},
+ {(char *)"jack", NULL},
+ {(char *)"libmv", NULL},
+ {(char *)"mod_fluid", NULL},
+ {(char *)"mod_oceansim", NULL},
+ {(char *)"mod_remesh", NULL},
+ {(char *)"mod_smoke", NULL},
+ {(char *)"collada", NULL},
+ {(char *)"opencolorio", NULL},
+ {(char *)"openmp", NULL},
+ {(char *)"openvdb", NULL},
+ {(char *)"alembic", NULL},
+ {NULL},
};
-
static PyStructSequence_Desc app_builtopts_info_desc = {
- (char *)"bpy.app.build_options", /* name */
- (char *)"This module contains information about options blender is built with", /* doc */
- app_builtopts_info_fields, /* fields */
- ARRAY_SIZE(app_builtopts_info_fields) - 1,
+ (char *)"bpy.app.build_options", /* name */
+ (char *)"This module contains information about options blender is built with", /* doc */
+ app_builtopts_info_fields, /* fields */
+ ARRAY_SIZE(app_builtopts_info_fields) - 1,
};
static PyObject *make_builtopts_info(void)
{
- PyObject *builtopts_info;
- int pos = 0;
+ PyObject *builtopts_info;
+ int pos = 0;
- builtopts_info = PyStructSequence_New(&BlenderAppBuildOptionsType);
- if (builtopts_info == NULL) {
- return NULL;
- }
+ builtopts_info = PyStructSequence_New(&BlenderAppBuildOptionsType);
+ if (builtopts_info == NULL) {
+ return NULL;
+ }
#define SetObjIncref(item) \
- PyStructSequence_SET_ITEM(builtopts_info, pos++, (Py_IncRef(item), item))
+ PyStructSequence_SET_ITEM(builtopts_info, pos++, (Py_IncRef(item), item))
#ifdef WITH_BULLET
- SetObjIncref(Py_True);
+ SetObjIncref(Py_True);
#else
- SetObjIncref(Py_False);
+ SetObjIncref(Py_False);
#endif
#ifdef WITH_AVI
- SetObjIncref(Py_True);
+ SetObjIncref(Py_True);
#else
- SetObjIncref(Py_False);
+ SetObjIncref(Py_False);
#endif
#ifdef WITH_FFMPEG
- SetObjIncref(Py_True);
+ SetObjIncref(Py_True);
#else
- SetObjIncref(Py_False);
+ SetObjIncref(Py_False);
#endif
#ifdef WITH_SNDFILE
- SetObjIncref(Py_True);
+ SetObjIncref(Py_True);
#else
- SetObjIncref(Py_False);
+ SetObjIncref(Py_False);
#endif
#ifdef WITH_COMPOSITOR
- SetObjIncref(Py_True);
+ SetObjIncref(Py_True);
#else
- SetObjIncref(Py_False);
+ SetObjIncref(Py_False);
#endif
#ifdef WITH_CYCLES
- SetObjIncref(Py_True);
+ SetObjIncref(Py_True);
#else
- SetObjIncref(Py_False);
+ SetObjIncref(Py_False);
#endif
#ifdef WITH_CYCLES_OSL
- SetObjIncref(Py_True);
+ SetObjIncref(Py_True);
#else
- SetObjIncref(Py_False);
+ SetObjIncref(Py_False);
#endif
#ifdef WITH_FREESTYLE
- SetObjIncref(Py_True);
+ SetObjIncref(Py_True);
#else
- SetObjIncref(Py_False);
+ SetObjIncref(Py_False);
#endif
#ifdef WITH_CINEON
- SetObjIncref(Py_True);
+ SetObjIncref(Py_True);
#else
- SetObjIncref(Py_False);
+ SetObjIncref(Py_False);
#endif
#ifdef WITH_DDS
- SetObjIncref(Py_True);
+ SetObjIncref(Py_True);
#else
- SetObjIncref(Py_False);
+ SetObjIncref(Py_False);
#endif
#ifdef WITH_HDR
- SetObjIncref(Py_True);
+ SetObjIncref(Py_True);
#else
- SetObjIncref(Py_False);
+ SetObjIncref(Py_False);
#endif
#ifdef WITH_OPENEXR
- SetObjIncref(Py_True);
+ SetObjIncref(Py_True);
#else
- SetObjIncref(Py_False);
+ SetObjIncref(Py_False);
#endif
#ifdef WITH_OPENJPEG
- SetObjIncref(Py_True);
+ SetObjIncref(Py_True);
#else
- SetObjIncref(Py_False);
+ SetObjIncref(Py_False);
#endif
#ifdef WITH_TIFF
- SetObjIncref(Py_True);
+ SetObjIncref(Py_True);
#else
- SetObjIncref(Py_False);
+ SetObjIncref(Py_False);
#endif
#ifdef WITH_INPUT_NDOF
- SetObjIncref(Py_True);
+ SetObjIncref(Py_True);
#else
- SetObjIncref(Py_False);
+ SetObjIncref(Py_False);
#endif
#ifdef WITH_AUDASPACE
- SetObjIncref(Py_True);
+ SetObjIncref(Py_True);
#else
- SetObjIncref(Py_False);
+ SetObjIncref(Py_False);
#endif
#ifdef WITH_INTERNATIONAL
- SetObjIncref(Py_True);
+ SetObjIncref(Py_True);
#else
- SetObjIncref(Py_False);
+ SetObjIncref(Py_False);
#endif
#ifdef WITH_OPENAL
- SetObjIncref(Py_True);
+ SetObjIncref(Py_True);
#else
- SetObjIncref(Py_False);
+ SetObjIncref(Py_False);
#endif
#ifdef WITH_SDL
- SetObjIncref(Py_True);
+ SetObjIncref(Py_True);
#else
- SetObjIncref(Py_False);
+ SetObjIncref(Py_False);
#endif
#ifdef WITH_SDL_DYNLOAD
- SetObjIncref(Py_True);
+ SetObjIncref(Py_True);
#else
- SetObjIncref(Py_False);
+ SetObjIncref(Py_False);
#endif
#ifdef WITH_JACK
- SetObjIncref(Py_True);
+ SetObjIncref(Py_True);
#else
- SetObjIncref(Py_False);
+ SetObjIncref(Py_False);
#endif
#ifdef WITH_LIBMV
- SetObjIncref(Py_True);
+ SetObjIncref(Py_True);
#else
- SetObjIncref(Py_False);
+ SetObjIncref(Py_False);
#endif
#ifdef WITH_MOD_FLUID
- SetObjIncref(Py_True);
+ SetObjIncref(Py_True);
#else
- SetObjIncref(Py_False);
+ SetObjIncref(Py_False);
#endif
#ifdef WITH_OCEANSIM
- SetObjIncref(Py_True);
+ SetObjIncref(Py_True);
#else
- SetObjIncref(Py_False);
+ SetObjIncref(Py_False);
#endif
#ifdef WITH_MOD_REMESH
- SetObjIncref(Py_True);
+ SetObjIncref(Py_True);
#else
- SetObjIncref(Py_False);
+ SetObjIncref(Py_False);
#endif
#ifdef WITH_SMOKE
- SetObjIncref(Py_True);
+ SetObjIncref(Py_True);
#else
- SetObjIncref(Py_False);
+ SetObjIncref(Py_False);
#endif
#ifdef WITH_COLLADA
- SetObjIncref(Py_True);
+ SetObjIncref(Py_True);
#else
- SetObjIncref(Py_False);
+ SetObjIncref(Py_False);
#endif
#ifdef WITH_OCIO
- SetObjIncref(Py_True);
+ SetObjIncref(Py_True);
#else
- SetObjIncref(Py_False);
+ SetObjIncref(Py_False);
#endif
#ifdef _OPENMP
- SetObjIncref(Py_True);
+ SetObjIncref(Py_True);
#else
- SetObjIncref(Py_False);
+ SetObjIncref(Py_False);
#endif
#ifdef WITH_OPENVDB
- SetObjIncref(Py_True);
+ SetObjIncref(Py_True);
#else
- SetObjIncref(Py_False);
+ SetObjIncref(Py_False);
#endif
#ifdef WITH_ALEMBIC
- SetObjIncref(Py_True);
+ SetObjIncref(Py_True);
#else
- SetObjIncref(Py_False);
+ SetObjIncref(Py_False);
#endif
#undef SetObjIncref
- return builtopts_info;
+ return builtopts_info;
}
PyObject *BPY_app_build_options_struct(void)
{
- PyObject *ret;
+ PyObject *ret;
- PyStructSequence_InitType(&BlenderAppBuildOptionsType, &app_builtopts_info_desc);
+ PyStructSequence_InitType(&BlenderAppBuildOptionsType, &app_builtopts_info_desc);
- ret = make_builtopts_info();
+ ret = make_builtopts_info();
- /* prevent user from creating new instances */
- BlenderAppBuildOptionsType.tp_init = NULL;
- BlenderAppBuildOptionsType.tp_new = NULL;
- BlenderAppBuildOptionsType.tp_hash = (hashfunc)_Py_HashPointer; /* without this we can't do set(sys.modules) [#29635] */
+ /* prevent user from creating new instances */
+ BlenderAppBuildOptionsType.tp_init = NULL;
+ BlenderAppBuildOptionsType.tp_new = NULL;
+ BlenderAppBuildOptionsType.tp_hash = (hashfunc)
+ _Py_HashPointer; /* without this we can't do set(sys.modules) [#29635] */
- return ret;
+ return ret;
}