aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/lustrev4_lustrec_heater_control/heater_control_alloc.h
blob: 270ed4a3fbfcfbb2181a9538071fb9374d499a7d (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/* C code generated by lustrec
   Version number 1.6-@GITBRANCH@
   Code is C99 compliant
   Using (double) floating-point numbers */
   
#ifndef _HEATER_CONTROL_alloc
#define _HEATER_CONTROL_alloc

/* Import header from heater_control */
#include "heater_control.h"

/* Import dependencies */

/* Struct definitions */
struct not_a_sauna2_mem {struct not_a_sauna2_reg {double __not_a_sauna2_2;
                                                  } _reg; 
                         struct _arrow_mem *ni_0;
                         };
struct heater_control_mem {struct heater_control_reg {_Bool __heater_control_16;
                                                      } _reg; 
                           struct _arrow_mem *ni_1;
                           };
struct not_a_sauna_mem {struct not_a_sauna_reg {double __not_a_sauna_2;
                                                } _reg; 
                        struct _arrow_mem *ni_2;
                        };

/* Node allocation function/macro prototypes */
#define not_a_sauna2_DECLARE(attr, inst)\
  attr struct not_a_sauna2_mem inst;\
  _arrow_DECLARE(attr, inst ## _ni_0);
  
#define not_a_sauna2_LINK(inst) do {\
  _arrow_LINK(inst ## _ni_0);\
  inst.ni_0 = &inst ## _ni_0;\
} while (0)

#define not_a_sauna2_ALLOC(attr, inst)\
  not_a_sauna2_DECLARE(attr, inst);\
  not_a_sauna2_LINK(inst);


#define heater_control_DECLARE(attr, inst)\
  attr struct heater_control_mem inst;\
  _arrow_DECLARE(attr, inst ## _ni_1);
  
#define heater_control_LINK(inst) do {\
  _arrow_LINK(inst ## _ni_1);\
  inst.ni_1 = &inst ## _ni_1;\
} while (0)

#define heater_control_ALLOC(attr, inst)\
  heater_control_DECLARE(attr, inst);\
  heater_control_LINK(inst);


#define not_a_sauna_DECLARE(attr, inst)\
  attr struct not_a_sauna_mem inst;\
  _arrow_DECLARE(attr, inst ## _ni_2);
  
#define not_a_sauna_LINK(inst) do {\
  _arrow_LINK(inst ## _ni_2);\
  inst.ni_2 = &inst ## _ni_2;\
} while (0)

#define not_a_sauna_ALLOC(attr, inst)\
  not_a_sauna_DECLARE(attr, inst);\
  not_a_sauna_LINK(inst);



#endif