summaryrefslogtreecommitdiff
path: root/editors/uemacs/patches/patch-src_screen_c
blob: d17252d21796c2aad117d31c77288bc6d9302970 (plain)
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
$NetBSD: patch-src_screen_c,v 1.1 2012/05/10 20:53:30 dholland Exp $

- don't use implicit int
- declare void functions void

--- src/screen.c~	2012-05-10 19:25:36.000000000 +0000
+++ src/screen.c
@@ -66,7 +66,7 @@ SCREEN *sp;	/* screen image to refresh *
 	to A-N on machines with an ALT key
 */
 
-PASCAL NEAR cycle_screens(f, n)
+int PASCAL NEAR cycle_screens(f, n)
 
 int f,n;	/* prefix flag and argument */
 
@@ -82,7 +82,7 @@ int f,n;	/* prefix flag and argument */
 	return(select_screen(sp, TRUE));
 }
 
-PASCAL NEAR find_screen(f, n)
+int PASCAL NEAR find_screen(f, n)
 
 int f,n;	/* prefix flag and argument */
 
@@ -113,7 +113,7 @@ int f,n;	/* prefix flag and argument */
 	return(select_screen(sp, TRUE));
 }
 
-PASCAL NEAR free_screen(sp)	/* free all resouces associated with a screen */
+VOID PASCAL NEAR free_screen(sp)	/* free all resouces associated with a screen */
 
 SCREEN *sp;	/* screen to dump */
 
@@ -149,7 +149,7 @@ SCREEN *sp;	/* screen to dump */
 	free((char *) sp);
 }
 
-int PASCAL NEAR unlist_screen(sp)
+VOID PASCAL NEAR unlist_screen(sp)
 
 SCREEN *sp;         /* screen to remove from the list */
 {
@@ -164,7 +164,7 @@ SCREEN *sp;         /* screen to remove 
 	last_scr->s_next_screen = sp->s_next_screen;
 }
 
-PASCAL NEAR delete_screen(f, n)
+int PASCAL NEAR delete_screen(f, n)
 
 int f,n;	/* prefix flag and argument */
 
@@ -396,7 +396,7 @@ int announce;	/* announce the selection?
 	Bound to "A-B".
 */
 
-PASCAL NEAR list_screens(f, n)
+int PASCAL NEAR list_screens(f, n)
 
 int f,n;	/* prefix flag and argument */
 
@@ -418,7 +418,7 @@ int f,n;	/* prefix flag and argument */
  * is an error (if there is no memory). Iflag
  * indicates whether to list hidden screens.
  */
-PASCAL NEAR screenlist(iflag)
+int PASCAL NEAR screenlist(iflag)
 
 int iflag;	/* list hidden screen flag */