aboutsummaryrefslogtreecommitdiff
path: root/src/gram.y
diff options
context:
space:
mode:
Diffstat (limited to 'src/gram.y')
-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
@@ -165,19 +165,18 @@ value : string
$$ = kvpair_list (&@1, $2.head);
}
;
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;
}
;
string : T_IDENT
| T_WORD

Return to:

Send suggestions and report system problems to the System administrator.