From 5be97463ecd4f93fdfbaec457d9100beeb9dc603 Mon Sep 17 00:00:00 2001 From: Stephen Dolan Date: Mon, 6 May 2013 14:21:00 +0100 Subject: Add a --arg option to allow variables to be passed from the cmdline. Closes #107 --- execute.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'execute.h') diff --git a/execute.h b/execute.h index 1cf14df7..004b66ba 100644 --- a/execute.h +++ b/execute.h @@ -3,8 +3,12 @@ #include "bytecode.h" + struct bytecode* jq_compile(const char* str); +/* args must be an array of the form [{name:"foo", value:"thing"}, {name:"bar",value:3}] */ +struct bytecode* jq_compile_args(const char* str, jv args); + typedef struct jq_state jq_state; enum {JQ_DEBUG_TRACE = 1}; -- cgit v1.2.3