git-svn-id: svn://db.shs.com.ru/libs@101 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -80,7 +80,7 @@ KSection KParser::parse(PIIODevice * d) {
|
||||
if (PIStringAscii(d->className()) == PIStringAscii("PIFile")) content = ((PIFile*)d)->readAll();
|
||||
if (PIStringAscii(d->className()) == PIStringAscii("PIIOString")) content = *(((PIIOString*)d)->string());
|
||||
PIIOString ios(&content);
|
||||
int phase = 0;
|
||||
//int phase = 0;
|
||||
int cind = -1;
|
||||
while ((cind = content.find("enum", cind)) >= 0) {
|
||||
ios.seek(cind);
|
||||
@@ -99,7 +99,7 @@ KSection KParser::parse(PIIODevice * d) {
|
||||
}
|
||||
cs = KSection();
|
||||
cs.name = line;
|
||||
piCout << "enum" << cs.name;
|
||||
//piCout << "enum" << cs.name;
|
||||
int cev = 0;
|
||||
cevalues.clear();
|
||||
while (!ios.isEnd()) {
|
||||
@@ -119,7 +119,7 @@ KSection KParser::parse(PIIODevice * d) {
|
||||
piCout << "Parse error: can`t find section \"" << iarr.front() << "\"!";
|
||||
return KSection();
|
||||
}
|
||||
piCout << "insert" << alias << iarr;
|
||||
//piCout << "insert" << alias << iarr;
|
||||
int aval = enum_values.value(alias);
|
||||
KSection is = sections.value(iarr.take_front()), ts;
|
||||
piForeachRC (PIString & a, iarr) {
|
||||
@@ -136,10 +136,9 @@ KSection KParser::parse(PIIODevice * d) {
|
||||
} else {
|
||||
parseEnumLine(line, &cev, &comment);
|
||||
//piCout << line << "=" << cev << "//" << comment;
|
||||
ck = KType(cev, "", "", comment);
|
||||
ck.name = line;
|
||||
ck = KType(cev, line, "", "", comment);
|
||||
cs[cev] = ck;
|
||||
cevalues[ck.name] = cev;
|
||||
cevalues[line] = cev;
|
||||
++cev;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user