40ebc209fb
Should also fix clang build. PKGREVISION++
97 lines
2.6 KiB
Text
97 lines
2.6 KiB
Text
$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 */
|
|
|