Epsilon is now static
This commit is contained in:
parent
f2def8fa05
commit
783be52ad9
1 changed files with 6 additions and 4 deletions
|
|
@ -12,9 +12,11 @@ static const HParserVtable epsilon_vt = {
|
|||
.parse = parse_epsilon,
|
||||
};
|
||||
|
||||
static const HParser epsilon_p = {
|
||||
.vtable = &epsilon_vt,
|
||||
.env = NULL
|
||||
};
|
||||
|
||||
const HParser* h_epsilon_p() {
|
||||
HParser *res = g_new(HParser, 1);
|
||||
res->vtable = &epsilon_vt;
|
||||
res->env = NULL;
|
||||
return res;
|
||||
return &epsilon_p;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue