
3 Dec
2014
3 Dec
'14
3:39 p.m.
Hi Martin,
On 1 December 2014 at 00:16, Martin Dorwig dorwig@tetronik.com wrote:
this is an atempt to make the export of functions typesafe. I replaced the jumptable void ** by a struct (jt_funcs) with function pointers. The EXPORT_FUNC macro now has 3 fixed parameters and one variadic parameter The first is the name of the exported function, the rest of the parameters are used to format a functionpointer in the jumptable,
the EXPORT_FUNC macros are expanded three times,
- to declare the members of the struct
- to initialize the structmember pointers
- to call the functions in stubs.c
Signed-off-by: Martin Dorwig dorwig@tetronik.com
Changes in v3:
If no one beats me to it, I should get to testing this by early next week.
Regards, Simon