summaryrefslogtreecommitdiff
path: root/editors/uemacs/patches/patch-src_region_c
blob: 4e69f985c3a62c3f2d992c3e578f9ecf25fc319c (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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
$NetBSD: patch-src_region_c,v 1.1 2012/05/10 20:53:30 dholland Exp $

- don't use implicit int
- const correctness required by existing const declarations

--- src/region.c~	2012-05-10 19:25:36.000000000 +0000
+++ src/region.c
@@ -51,7 +51,7 @@ int PASCAL NEAR reglines()
  * Move "." to the start, and kill the characters.
  * Bound to "C-W".
  */
-PASCAL NEAR killregion(f, n)
+int PASCAL NEAR killregion(f, n)
 
 int f,n;	/* prefix flag and argument */
 
@@ -87,7 +87,7 @@ int f,n;	/* prefix flag and argument */
  * at all. This is a bit like a kill region followed
  * by a yank. Bound to "M-W".
  */
-PASCAL NEAR copyregion(f, n)
+int PASCAL NEAR copyregion(f, n)
 
 int f,n;	/* prefix flag and argument */
 
@@ -129,7 +129,7 @@ int f,n;	/* prefix flag and argument */
  * redisplay is done in all buffers. Bound to
  * "C-X C-L".
  */
-PASCAL NEAR lowerregion(f, n)
+int PASCAL NEAR lowerregion(f, n)
 
 int f,n;	/* prefix flag and argument */
 
@@ -194,7 +194,7 @@ int f,n;	/* prefix flag and argument */
  * redisplay is done in all buffers. Bound to
  * "C-X C-L".
  */
-PASCAL NEAR upperregion(f, n)
+int PASCAL NEAR upperregion(f, n)
 
 int f,n;	/* prefix flag and argument */
 
@@ -255,7 +255,7 @@ int f,n;	/* prefix flag and argument */
 	the current buffer invisable and unchangable
 */
 
-PASCAL NEAR narrow(f, n)
+int PASCAL NEAR narrow(f, n)
 
 int f,n;	/* prefix flag and argument */
 
@@ -345,7 +345,7 @@ int f,n;	/* prefix flag and argument */
 
 /*	widen-from-region (^X->) restores a narrowed region	*/
 
-PASCAL NEAR widen(f, n)
+int PASCAL NEAR widen(f, n)
 
 int f,n;	/* prefix flag and argument */
 
@@ -438,7 +438,7 @@ int f,n;	/* prefix flag and argument */
  * "ABORT" status; we might make this have the confirm thing later.
  */
 
-PASCAL NEAR getregion(rp)
+int PASCAL NEAR getregion(rp)
 
 register REGION *rp;
 
@@ -530,7 +530,7 @@ REGION *region;
 	return buf;
 }
 
-char *PASCAL NEAR getreg(value) /* return some of the contents of the current region */
+CONST char *PASCAL NEAR getreg(value) /* return some of the contents of the current region */
 
 char *value;
 
@@ -548,7 +548,7 @@ char *value;
 }
 
 
-PASCAL NEAR indent_region(f, n) /* indent a region n tab-stops */
+int PASCAL NEAR indent_region(f, n) /* indent a region n tab-stops */
 
 int f,n;	/* default flag and numeric repeat count */
 
@@ -587,7 +587,7 @@ int f,n;	/* default flag and numeric rep
 	return(TRUE);
 }
 
-PASCAL NEAR undent_region(f, n) /* undent a region n tab-stops */
+int PASCAL NEAR undent_region(f, n) /* undent a region n tab-stops */
 
 int f,n;	/* default flag and numeric repeat count */