summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/patch/inp.h
diff options
context:
space:
mode:
authorgad <gad@FreeBSD.org>2002-04-28 01:33:45 +0000
committergad <gad@FreeBSD.org>2002-04-28 01:33:45 +0000
commitb200c6709f032c3ceaac65a061b2f1198173bd0c (patch)
tree7f720dcbd2c5958c3ebe9655a3d746b461a5aac7 /gnu/usr.bin/patch/inp.h
parent69091a8284855bbf8bc967d6baf599b1fbc7f077 (diff)
downloadFreeBSD-src-b200c6709f032c3ceaac65a061b2f1198173bd0c.zip
FreeBSD-src-b200c6709f032c3ceaac65a061b2f1198173bd0c.tar.gz
Add many prototypes and ANSI-ize 'patch. Not a complete job of it, but it gets
our patch to look a little more like NetBSD's, and has the nice characteristic that the object code is exactly the same after the change as before it (even in patch.c and pch.c, which have pesky 'assert' statements in them). Reviewed by: /sbin/md5 on i386, alpha, sparc64 MFC after: 3 days
Diffstat (limited to 'gnu/usr.bin/patch/inp.h')
-rw-r--r--gnu/usr.bin/patch/inp.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/gnu/usr.bin/patch/inp.h b/gnu/usr.bin/patch/inp.h
index f653a87..f1f0386 100644
--- a/gnu/usr.bin/patch/inp.h
+++ b/gnu/usr.bin/patch/inp.h
@@ -9,10 +9,10 @@
EXT LINENUM input_lines INIT(0); /* how long is input file in lines */
EXT LINENUM last_frozen_line INIT(0); /* how many input lines have been */
/* irretractibly output */
-
-bool rev_in_string();
-void scan_input();
-bool plan_a(); /* returns false if insufficient memory */
-void plan_b();
-char *ifetch();
+void re_input(void);
+void scan_input(char *_filename);
+bool plan_a(char *_filename);
+void plan_b(char *_filename);
+bool rev_in_string(char *_string);
+char *ifetch(LINENUM _line, int _whichbuf);
OpenPOWER on IntegriCloud