mirror of
https://github.com/stedolan/jq.git
synced 2024-05-11 05:55:39 +00:00
19 lines
419 B
C
19 lines
419 B
C
#include "builtin.h"
|
|
|
|
#include <jansson.h>
|
|
|
|
|
|
void f_false(json_t* input[], json_t* output[]) {
|
|
output[0] = json_false();
|
|
}
|
|
|
|
void f_true(json_t* input[], json_t* output[]) {
|
|
output[0] = json_true();
|
|
}
|
|
|
|
struct cfunction function_list[] = {
|
|
{f_true, "true", CALL_BUILTIN_1_1},
|
|
{f_false, "false", CALL_BUILTIN_1_1},
|
|
};
|
|
struct symbol_table builtins = {function_list, sizeof(function_list)/sizeof(function_list[0])};
|