Lines 1-6
Link Here
|
1 |
--- src/lib/fte/x11.c.orig Wed Apr 14 21:44:56 1993 |
1 |
--- src/lib/fte/x11.c.orig 1993-04-14 19:44:56.000000000 +0000 |
2 |
+++ src/lib/fte/x11.c Sun Aug 15 19:06:31 2004 |
2 |
+++ src/lib/fte/x11.c 2011-07-26 23:16:48.000000000 +0000 |
3 |
@@ -120,7 +120,10 @@ |
3 |
@@ -36,6 +36,10 @@ |
|
|
4 |
extern int _Xdebug; |
5 |
# endif |
6 |
|
7 |
+void initlinestyles(void); |
8 |
+void initcolors(GRAPH *graph); |
9 |
+void slopelocation(GRAPH *graph, int x0, int y0;); |
10 |
+ |
11 |
/* forward declarations */ |
12 |
extern void handlebuttonev(), handlekeypressed(), killwin(), hardcopy(), |
13 |
redraw(), resize(); |
14 |
@@ -120,7 +124,10 @@ |
4 |
/* "invert" works better than "xor" for B&W */ |
15 |
/* "invert" works better than "xor" for B&W */ |
5 |
|
16 |
|
6 |
/* xor gc should be a function of the pixels that are written on */ |
17 |
/* xor gc should be a function of the pixels that are written on */ |
Lines 12-36
Link Here
|
12 |
gcvalues.line_width = 1; |
23 |
gcvalues.line_width = 1; |
13 |
gcvalues.foreground = 1; |
24 |
gcvalues.foreground = 1; |
14 |
gcvalues.background = 0; |
25 |
gcvalues.background = 0; |
15 |
@@ -302,7 +305,7 @@ |
26 |
@@ -152,7 +159,7 @@ |
|
|
27 |
{ |
28 |
XGetErrorText(display, errorev->error_code, ErrorMessage, 1024); |
29 |
externalerror(ErrorMessage); |
30 |
- return; |
31 |
+ return (0); |
32 |
} |
33 |
|
34 |
/* Recover from bad NewViewPort call. */ |
35 |
@@ -302,7 +309,8 @@ |
16 |
return (0); |
36 |
return (0); |
17 |
} |
37 |
} |
18 |
|
38 |
|
19 |
-static |
39 |
-static |
20 |
+/* PN static */ |
40 |
+/* PN static */ |
|
|
41 |
+void |
21 |
initlinestyles() |
42 |
initlinestyles() |
22 |
{ |
43 |
{ |
23 |
|
44 |
|
24 |
@@ -318,7 +321,7 @@ |
45 |
@@ -318,7 +326,8 @@ |
25 |
return; |
46 |
return; |
26 |
} |
47 |
} |
27 |
|
48 |
|
28 |
-static |
49 |
-static |
29 |
+/* PN static */ |
50 |
+/* PN static */ |
|
|
51 |
+void |
30 |
initcolors(graph) |
52 |
initcolors(graph) |
31 |
GRAPH *graph; |
53 |
GRAPH *graph; |
32 |
{ |
54 |
{ |
33 |
@@ -805,8 +808,9 @@ |
55 |
@@ -405,6 +414,7 @@ |
|
|
56 |
} |
57 |
|
58 |
/*ARGSUSED*/ |
59 |
+void |
60 |
X11_Arc(x0, y0, radius, theta1, theta2) |
61 |
int x0, y0, radius; |
62 |
double theta1, theta2; |
63 |
@@ -612,6 +622,7 @@ |
64 |
} |
65 |
# endif |
66 |
|
67 |
+void |
68 |
slopelocation(graph, x0, y0) |
69 |
GRAPH *graph; |
70 |
int x0, y0; /* initial position of mouse */ |
71 |
@@ -805,8 +816,9 @@ |
34 |
|
72 |
|
35 |
/* Iplots are done asynchronously */ |
73 |
/* Iplots are done asynchronously */ |
36 |
DEVDEP(graph).isopen = 0; |
74 |
DEVDEP(graph).isopen = 0; |
Lines 41-47
Link Here
|
41 |
|
79 |
|
42 |
} |
80 |
} |
43 |
|
81 |
|
44 |
@@ -942,7 +946,8 @@ |
82 |
@@ -915,6 +927,7 @@ |
|
|
83 |
} |
84 |
# endif |
85 |
|
86 |
+void |
87 |
X11_Input(request, response) |
88 |
REQUEST *request; |
89 |
RESPONSE *response; |
90 |
@@ -942,7 +955,8 @@ |
45 |
1 << ConnectionNumber(display); |
91 |
1 << ConnectionNumber(display); |
46 |
|
92 |
|
47 |
/* block on ConnectionNumber and request->fp */ |
93 |
/* block on ConnectionNumber and request->fp */ |
Lines 51-57
Link Here
|
51 |
|
97 |
|
52 |
/* handle X events first */ |
98 |
/* handle X events first */ |
53 |
if (readfds & (1 << ConnectionNumber(display))) { |
99 |
if (readfds & (1 << ConnectionNumber(display))) { |
54 |
@@ -995,7 +1000,8 @@ |
100 |
@@ -995,7 +1009,8 @@ |
55 |
|
101 |
|
56 |
} |
102 |
} |
57 |
|
103 |
|