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-03-02 17:05:58 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-03-02 17:29:08 +0300
commitf67e81e295ac7da6857edc441e0ba582cfcd6424 (patch)
tree9757f1e83ef017b37579772e4f3bbc675ed31a73 /source/blender/makesdna/DNA_listBase.h
parentdc858a048b0f41207678677e0baba1fd29eadfb0 (diff)
Cleanup: SDNA/DNA naming
Use 'size' instead of 'len' to represent the size of data in bytes, 'len' is used for the result of 'strlen' or the length of an array in some parts of 'makesdna.c' & 'dna_genfile.c'. Also clarify comments and some variable names, no functional changes.
Diffstat (limited to 'source/blender/makesdna/DNA_listBase.h')
-rw-r--r--source/blender/makesdna/DNA_listBase.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/source/blender/makesdna/DNA_listBase.h b/source/blender/makesdna/DNA_listBase.h
index 084f1a17cf0..359aa7a219c 100644
--- a/source/blender/makesdna/DNA_listBase.h
+++ b/source/blender/makesdna/DNA_listBase.h
@@ -19,8 +19,7 @@
/** \file
* \ingroup DNA
- * \brief These structs are the foundation for all linked lists in the
- * library system.
+ * \brief These structs are the foundation for all linked lists in the library system.
*
* Doubly-linked lists start from a ListBase and contain elements beginning
* with Link.
@@ -33,19 +32,19 @@
extern "C" {
#endif
-/* generic - all structs which are put into linked lists begin with this */
+/** Generic - all structs which are put into linked lists begin with this. */
typedef struct Link {
struct Link *next, *prev;
} Link;
-/* simple subclass of Link--use this when it is not worth defining a custom one... */
+/** Simple subclass of Link. Use this when it is not worth defining a custom one. */
typedef struct LinkData {
struct LinkData *next, *prev;
void *data;
} LinkData;
-/* never change the size of this! genfile.c detects pointerlen with it */
+/** Never change the size of this! dna_genfile.c detects pointer_size with it. */
typedef struct ListBase {
void *first, *last;
} ListBase;