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:
Diffstat (limited to 'source/blender/makesdna/DNA_sdna_types.h')
-rw-r--r--source/blender/makesdna/DNA_sdna_types.h30
1 files changed, 20 insertions, 10 deletions
diff --git a/source/blender/makesdna/DNA_sdna_types.h b/source/blender/makesdna/DNA_sdna_types.h
index ac0b77aacf9..5726837a723 100644
--- a/source/blender/makesdna/DNA_sdna_types.h
+++ b/source/blender/makesdna/DNA_sdna_types.h
@@ -33,21 +33,31 @@
#
#
-struct SDNA {
- char *data;
- int datalen, nr_names;
- char **names;
- int nr_types, pointerlen;
- char **types;
- short *typelens;
- int nr_structs;
- short **structs;
+typedef struct SDNA {
+ char *data; /* full copy of 'encoded' data */
+ int datalen; /* length of data */
+
+ int nr_names; /* total number of struct members */
+ char **names; /* struct member names */
+
+ int pointerlen; /* size of a pointer in bytes */
+
+ int nr_types; /* number of basic types + struct types */
+ char **types; /* type names */
+ short *typelens; /* type lengths */
+
+ int nr_structs; /* number of struct types */
+ short **structs; /* sp= structs[a] is the adress of a struct definintion
+ 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 */
/* wrong place for this really, its a simple
* cache for findstruct_nr.
*/
int lastfind;
-};
+} SDNA;
#
#