Instantiate Parser::family once
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
@@ -38,6 +38,8 @@
|
|||||||
|
|
||||||
#include "parser.h"
|
#include "parser.h"
|
||||||
|
|
||||||
|
const Parser::StateFamily Parser::family;
|
||||||
|
|
||||||
static void append_or_delete( Parser::Action *act,
|
static void append_or_delete( Parser::Action *act,
|
||||||
std::list<Parser::Action *>&vec )
|
std::list<Parser::Action *>&vec )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
#include "parserstatefamily.h"
|
#include "parserstatefamily.h"
|
||||||
|
|
||||||
namespace Parser {
|
namespace Parser {
|
||||||
static const StateFamily family;
|
extern const StateFamily family;
|
||||||
|
|
||||||
class Parser {
|
class Parser {
|
||||||
private:
|
private:
|
||||||
|
|||||||
Reference in New Issue
Block a user