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
|
--- main.cc.orig 1996-05-03 23:27:22.000000000 +1000
+++ main.cc 2003-10-08 23:03:15.000000000 +1000
@@ -132,13 +132,13 @@
void initcatchers()
{
- signal(SIGINT, DoQuit);
+ signal(SIGINT, (void (*)(int))DoQuit);
#ifdef SIGHUP
- signal(SIGHUP, DoQuit);
+ signal(SIGHUP, (void (*)(int))DoQuit);
#endif
- signal(SIGTERM, DoQuit);
+ signal(SIGTERM, (void (*)(int))DoQuit);
#ifdef SIGCHLD
- signal(SIGCHLD, ReapChild);
+ signal(SIGCHLD, (void (*)(int))ReapChild);
#endif
}
@@ -162,7 +162,7 @@
else {
Tk_Window tk = t.tkmain();
Tk_Uid uid = Tk_GetUid((char*)argv[1]);
- XFontStruct* p = Tk_GetFontStruct(t.interp(), tk, uid);
+ Tk_Font p = Tk_GetFont(t.interp(), tk, uid);
t.result(p != 0 ? "1" : "0");
}
return (TCL_OK);
|