]> granicus.if.org Git - re2c/commitdiff
- Fixed #2186718 Unescaped backslash in file name of #line directive.
authorhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Sun, 23 Nov 2008 18:16:46 +0000 (18:16 +0000)
committerhelly <helly@642ea486-5414-0410-9d7f-a0204ed87703>
Sun, 23 Nov 2008 18:16:46 +0000 (18:16 +0000)
re2c/CHANGELOG
re2c/htdocs/index.html
re2c/stream_lc.h

index 641f9f8ce83db39bfbd731db5894c9dab99be669..490ff66706203985190053dbdac1fc860668c258 100644 (file)
@@ -1,8 +1,9 @@
 Version 0.13.6 (2008-??-??)
 ---------------------------
 - Fixed inplace configuration in -e mode.
+- Fixed #2186718 Unescaped backslash in file name of #line directive.
 - Fixed #2088583 Compile problemon AIX.
-- Fixed #2038610 ebcdic problem.
+- Fixed #2038610 Ebcdic problem.
 
 Version 0.13.5 (2008-05-25)
 ---------------------------
index e496737c11fed40ad6ebbdab5e973c756bb56872..0acde993faf2040587a4508ae5d1d5a1518be03f 100755 (executable)
@@ -84,8 +84,9 @@ fixes which were incorporated. <a href=
 <h2>2008-??-??: 0.13.6</h2>
 <ul>
 <li>Fixed inplace configuration in -e mode.</li>
+<li>Fixed #2186718 Unescaped backslash in file name of #line directive.</li>
 <li>Fixed #2088583 Compile problemon AIX.</li>
-<li>Fixed #2038610 ebcdic problem.</li>
+<li>Fixed #2038610 Ebcdic problem.</li>
 </ul>
 <h2>2008-05-25: 0.13.5</h2>
 <ul>
index 04cf7c2de78c93fc9a01a19f9c3eaa0b81cf53ca..feb3475ef49f2b138e09ca9587a380dc02473f83 100755 (executable)
@@ -422,9 +422,9 @@ public:
                return *this;
        }
 
-       void set_fname(const std::string& _fname)
+       void set_fname(const std::string& _fname, bool _escape = true)
        {
-               *(const_cast<std::string*>(&this->fname)) = _fname;
+               *(const_cast<std::string*>(&this->fname)) = _escape ? escape(_fname) : _fname;
        }
 
        const std::string  fname;