- 论坛徽章:
- 11
|
本帖最后由 zylthinking 于 2012-12-13 13:21 编辑
static __attribute__ ((weakref("stage"))) struct window* weak_stage(int uid, int ssid, int* x0, int* y0, int* x1, int* y1, int* z);
static int strong_stage_lock = 0;
struct window* stage_wrapper(int uid, int ssid, int* x0, int* y0, int* x1, int* y1, int* z)
{
struct default_wins* winsp = NULL;
if (x0 != NULL) {
struct window* win = NULL;
if (weak_stage == NULL) {
win = default_stage(uid, ssid, x0, y0, x1, y1, z);
} else {
lock(&strong_stage_lock);
win = weak_stage(uid, ssid, x0, y0, x1, y1, z);
if (win != NULL) {
int* intp = (int *) (win + 1);
++intp[0];
}
unlock(&strong_stage_lock);
}
。。。。。。。。。。。。。。。。
}
。。。。。。。。。。。。。
return NULL;
}
链接的时候报 找不到符号 _stage, 靠, 我要是必须提供, 我要你干什么 |
|