remove static char EmptyString lines

This commit is contained in:
sonoro1234
2018-11-27 12:07:56 +01:00
parent df00156746
commit 2c10d47b9a
5 changed files with 6 additions and 11 deletions

View File

@@ -605,7 +605,6 @@ struct ImGuiTextFilter
struct ImGuiTextBuffer struct ImGuiTextBuffer
{ {
ImVector_char Buf; ImVector_char Buf;
char EmptyString[1];
}; };
struct ImGuiStorage struct ImGuiStorage
{ {

View File

@@ -411,6 +411,10 @@ local function struct_parser()
table.insert(structcdefs,line) table.insert(structcdefs,line)
return return
end end
if line:match"^%s*static char" then
assert(line:match"EmptyString",line)
return --skip that static chat EmtyString
end
--if in_function discard --if in_function discard
if in_functionst then if in_functionst then
@@ -434,7 +438,7 @@ local function struct_parser()
elseif line:match("public:") then elseif line:match("public:") then
--nothing --nothing
else else
local linea = line:gsub("%S+",{class="struct",mutable="",static=""}) local linea = line:gsub("%S+",{class="struct",mutable=""})
local template = linea:match("ImVector<(.+)>") local template = linea:match("ImVector<(.+)>")
if template then if template then
local te = template:gsub("%s","_") local te = template:gsub("%s","_")

View File

@@ -605,7 +605,6 @@ struct ImGuiTextFilter
struct ImGuiTextBuffer struct ImGuiTextBuffer
{ {
ImVector_char Buf; ImVector_char Buf;
char EmptyString[1];
}; };
struct ImGuiStorage struct ImGuiStorage
{ {

View File

@@ -1105,10 +1105,7 @@
"name":"DisplaySize"}], "name":"DisplaySize"}],
"ImGuiTextBuffer":[{"type":"ImVector_char", "ImGuiTextBuffer":[{"type":"ImVector_char",
"template_type":"char", "template_type":"char",
"name":"Buf"}, "name":"Buf"}],
{"type":"char",
"size":1,
"name":"EmptyString[1]"}],
"ImGuiStyle":[{"type":"float", "ImGuiStyle":[{"type":"float",
"name":"Alpha"}, "name":"Alpha"},
{"type":"ImVec2", {"type":"ImVec2",

View File

@@ -1958,10 +1958,6 @@ defs["structs"]["ImGuiTextBuffer"][1] = {}
defs["structs"]["ImGuiTextBuffer"][1]["name"] = "Buf" defs["structs"]["ImGuiTextBuffer"][1]["name"] = "Buf"
defs["structs"]["ImGuiTextBuffer"][1]["template_type"] = "char" defs["structs"]["ImGuiTextBuffer"][1]["template_type"] = "char"
defs["structs"]["ImGuiTextBuffer"][1]["type"] = "ImVector_char" defs["structs"]["ImGuiTextBuffer"][1]["type"] = "ImVector_char"
defs["structs"]["ImGuiTextBuffer"][2] = {}
defs["structs"]["ImGuiTextBuffer"][2]["name"] = "EmptyString[1]"
defs["structs"]["ImGuiTextBuffer"][2]["size"] = 1
defs["structs"]["ImGuiTextBuffer"][2]["type"] = "char"
defs["structs"]["ImGuiTextFilter"] = {} defs["structs"]["ImGuiTextFilter"] = {}
defs["structs"]["ImGuiTextFilter"][1] = {} defs["structs"]["ImGuiTextFilter"][1] = {}
defs["structs"]["ImGuiTextFilter"][1]["name"] = "InputBuf[256]" defs["structs"]["ImGuiTextFilter"][1]["name"] = "InputBuf[256]"