git-svn-id: svn://db.shs.com.ru/pip@1054 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2020-04-17 12:58:49 +00:00
parent f205d037d1
commit 1bdb1fb158

View File

@@ -123,9 +123,12 @@ void makeClassInfo(PIFile & f, const PICodeParser::Entity * e) {
f << "\tci->variables << ti;\n";
}
PIString arg;
if (!e->functions.isEmpty()) f << "\n\tFunctionInfo * fi;\n";
bool has_fi = false;
piForeachC (PICodeParser::Member & m, e->functions) {
if (e->name.findCWord(m.name) >= 0) continue;
if (!has_fi)
f << "\n\tFunctionInfo * fi;\n";
has_fi = true;
f << "\tci->functions.push_back(FunctionInfo()); fi = &(ci->functions.back());\n";
f << "\tfi->name = \"" << m.name << "\";";
f << " fi->return_type = TypeInfo(\"\", \"" << m.type << "\"";