Internals: remove cfilename, no functional change

This commit is contained in:
Wilson Snyder 2010-01-19 18:59:45 -05:00
parent bded8755a1
commit 5d57263a15
2 changed files with 1 additions and 2 deletions

View File

@ -252,7 +252,6 @@ public:
string ascii() const;
const string filename () const { return m_filename; }
const string filebasename () const;
const char* cfilename () const { return m_filename.c_str(); }
const string profileFuncname() const;
void warnOff(V3ErrorCode code, bool flag) { m_warnOn.set(code,!flag); } // Turn on/off warning messages on this line.
bool warnOff(const string& code, bool flag); // Returns 1 if ok

View File

@ -93,7 +93,7 @@ psl [p]sl
/* Optional directives we recognize */
<INITIAL>"`__FILE__" { static string rtnfile;
rtnfile = '"'; rtnfile += LEXP->m_curFilelinep->cfilename();
rtnfile = '"'; rtnfile += LEXP->m_curFilelinep->filename().c_str();
rtnfile += '"'; yytext=(char*)rtnfile.c_str(); yyleng = rtnfile.length();
return (VP_STRING); }
<INITIAL>"`__LINE__" { static char buf[10];