git-svn-id: svn://db.shs.com.ru/pip@1054 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -123,9 +123,12 @@ void makeClassInfo(PIFile & f, const PICodeParser::Entity * e) {
|
|||||||
f << "\tci->variables << ti;\n";
|
f << "\tci->variables << ti;\n";
|
||||||
}
|
}
|
||||||
PIString arg;
|
PIString arg;
|
||||||
if (!e->functions.isEmpty()) f << "\n\tFunctionInfo * fi;\n";
|
bool has_fi = false;
|
||||||
piForeachC (PICodeParser::Member & m, e->functions) {
|
piForeachC (PICodeParser::Member & m, e->functions) {
|
||||||
if (e->name.findCWord(m.name) >= 0) continue;
|
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 << "\tci->functions.push_back(FunctionInfo()); fi = &(ci->functions.back());\n";
|
||||||
f << "\tfi->name = \"" << m.name << "\";";
|
f << "\tfi->name = \"" << m.name << "\";";
|
||||||
f << " fi->return_type = TypeInfo(\"\", \"" << m.type << "\"";
|
f << " fi->return_type = TypeInfo(\"\", \"" << m.type << "\"";
|
||||||
|
|||||||
Reference in New Issue
Block a user