Most of a C implementation of jq
This commit is contained in:
1 parent
eca89acee0
commit
2002dc1a2f
16 files changed
+1270
No files matched your search
+14
@@ -0,0 +1,14 @@
|
||||
#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;
|
||||
};
|
||||
Reference in new issue
Block a user