From f67e81e295ac7da6857edc441e0ba582cfcd6424 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 3 Mar 2019 01:05:58 +1100 Subject: 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. --- source/blender/makesdna/DNA_sdna_types.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/makesdna/DNA_sdna_types.h') diff --git a/source/blender/makesdna/DNA_sdna_types.h b/source/blender/makesdna/DNA_sdna_types.h index 4167f9b61ee..5b57065dff3 100644 --- a/source/blender/makesdna/DNA_sdna_types.h +++ b/source/blender/makesdna/DNA_sdna_types.h @@ -31,7 +31,7 @@ typedef struct SDNA { /** Full copy of 'encoded' data (when data_alloc is set, otherwise borrowed). */ const char *data; /** Length of data. */ - int datalen; + int data_len; bool data_alloc; /** Total number of struct members. */ @@ -40,14 +40,14 @@ typedef struct SDNA { const char **names; /** Size of a pointer in bytes. */ - int pointerlen; + int pointer_size; /** Number of basic types + struct types. */ int nr_types; /** Type names. */ const char **types; /** Type lengths. */ - short *typelens; + short *types_size; /** Number of struct types. */ int nr_structs; -- cgit v1.2.3