88 lines
2 KiB
Text
88 lines
2 KiB
Text
$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 */
|