Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec / optim / oversampling / oversampling0_alloc.h @ 6a93d814

History | View | Annotate | Download (1.11 KB)

1 6a93d814 xthirioux
/* C code generated by lustrec
2
   SVN version number 0.1-382M
3
   Code is C99 compliant */
4
   
5
#ifndef _OVERSAMPLING0_alloc
6
#define _OVERSAMPLING0_alloc
7
8
/* Import header from oversampling0 */
9
#include "oversampling0.h"
10
11
/* Import dependencies */
12
13
/* Struct definitions */
14
struct g_mem {struct g_reg {int __g_2; } _reg; struct _arrow_mem *ni_1; struct f_mem *ni_0; };
15
struct f_mem {struct f_reg {int __f_2; } _reg; struct _arrow_mem *ni_2; };
16
17
/* Node allocation function/macro prototypes */
18
#define g_DECLARE(attr, inst)\
19
  attr struct g_mem inst;\
20
  _arrow_DECLARE(attr, inst ## _ni_1);\
21
  f_DECLARE(attr, inst ## _ni_0);
22
  
23
#define g_LINK(inst) do {\
24
  _arrow_LINK(inst ## _ni_1);\
25
  inst.ni_1 = &inst ## _ni_1;\
26
  f_LINK(inst ## _ni_0);\
27
  inst.ni_0 = &inst ## _ni_0;\
28
} while (0)
29
30
#define g_ALLOC(attr,inst)\
31
  g_DECLARE(attr,inst);\
32
  g_LINK(inst);
33
34
35
#define f_DECLARE(attr, inst)\
36
  attr struct f_mem inst;\
37
  _arrow_DECLARE(attr, inst ## _ni_2);
38
  
39
#define f_LINK(inst) do {\
40
  _arrow_LINK(inst ## _ni_2);\
41
  inst.ni_2 = &inst ## _ni_2;\
42
} while (0)
43
44
#define f_ALLOC(attr,inst)\
45
  f_DECLARE(attr,inst);\
46
  f_LINK(inst);
47
48
49
50
#endif