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-01-07 14:19:13 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-01-07 16:43:00 +0300
commit5a43406e1bad973a8cb32702b4fdb588068a6dcd (patch)
treeb47ac75f429b586950dab5300669c373023efab8 /source/blender/makesdna/DNA_sdna_types.h
parent0215caeac2ad013fa03e2799049f5358d951ebfa (diff)
Cleanup: move DNA comments before struct members
Needed for clang-format in some cases, see: T53211
Diffstat (limited to 'source/blender/makesdna/DNA_sdna_types.h')
-rw-r--r--source/blender/makesdna/DNA_sdna_types.h44
1 files changed, 28 insertions, 16 deletions
diff --git a/source/blender/makesdna/DNA_sdna_types.h b/source/blender/makesdna/DNA_sdna_types.h
index 27d18e49634..c2d84c403a0 100644
--- a/source/blender/makesdna/DNA_sdna_types.h
+++ b/source/blender/makesdna/DNA_sdna_types.h
@@ -35,28 +35,40 @@
#
#
typedef struct SDNA {
- const char *data; /* full copy of 'encoded' data (when data_alloc is set, otherwise borrowed). */
- int datalen; /* length of data */
+ /** Full copy of 'encoded' data (when data_alloc is set, otherwise borrowed). */
+ const char *data;
+ /** Length of data. */
+ int datalen;
bool data_alloc;
- int nr_names; /* total number of struct members */
- const char **names; /* struct member names */
+ /** Total number of struct members. */
+ int nr_names;
+ /** Struct member names. */
+ const char **names;
- int pointerlen; /* size of a pointer in bytes */
+ /** Size of a pointer in bytes. */
+ int pointerlen;
- int nr_types; /* number of basic types + struct types */
- const char **types; /* type names */
- short *typelens; /* type lengths */
+ /** Number of basic types + struct types. */
+ int nr_types;
+ /** Type names. */
+ const char **types;
+ /** Type lengths. */
+ short *typelens;
- int nr_structs; /* number of struct types */
- short **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 */
+ /** 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;
- struct GHash *structs_map; /* ghash for faster lookups,
- * requires WITH_DNA_GHASH to be used for now */
+ /** #GHash for faster lookups, requires WITH_DNA_GHASH to be used for now. */
+ struct GHash *structs_map;
} SDNA;
#