ports/devel/bisoncpp/files/patch-parser-parser.h
Gabor Pali 9205cdd2b3 The program bisonc++ creates a C++ parser function and -class having a
cleaner setup than the code generated by Alain Coetmeur's bison++.
Furthermore, since bisonc++ more closely follows current-day ideas about
C++ programming its code is easier to read.

WWW: http://bisoncpp.sourceforge.net/

Approved by:	tabthorpe
2009-03-09 16:23:46 +00:00

20 lines
677 B
C++

--- parser/parser.h.orig 2007-10-15 11:58:20.000000000 +0200
+++ parser/parser.h 2009-03-05 15:50:45.000000000 +0100
@@ -151,7 +151,7 @@
void multiplyDefined(Symbol const *sp);
void nestedBlock(Block &block); // define inner block as pseudo N
- std::string *newYYText() const; // make dynamic copy of YYText()
+ std::string *newYYText(); // make dynamic copy of YYText()
std::string nextHiddenName();
void noDefaultTypeWarning();
@@ -382,7 +382,7 @@
return d_stackDecl;
}
-inline std::string *Parser::newYYText() const
+inline std::string *Parser::newYYText()
{
return new std::string(d_scanner.YYText());
}