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>2018-04-19 19:10:51 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-04-19 19:10:51 +0300
commite2678d6b7b73366777f85b10dc9bd0cc2ee8181e (patch)
treed03aeda716bee083aeaff18a1d5e2ecca40c2ff8
parent307492c2db80daa988985e8ea1d5e86ab9b89024 (diff)
Cleanup: make variable name English
-rw-r--r--source/blender/makesdna/intern/makesdna.c11
1 files changed, 6 insertions, 5 deletions
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;