summaryrefslogtreecommitdiffabout
path: root/src/gram.y
Side-by-side diff
Diffstat (limited to 'src/gram.y') (more/less context) (ignore whitespace changes)
-rw-r--r--src/gram.y7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gram.y b/src/gram.y
index 9a6e3c2..2f6d7c0 100644
--- a/src/gram.y
+++ b/src/gram.y
@@ -168,13 +168,12 @@ value : string
slist : string
{
- $$.head = $$.tail = slist_new ($1);
+ $$.head = $$.tail = slist_new_s ($1);
}
| slist ',' string
{
- struct slist *s = slist_new ($3);
- $1.tail->next = s;
- $1.tail = s;
+ struct slist *s = slist_new_s ($3);
+ slist_insert (&$1.tail, s);
$$ = $1;
}
;

Return to:

Send suggestions and report system problems to the System administrator.