[Bf-blender-cvs] [e2678d6b7b7] master: Cleanup: make variable name English
Campbell Barton
noreply at git.blender.org
Thu Apr 19 18:11:38 CEST 2018
Commit: e2678d6b7b73366777f85b10dc9bd0cc2ee8181e
Author: Campbell Barton
Date: Thu Apr 19 18:10:51 2018 +0200
Branches: master
https://developer.blender.org/rBe2678d6b7b73366777f85b10dc9bd0cc2ee8181e
Cleanup: make variable name English
===================================================================
M source/blender/makesdna/intern/makesdna.c
===================================================================
diff --git a/source/blender/makesdna/intern/makesdna.c b/source/blender/makesdna/intern/makesdna.c
index a14ed168b69..a5f474b93bf 100644
--- a/source/blender/makesdna/intern/makesdna.c
+++ b/source/blender/makesdna/intern/makesdna.c
@@ -562,9 +562,10 @@ static int convert_include(const char *filename)
/* read include file, skip structs with a '#' before it.
* store all data in temporal arrays.
*/
- int filelen, count, overslaan, slen, type, name, strct;
+ int filelen, count, slen, type, name, strct;
short *structpoin, *sp;
char *maindata, *mainend, *md, *md1;
+ bool skip_struct;
md = maindata = read_file_data(filename, &filelen);
if (filelen == -1) {
@@ -577,18 +578,18 @@ static int convert_include(const char *filename)
/* we look for '{' and then back to 'struct' */
count = 0;
- overslaan = 0;
+ skip_struct = false;
while (count < filelen) {
/* code for skipping a struct: two hashes on 2 lines. (preprocess added a space) */
if (md[0] == '#' && md[1] == ' ' && md[2] == '#') {
- overslaan = 1;
+ skip_struct = true;
}
if (md[0] == '{') {
md[0] = 0;
- if (overslaan) {
- overslaan = 0;
+ if (skip_struct) {
+ skip_struct = false;
}
else {
if (md[-1] == ' ') md[-1] = 0;
More information about the Bf-blender-cvs
mailing list