From 5d57263a1585294e47ab2bd0f34bd11f812ce92f Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Tue, 19 Jan 2010 18:59:45 -0500 Subject: [PATCH] Internals: remove cfilename, no functional change --- src/V3Error.h | 1 - src/V3PreLex.l | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/V3Error.h b/src/V3Error.h index d39367724..4daebb7c1 100644 --- a/src/V3Error.h +++ b/src/V3Error.h @@ -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 diff --git a/src/V3PreLex.l b/src/V3PreLex.l index 3c80a84a6..b7780daa3 100644 --- a/src/V3PreLex.l +++ b/src/V3PreLex.l @@ -93,7 +93,7 @@ psl [p]sl /* Optional directives we recognize */ "`__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); } "`__LINE__" { static char buf[10];