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-15 15:14:35 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-01-15 15:15:35 +0300
commit328a0f975be68404604ee2571c1d0c4cf828dfec (patch)
tree5a0a74b069108f122cad0b1b11829cfa9529abbe /source/blender/makesdna/intern/makesdna.c
parent39acbebe46ef90003201077867a394ebc60d540c (diff)
Cleanup: comment line length (DNA)
Prevents clang-format wrapping text before comments.
Diffstat (limited to 'source/blender/makesdna/intern/makesdna.c')
-rw-r--r--source/blender/makesdna/intern/makesdna.c27
1 files changed, 17 insertions, 10 deletions
diff --git a/source/blender/makesdna/intern/makesdna.c b/source/blender/makesdna/intern/makesdna.c
index a2c211826ee..1674e45085d 100644
--- a/source/blender/makesdna/intern/makesdna.c
+++ b/source/blender/makesdna/intern/makesdna.c
@@ -142,15 +142,21 @@ static int maxdata = 500000, maxnr = 50000;
static int nr_names = 0;
static int nr_types = 0;
static int nr_structs = 0;
-static char **names, *namedata; /* at address names[a] is string a */
-static char **types, *typedata; /* at address types[a] is string a */
-static short *typelens_native; /* at typelens[a] is the length of type 'a' on this systems bitness (32 or 64) */
-static short *typelens_32; /* contains sizes as they are calculated on 32 bit systems */
-static short *typelens_64; /* contains sizes as they are calculated on 64 bit systems */
-static short **structs, *structdata; /* at sp = structs[a] is the first address of a struct definition
- * sp[0] is type number
- * sp[1] is amount of elements
- * sp[2] sp[3] is typenr, namenr (etc) */
+/** at address names[a] is string a */
+static char **names, *namedata;
+/** at address types[a] is string a */
+static char **types, *typedata;
+/** at typelens[a] is the length of type 'a' on this systems bitness (32 or 64) */
+static short *typelens_native;
+/** contains sizes as they are calculated on 32 bit systems */
+static short *typelens_32;
+/** contains sizes as they are calculated on 64 bit systems */
+static short *typelens_64;
+/** at sp = structs[a] is the first address of a struct definition
+ * sp[0] is type number
+ * sp[1] is amount of elements
+ * sp[2] sp[3] is typenr, namenr (etc) */
+static short **structs, *structdata;
/**
* Variable to control debug output of makesdna.
* debugSDNA:
@@ -827,7 +833,8 @@ static int calculate_structlens(int firststruct)
}
else if (cp[0] == '[') {
- /* parsing can cause names "var" and "[3]" to be found for "float var [3]" ... */
+ /* parsing can cause names "var" and "[3]"
+ * to be found for "float var [3]" */
fprintf(stderr, "Parse error in struct, invalid member name: %s %s\n",
types[structtype], cp);
dna_error = 1;