diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-04-29 21:11:40 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-04-29 21:11:40 +0400 |
commit | 343edf2722a9e114b98944c1147676e630e699b7 (patch) | |
tree | 7b969239ccab922b6390e040f85e96afa956932a /source/blender/makesdna | |
parent | b6c1850fd35c040c9d489eb42c2190f38564d381 (diff) |
style cleanup: function calls & whitespace.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/intern/dna_genfile.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/makesdna/intern/dna_genfile.c b/source/blender/makesdna/intern/dna_genfile.c index 41c04ca0899..557c0393166 100644 --- a/source/blender/makesdna/intern/dna_genfile.c +++ b/source/blender/makesdna/intern/dna_genfile.c @@ -338,7 +338,7 @@ static void init_structDNA(SDNA *sdna, int do_endian_swap) else sdna->nr_names= *data; data++; - sdna->names= MEM_callocN( sizeof(void *)*sdna->nr_names, "sdnanames"); + sdna->names= MEM_callocN(sizeof(void *)*sdna->nr_names, "sdnanames"); } else { printf("NAME error in SDNA file\n"); @@ -378,7 +378,7 @@ static void init_structDNA(SDNA *sdna, int do_endian_swap) else sdna->nr_types= *data; data++; - sdna->types= MEM_callocN( sizeof(void *)*sdna->nr_types, "sdnatypes"); + sdna->types= MEM_callocN(sizeof(void *)*sdna->nr_types, "sdnatypes"); } else { printf("TYPE error in SDNA file\n"); @@ -442,7 +442,7 @@ static void init_structDNA(SDNA *sdna, int do_endian_swap) else sdna->nr_structs= *data; data++; - sdna->structs= MEM_callocN( sizeof(void *)*sdna->nr_structs, "sdnastrcs"); + sdna->structs= MEM_callocN(sizeof(void *)*sdna->nr_structs, "sdnastrcs"); } else { printf("STRC error in SDNA file\n"); @@ -933,7 +933,7 @@ static void reconstruct_struct(SDNA *newsdna, SDNA *oldsdna, spo= oldsdna->structs[oldSDNAnr]; elen= oldsdna->typelens[ spo[0] ]; - memcpy( cur, data, elen); + memcpy(cur, data, elen); return; } @@ -1140,7 +1140,7 @@ void *DNA_struct_reconstruct(SDNA *newsdna, SDNA *oldsdna, char *compflags, int return NULL; } - cur= MEM_callocN( blocks*curlen, "reconstruct"); + cur= MEM_callocN(blocks*curlen, "reconstruct"); cpc= cur; cpo= data; for (a=0; a<blocks; a++) { |