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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
$NetBSD: patch-src_mouse_c,v 1.1 2012/05/10 20:53:30 dholland Exp $
- don't use implicit int
- declare void functions void
--- src/mouse.c~ 2012-05-10 19:25:36.000000000 +0000
+++ src/mouse.c
@@ -29,7 +29,7 @@ NOSHARE int lastmcmd = MNONE; /* Last mo
* of the text). If the mouse points at text then dot is
* moved to that location.
*/
-PASCAL NEAR movemd(f, n)
+int PASCAL NEAR movemd(f, n)
int f,n; /* prefix flag and argument */
@@ -86,7 +86,7 @@ int f,n; /* prefix flag and argument */
only if we are holding down the proper button
*/
-PASCAL NEAR mmove(f, n)
+int PASCAL NEAR mmove(f, n)
int f,n; /* prefix flag and argument */
@@ -146,7 +146,7 @@ int f,n; /* prefix flag and argument */
kill-region
*/
-PASCAL NEAR mregdown(f, n)
+int PASCAL NEAR mregdown(f, n)
int f,n; /* prefix flag and argument */
@@ -254,7 +254,7 @@ int f,n; /* prefix flag and argument */
3: reset nclicks to 0
*/
-PASCAL NEAR mregup(f, n)
+int PASCAL NEAR mregup(f, n)
int f,n; /* prefix flag and argument */
@@ -372,7 +372,7 @@ int f,n; /* prefix flag and argument */
* window scrolls. The code in this function is just
* too complex!
*/
-PASCAL NEAR movemu(f, n)
+int PASCAL NEAR movemu(f, n)
int f,n; /* prefix flag and argument */
@@ -568,7 +568,7 @@ register int row;
* LINE structure is pointed to by "lp".
*/
-PASCAL NEAR mouseoffset(wp, lp, col)
+int PASCAL NEAR mouseoffset(wp, lp, col)
register EWINDOW *wp;
register LINE *lp;
@@ -604,7 +604,7 @@ register int col;
return(offset);
}
-PASCAL NEAR mouse_screen()
+VOID PASCAL NEAR mouse_screen()
{
register SCREEN *screen_ptr; /* screen to test mouse in */
@@ -637,7 +637,7 @@ PASCAL NEAR mouse_screen()
}
}
-PASCAL NEAR ismodeline(wp, row)
+int PASCAL NEAR ismodeline(wp, row)
EWINDOW *wp;
int row;
@@ -659,7 +659,7 @@ int row;
let emacs know about the newsize, and have him force a re-draw
*/
-PASCAL NEAR resizm(f, n)
+int PASCAL NEAR resizm(f, n)
int f, n; /* these are ignored... we get the new size info from
the mouse driver */
|