annotate test/callback_suite/make-invokers.lua @ 152:d48a8b8d2ef9
- integrated all headers containing DCCallback definition into the translation units used (arm64 already avoided this pointless header, so following that style)
- some cleanups, removal of unnecessary includes, etc.
author |
cslag |
date |
Sat, 22 Oct 2016 15:55:54 +0200 |
parents |
3e629dc19168 |
children |
|
rev |
line source |
0
|
1 require "config"
|
|
2 local id = 1
|
|
3 for signature in io.lines() do
|
|
4 local nargs = string.len(signature) - 2
|
|
5 local rtype = string.sub(signature, nargs + 2, nargs + 2)
|
|
6 local outline = "F" .. nargs .. "(f" .. id .. "," .. rtype
|
|
7 for i = 1, nargs do
|
|
8 local type = string.sub(signature, i, i)
|
|
9 outline = outline .. "," .. type
|
|
10 end
|
|
11 outline = outline .. ")\n"
|
|
12 io.write( outline )
|
|
13 id = id + 1
|
|
14 end
|
|
15 io.flush()
|
|
16
|