summaryrefslogtreecommitdiffstats
path: root/src/statement.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2021-06-16 01:45:29 +0200
committerFlorian Westphal <fw@strlen.de>2021-06-21 14:44:58 +0200
commit4892fceea2b59415c9714293689f3f0d07ac5057 (patch)
tree3b41511008eaa8a5ca9f8817eba01cea2448e4be /src/statement.c
parent767f0af82a3896a9a643de281cb020d04a7b7cf0 (diff)
src: add queue expr and flags to queue_stmt_alloc
Preparation patch to avoid too much $<stmt>$ references in the parser. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src/statement.c')
-rw-r--r--src/statement.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/statement.c b/src/statement.c
index 7537c07f..a713952c 100644
--- a/src/statement.c
+++ b/src/statement.c
@@ -522,9 +522,15 @@ static const struct stmt_ops queue_stmt_ops = {
.destroy = queue_stmt_destroy,
};
-struct stmt *queue_stmt_alloc(const struct location *loc)
+struct stmt *queue_stmt_alloc(const struct location *loc, struct expr *e, uint16_t flags)
{
- return stmt_alloc(loc, &queue_stmt_ops);
+ struct stmt *stmt;
+
+ stmt = stmt_alloc(loc, &queue_stmt_ops);
+ stmt->queue.queue = e;
+ stmt->queue.flags = flags;
+
+ return stmt;
}
static void quota_stmt_print(const struct stmt *stmt, struct output_ctx *octx)