Internals: Fix inserted tabs.
This commit is contained in:
parent
58dfe9d071
commit
13a20c5ee9
|
|
@ -321,8 +321,8 @@ size_t V3PreLex::inputToLex(char* buf, size_t max_size) {
|
||||||
//
|
//
|
||||||
VPreStream* streamp = curStreamp();
|
VPreStream* streamp = curStreamp();
|
||||||
if (debug()>=10) {
|
if (debug()>=10) {
|
||||||
cout<<"- pp:inputToLex ITL s="<<max_size<<" bs="<<streamp->m_buffers.size()<<endl;
|
cout<<"- pp:inputToLex ITL s="<<max_size<<" bs="<<streamp->m_buffers.size()<<endl;
|
||||||
dumpStack();
|
dumpStack();
|
||||||
}
|
}
|
||||||
// For testing, use really small chunks
|
// For testing, use really small chunks
|
||||||
//if (max_size > 13) max_size=13;
|
//if (max_size > 13) max_size=13;
|
||||||
|
|
@ -369,7 +369,7 @@ string V3PreLex::endOfStream(bool& againr) {
|
||||||
// Switch to file or next unputString
|
// Switch to file or next unputString
|
||||||
againr = false;
|
againr = false;
|
||||||
if (yy_flex_debug) {
|
if (yy_flex_debug) {
|
||||||
cout<<"-EOS state="<<curStreamp()->m_termState<<" at "<<curFilelinep()<<endl;
|
cout<<"-EOS state="<<curStreamp()->m_termState<<" at "<<curFilelinep()<<endl;
|
||||||
}
|
}
|
||||||
if (curStreamp()->m_eof) return ""; // Don't delete the final "EOF" stream
|
if (curStreamp()->m_eof) return ""; // Don't delete the final "EOF" stream
|
||||||
bool exited_file = curStreamp()->m_file;
|
bool exited_file = curStreamp()->m_file;
|
||||||
|
|
|
||||||
|
|
@ -1023,7 +1023,7 @@ void V3ParseImp::lexToken() {
|
||||||
SYMP->nextId(NULL);
|
SYMP->nextId(NULL);
|
||||||
} else {
|
} else {
|
||||||
UINFO(7," lexToken: find upward "<<SYMP->symCurrentp()
|
UINFO(7," lexToken: find upward "<<SYMP->symCurrentp()
|
||||||
<<" for '"<<*(yylval.strp)<<"'"<<endl);
|
<<" for '"<<*(yylval.strp)<<"'"<<endl);
|
||||||
//if (debug()>=9) SYMP->symCurrentp()->dump(cout," -findtree: ", true);
|
//if (debug()>=9) SYMP->symCurrentp()->dump(cout," -findtree: ", true);
|
||||||
foundp = SYMP->symCurrentp()->findIdFallback(*(yylval.strp));
|
foundp = SYMP->symCurrentp()->findIdFallback(*(yylval.strp));
|
||||||
}
|
}
|
||||||
|
|
@ -1057,8 +1057,8 @@ int V3ParseImp::lexToBison() {
|
||||||
cout<<" {"<<yylval.fl->filenameLetters()<<yylval.fl->lineno()
|
cout<<" {"<<yylval.fl->filenameLetters()<<yylval.fl->lineno()
|
||||||
<<"} lexToBison TOKEN="<<yylval.token<<" "<<tokenName(yylval.token);
|
<<"} lexToBison TOKEN="<<yylval.token<<" "<<tokenName(yylval.token);
|
||||||
if (yylval.token == yaID__ETC
|
if (yylval.token == yaID__ETC
|
||||||
|| yylval.token == yaID__LEX
|
|| yylval.token == yaID__LEX
|
||||||
|| yylval.token == yaID__aTYPE) {
|
|| yylval.token == yaID__aTYPE) {
|
||||||
cout<<" strp='"<<*(yylval.strp)<<"'";
|
cout<<" strp='"<<*(yylval.strp)<<"'";
|
||||||
}
|
}
|
||||||
cout<<endl;
|
cout<<endl;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue