1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00
stedolan-jq/c/execute.h

15 lines
261 B
C
Raw Normal View History

2012-08-16 01:00:30 +01:00
#include "opcode.h"
#define MAX_CFUNCTION_PARAM 10
typedef struct {
json_t* value;
int pathidx;
} stackval;
typedef void (*cfunction_ptr)(stackval* input, stackval* output);
struct cfunction {
cfunction_ptr fptr;
const char* name;
opcode callop;
};