From e2678d6b7b73366777f85b10dc9bd0cc2ee8181e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 19 Apr 2018 18:10:51 +0200 Subject: Cleanup: make variable name English --- source/blender/makesdna/intern/makesdna.c | 11 ++++++----- 1 file 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; -- cgit v1.2.3