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/makesdna/DNA_sdna_types.h
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/makesdna/DNA_sdna_types.h')
-rw-r--r--source/blender/makesdna/DNA_sdna_types.h100
1 files changed, 50 insertions, 50 deletions
diff --git a/source/blender/makesdna/DNA_sdna_types.h b/source/blender/makesdna/DNA_sdna_types.h
index bf7a8193246..01e74da4e3b 100644
--- a/source/blender/makesdna/DNA_sdna_types.h
+++ b/source/blender/makesdna/DNA_sdna_types.h
@@ -28,75 +28,75 @@ struct MemArena;
#
#
typedef struct SDNA {
- /** Full copy of 'encoded' data (when data_alloc is set, otherwise borrowed). */
- const char *data;
- /** Length of data. */
- int data_len;
- bool data_alloc;
+ /** Full copy of 'encoded' data (when data_alloc is set, otherwise borrowed). */
+ const char *data;
+ /** Length of data. */
+ int data_len;
+ bool data_alloc;
- /** Total number of struct members. */
- int nr_names, nr_names_alloc;
- /** Struct member names. */
- const char **names;
- /** Result of #DNA_elem_array_size (aligned with #names). */
- short *names_array_len;
+ /** Total number of struct members. */
+ int nr_names, nr_names_alloc;
+ /** Struct member names. */
+ const char **names;
+ /** Result of #DNA_elem_array_size (aligned with #names). */
+ short *names_array_len;
- /** Size of a pointer in bytes. */
- int pointer_size;
+ /** Size of a pointer in bytes. */
+ int pointer_size;
- /** Number of basic types + struct types. */
- int nr_types;
- /** Type names. */
- const char **types;
- /** Type lengths. */
- short *types_size;
+ /** Number of basic types + struct types. */
+ int nr_types;
+ /** Type names. */
+ const char **types;
+ /** Type lengths. */
+ short *types_size;
- /** Number of struct types. */
- int nr_structs;
- /**
- * sp = structs[a] is the address of a struct definition
- * sp[0] is struct type number, sp[1] amount of members
- *
- * (sp[2], sp[3]), (sp[4], sp[5]), .. are the member
- * type and name numbers respectively.
- */
- short **structs;
+ /** Number of struct types. */
+ int nr_structs;
+ /**
+ * sp = structs[a] is the address of a struct definition
+ * sp[0] is struct type number, sp[1] amount of members
+ *
+ * (sp[2], sp[3]), (sp[4], sp[5]), .. are the member
+ * type and name numbers respectively.
+ */
+ short **structs;
- /** #GHash for faster lookups, requires WITH_DNA_GHASH to be used for now. */
- struct GHash *structs_map;
+ /** #GHash for faster lookups, requires WITH_DNA_GHASH to be used for now. */
+ struct GHash *structs_map;
- /** Temporary memory currently only used for version patching DNA. */
- struct MemArena *mem_arena;
- /** Runtime versions of data stored in DNA, lazy initialized,
- * only different when renaming is done. */
- struct {
- /** Aligned with #SDNA.names, same pointers when unchanged. */
- const char **names;
- /** Aligned with #SDNA.types, same pointers when unchanged. */
- const char **types;
- } alias;
+ /** Temporary memory currently only used for version patching DNA. */
+ struct MemArena *mem_arena;
+ /** Runtime versions of data stored in DNA, lazy initialized,
+ * only different when renaming is done. */
+ struct {
+ /** Aligned with #SDNA.names, same pointers when unchanged. */
+ const char **names;
+ /** Aligned with #SDNA.types, same pointers when unchanged. */
+ const char **types;
+ } alias;
} SDNA;
#
#
typedef struct BHead {
- int code, len;
- const void *old;
- int SDNAnr, nr;
+ int code, len;
+ const void *old;
+ int SDNAnr, nr;
} BHead;
#
#
typedef struct BHead4 {
- int code, len;
- int old;
- int SDNAnr, nr;
+ int code, len;
+ int old;
+ int SDNAnr, nr;
} BHead4;
#
#
typedef struct BHead8 {
- int code, len;
- int64_t old;
- int SDNAnr, nr;
+ int code, len;
+ int64_t old;
+ int SDNAnr, nr;
} BHead8;
#endif