aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/parser.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2013-05-12 18:14:02 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2014-02-15 15:21:53 +0100
commit1f8d558597098f78aeba4ed5f70824f98dc60060 (patch)
treee3ed4e5f5fdb586ebda789d8516ec9473f5fb5ba /src/parser.h
parentabfabda5f54ac903bc990340a684e14e5e2b68a5 (diff)
downloadsciteco-1f8d558597098f78aeba4ed5f70824f98dc60060.tar.gz
removed most exception specifications: allow bad_allocs to propagate
* specifications resulted in runtime errors (unexpected exception) when bad_alloc ocurred * specs should be used scarcely: only when the errors that may be thrown are all known and for documentary purposes
Diffstat (limited to 'src/parser.h')
-rw-r--r--src/parser.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/parser.h b/src/parser.h
index a829b6d..76cd7c7 100644
--- a/src/parser.h
+++ b/src/parser.h
@@ -171,14 +171,14 @@ protected:
public:
State();
- static void input(gchar chr) throw (Error, ReplaceCmdline);
- State *get_next_state(gchar chr) throw (Error, ReplaceCmdline);
+ static void input(gchar chr);
+ State *get_next_state(gchar chr);
protected:
static bool eval_colon(void);
virtual State *
- custom(gchar chr) throw (Error, ReplaceCmdline)
+ custom(gchar chr)
{
throw SyntaxError(chr);
return NULL;
@@ -221,7 +221,7 @@ public:
set(StateStart);
}
- virtual Type input(gchar chr) throw (State::Error) = 0;
+ virtual Type input(gchar chr) = 0;
};
/* avoid circular dependency on qregisters.h */
@@ -246,7 +246,7 @@ public:
void reset(void);
- gchar *input(gchar chr) throw (State::Error);
+ gchar *input(gchar chr);
};
/*
@@ -268,12 +268,12 @@ public:
string_building(_building), last(_last) {}
private:
- State *custom(gchar chr) throw (Error, ReplaceCmdline);
+ State *custom(gchar chr);
protected:
- virtual void initial(void) throw (Error) {}
- virtual void process(const gchar *str, gint new_chars) throw (Error) {}
- virtual State *done(const gchar *str) throw (Error, ReplaceCmdline) = 0;
+ virtual void initial(void) {}
+ virtual void process(const gchar *str, gint new_chars) {}
+ virtual State *done(const gchar *str) = 0;
};
class StateExpectFile : public StateExpectString {
@@ -295,7 +295,7 @@ private:
tecoBool delete_words(tecoInt n);
- State *custom(gchar chr) throw (Error, ReplaceCmdline);
+ State *custom(gchar chr);
};
class StateControl : public State {
@@ -303,7 +303,7 @@ public:
StateControl();
private:
- State *custom(gchar chr) throw (Error);
+ State *custom(gchar chr);
};
class StateASCII : public State {
@@ -311,7 +311,7 @@ public:
StateASCII();
private:
- State *custom(gchar chr) throw (Error);
+ State *custom(gchar chr);
};
class StateFCommand : public State {
@@ -319,7 +319,7 @@ public:
StateFCommand();
private:
- State *custom(gchar chr) throw (Error);
+ State *custom(gchar chr);
};
class StateCondCommand : public State {
@@ -327,7 +327,7 @@ public:
StateCondCommand();
private:
- State *custom(gchar chr) throw (Error);
+ State *custom(gchar chr);
};
class StateECommand : public State {
@@ -335,7 +335,7 @@ public:
StateECommand();
private:
- State *custom(gchar chr) throw (Error);
+ State *custom(gchar chr);
};
class StateScintilla_symbols : public StateExpectString {
@@ -343,12 +343,12 @@ public:
StateScintilla_symbols() : StateExpectString(true, false) {}
private:
- State *done(const gchar *str) throw (Error);
+ State *done(const gchar *str);
};
class StateScintilla_lParam : public StateExpectString {
private:
- State *done(const gchar *str) throw (Error);
+ State *done(const gchar *str);
};
/*
@@ -356,9 +356,9 @@ private:
*/
class StateInsert : public StateExpectString {
protected:
- void initial(void) throw (Error);
- void process(const gchar *str, gint new_chars) throw (Error);
- State *done(const gchar *str) throw (Error);
+ void initial(void);
+ void process(const gchar *str, gint new_chars);
+ State *done(const gchar *str);
};
namespace States {