Project

General

Profile

Download (567 Bytes) Statistics
| Branch: | Tag: | Revision:
1
#ifndef _ARROW
2
#define _ARROW
3

    
4
struct _arrow_mem {
5
  struct _arrow_reg {_Bool _first; } _reg;
6
};
7

    
8
extern struct _arrow_mem *_arrow_alloc ();
9

    
10
extern void _arrow_dealloc (struct _arrow_mem *);
11

    
12
#define _arrow_DECLARE(attr, inst)\
13
  attr struct _arrow_mem inst;
14
  
15
#define _arrow_LINK(inst) do {\
16
  ;\
17
} while (0)
18

    
19
#define _arrow_ALLOC(attr, inst)\
20
  _arrow_DECLARE(attr, inst);\
21
  _arrow_LINK(inst)
22

    
23
#define _arrow_init(self) {}
24

    
25
#define _arrow_clear(self) {}
26

    
27
#define _arrow_reset(self) {(self)->_reg._first = 1;}
28

    
29
_Bool _arrow_step(struct _arrow_mem *self);
30

    
31
#endif
(4-4/20)