summaryrefslogtreecommitdiffstats
path: root/src/builtin.h
blob: 38f3e54c9cd6c421ebafdfac83405ed3d9166214 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef BUILTIN_H
#define BUILTIN_H

#include "jq.h"
#include "bytecode.h"
#include "compile.h"

int builtins_bind(jq_state *, block*);

#define BINOPS \
  BINOP(plus) \
  BINOP(minus) \
  BINOP(multiply) \
  BINOP(divide) \
  BINOP(mod) \
  BINOP(equal) \
  BINOP(notequal) \
  BINOP(less) \
  BINOP(lesseq) \
  BINOP(greater) \
  BINOP(greatereq) \


#define BINOP(name) jv binop_ ## name(jv, jv);
BINOPS
#undef BINOP

#endif