diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2013-03-18 23:12:41 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2013-03-18 23:12:41 +0100 |
commit | 735b4c4b743a774c5d53ab6a8e10f0f8308a925b (patch) | |
tree | 776d0e3ee6720193d54d927e30c6ec1abd60fef6 /src/parser.h | |
parent | ace94503b4572d854ae326273a3ecdc37d978400 (diff) | |
download | sciteco-735b4c4b743a774c5d53ab6a8e10f0f8308a925b.tar.gz |
explicitly instantiate MicroStateMachine: fixes compilation with gcc-4.4
Diffstat (limited to 'src/parser.h')
-rw-r--r-- | src/parser.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/parser.h b/src/parser.h index 42d777a..0af481f 100644 --- a/src/parser.h +++ b/src/parser.h @@ -116,9 +116,9 @@ protected: /* label pointers */ typedef const void *MicroState; const MicroState StateStart; -#define MICROSTATE_START G_STMT_START { \ - if (MicroStateMachine::state != StateStart) \ - goto *MicroStateMachine::state; \ +#define MICROSTATE_START G_STMT_START { \ + if (this->state != StateStart) \ + goto *this->state; \ } G_STMT_END MicroState state; @@ -157,7 +157,7 @@ class StringBuildingMachine : public MicroStateMachine<gchar *> { bool toctl; public: - StringBuildingMachine() : MicroStateMachine(), + StringBuildingMachine() : MicroStateMachine<gchar *>(), qregspec_machine(NULL), mode(MODE_NORMAL), toctl(false) {} ~StringBuildingMachine(); |