mcst-linux-kernel/patches-2024.06.26/boolstuff-0.1.16/0001-Dynamic-exceptions.patch

85 lines
2.2 KiB
Diff

--- a/src/boolstuff/BoolExprParser.cpp 2024-04-19 21:00:15.750737499 +0300
+++ b/src/boolstuff/BoolExprParser.cpp 2024-04-19 21:10:00.206458794 +0300
@@ -62,7 +62,7 @@
BoolExpr<string> *
-BoolExprParser::parse(const std::string &expr) throw(Error)
+BoolExprParser::parse(const std::string &expr)
{
curInput = expr;
curIndex = 0;
@@ -75,7 +75,7 @@
BoolExpr<string> *
-BoolExprParser::parseExpr() throw(Error)
+BoolExprParser::parseExpr()
{
AutoPtr< BoolExpr<string> > left(parseTerm());
@@ -89,7 +89,7 @@
BoolExpr<string> *
-BoolExprParser::parseTerm() throw(Error)
+BoolExprParser::parseTerm()
{
AutoPtr< BoolExpr<string> > left(parseFactor());
@@ -103,7 +103,7 @@
BoolExpr<string> *
-BoolExprParser::parseFactor() throw(Error)
+BoolExprParser::parseFactor()
{
bool v = true;
while (tokenSeen("!"))
@@ -121,7 +121,7 @@
BoolExpr<string> *
-BoolExprParser::parseAtom() throw(Error)
+BoolExprParser::parseAtom()
{
skipSpaces();
size_t startIndex = curIndex;
@@ -142,7 +142,7 @@
BoolExpr<string> *
-BoolExprParser::parseIdentifier() throw(Error)
+BoolExprParser::parseIdentifier()
{
skipSpaces();
size_t inputLen = curInput.length();
--- a/src/boolstuff/BoolExprParser.h 2024-04-19 20:59:49.926751160 +0300
+++ b/src/boolstuff/BoolExprParser.h 2024-04-19 21:02:25.886670453 +0300
@@ -104,7 +104,7 @@
@returns the root of the created tree
@throws Error describes a parsing error
*/
- BoolExpr<std::string> *parse(const std::string &expr) throw(Error);
+ BoolExpr<std::string> *parse(const std::string &expr);
private:
@@ -112,11 +112,11 @@
size_t curIndex;
// Implementation methods:
- BoolExpr<std::string> *parseExpr() throw(Error);
- BoolExpr<std::string> *parseTerm() throw(Error);
- BoolExpr<std::string> *parseFactor() throw(Error);
- BoolExpr<std::string> *parseAtom() throw(Error);
- BoolExpr<std::string> *parseIdentifier() throw(Error);
+ BoolExpr<std::string> *parseExpr();
+ BoolExpr<std::string> *parseTerm();
+ BoolExpr<std::string> *parseFactor();
+ BoolExpr<std::string> *parseAtom();
+ BoolExpr<std::string> *parseIdentifier();
bool atEnd();
bool tokenSeen(const char *s);