mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-11-04 03:15:26 -07:00
small optimization
This commit is contained in:
1 parent
70566fc6d6
commit
1d1d1aad81
1 file changed
+1
-2
@@ -638,8 +638,7 @@ PgfBind *PgfExprParser::parse_bind(PgfBind *next)
|
|||||||
PgfBind *bind = (PgfBind *) malloc(sizeof(PgfBind)+var->size+1);
|
PgfBind *bind = (PgfBind *) malloc(sizeof(PgfBind)+var->size+1);
|
||||||
bind->bind_type = bind_type;
|
bind->bind_type = bind_type;
|
||||||
bind->next = last;
|
bind->next = last;
|
||||||
bind->var.size = var->size;
|
memcpy(&bind->var, var, sizeof(PgfText)+var->size+1);
|
||||||
memcpy(bind->var.text, var->text, var->size+1);
|
|
||||||
last = bind;
|
last = bind;
|
||||||
|
|
||||||
token();
|
token();
|
||||||
|
|||||||
Reference in new issue
Block a user