3 makesymbol
= function()
9 error("Expected input file");
14 local slot
= slots
[i
];
15 print("namespace slotdefs");
18 for j
=1,#(slot
.slots
) do
19 local xslot
= slot
.slots
[j
];
20 local ssym
= makesymbol();
21 local ssym2
= makesymbol();
22 table.insert(ssyms
, ssym2
);
24 s
= "\tstruct core_romimage_info_params "..ssym
.." = {";
25 s
= s
.. "\"" .. xslot
.iname
.. "\", ";
26 s
= s
.. "\"" .. xslot
.hname
.. "\", ";
27 s
= s
.. xslot
.mandatory
.. ", ";
28 s
= s
.. xslot
.mode
.. ", ";
29 s
= s
.. xslot
.header
;
32 print("\tcore_romimage_info "..ssym2
.."("..ssym
..");");
36 s
= "core_romimage_info* "..slot
.symbol
.."[] = {";
38 s
= s
.. "&slotdefs::" .. ssyms
[j
] .. ",";