Revision 9b0a0ba9 filter/filter.h

View differences:

filter/filter.h
16 16

  
17 17
struct f_inst {		/* Instruction */
18 18
  struct f_inst *next;	/* Structure is 16 bytes, anyway */
19
  u16 code;
20
  u16 aux;
19
  u16 code;		/* Instruction code, see the interpret() function and P() macro */
20
  u16 aux;		/* Extension to instruction code, T_*, EA_*, EAF_*  */
21 21
  union {
22 22
    int i;
23 23
    void *p;
24
  } a1;
24
  } a1;			/* The first argument */
25 25
  union {
26 26
    int i;
27 27
    void *p;
28
  } a2;
28
  } a2;			/* The second argument */
29 29
  int lineno;
30 30
};
31 31

  
......
55 55
};
56 56

  
57 57
struct f_val {
58
  int type;
58
  int type;		/* T_*  */
59 59
  union {
60 60
    uint i;
61 61
    u64 ec;
......
205 205

  
206 206
#define FF_FORCE_TMPATTR 1		/* Force all attributes to be temporary */
207 207

  
208
/* Bird Tests */
209
struct f_bt_test_suite {
210
  node n;			/* Node in config->tests */
211
  struct f_inst *fn;		/* Root of function */
212
  const char *fn_name;		/* Name of test */
213
  const char *dsc;		/* Description */
214
};
215

  
216
/* Hook for call bt_assert() function in configuration */
217
extern void (*bt_assert_hook)(int result, struct f_inst *assert);
218

  
208 219
#endif

Also available in: Unified diff