comparison loader/qtx/qtxload.c @ 25589:276d47411414

Fix compilation by replacing a broken macro with in-place code. qtx/qtxload.c:16:1: error: pasting "*" and "ComponentDispatch" does not give a valid preprocessing token
author diego
date Sun, 06 Jan 2008 11:53:51 +0000
parents e60c8c7399d2
children 62959db3a504
comparison
equal deleted inserted replaced
25588:0f344d22ee48 25589:276d47411414
5 #include <string.h> 5 #include <string.h>
6 6
7 #include "qtxsdk/components.h" 7 #include "qtxsdk/components.h"
8 #include "qtxsdk/select.h" 8 #include "qtxsdk/select.h"
9 9
10 #define DEF_DISPATCHER(name) ComponentResult (*##name)(ComponentParameters *, void **)
11
12 /* ilyen egy sima komponens */ 10 /* ilyen egy sima komponens */
13 ComponentResult ComponentDummy( 11 ComponentResult ComponentDummy(
14 ComponentParameters *params, 12 ComponentParameters *params,
15 void **globals, 13 void **globals,
16 DEF_DISPATCHER(ComponentDispatch)) 14 ComponentResult (*ComponentDispatch)(ComponentParameters *, void **))
17 { 15 {
18 printf("ComponentDummy(params: %p, globals: %p, dispatcher: %p) called!\n", 16 printf("ComponentDummy(params: %p, globals: %p, dispatcher: %p) called!\n",
19 params, globals, ComponentDispatch); 17 params, globals, ComponentDispatch);
20 printf(" Dummy: global datas: %p\n", *globals); 18 printf(" Dummy: global datas: %p\n", *globals);
21 printf(" Dummy: returning 0\n"); 19 printf(" Dummy: returning 0\n");