File: mkpreload.lua

package info (click to toggle)
notion 4.0.2%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,676 kB
  • sloc: ansic: 47,508; sh: 2,096; makefile: 603; perl: 270
file content (32 lines) | stat: -rw-r--r-- 483 bytes parent folder | download | duplicates (3)
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

io.stdout:write([[
/* Automatically generated. */

#include <ioncore/modules.h>

]]);

for _, v in ipairs(arg) do
    io.stdout:write(string.format([[
extern bool %s_init();
extern void %s_deinit();
]], v, v));

end

io.stdout:write([[

WStaticModuleInfo ioncore_static_modules[]={
]])

for _, v in ipairs(arg) do
    io.stdout:write(string.format(
        '    {"%s", %s_init, %s_deinit, FALSE},\n',
        v, v, v));
end

io.stdout:write([[
    {NULL, NULL, NULL, FALSE}
};
]])