diff options
author | gad <gad@FreeBSD.org> | 2002-04-28 01:33:45 +0000 |
---|---|---|
committer | gad <gad@FreeBSD.org> | 2002-04-28 01:33:45 +0000 |
commit | b200c6709f032c3ceaac65a061b2f1198173bd0c (patch) | |
tree | 7f720dcbd2c5958c3ebe9655a3d746b461a5aac7 /gnu/usr.bin/patch/pch.h | |
parent | 69091a8284855bbf8bc967d6baf599b1fbc7f077 (diff) | |
download | FreeBSD-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/pch.h')
-rw-r--r-- | gnu/usr.bin/patch/pch.h | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/gnu/usr.bin/patch/pch.h b/gnu/usr.bin/patch/pch.h index dc5aecb..d815fe8 100644 --- a/gnu/usr.bin/patch/pch.h +++ b/gnu/usr.bin/patch/pch.h @@ -11,26 +11,26 @@ EXT FILE *pfp INIT(Nullfp); /* patch file pointer */ -void re_patch(); -void open_patch_file(); -void set_hunkmax(); -void grow_hunkmax(); -bool there_is_another_patch(); -int intuit_diff_type(); -void next_intuit_at(); -void skip_to(); -bool another_hunk(); -bool pch_swap(); -char *pfetch(); -short pch_line_len(); -LINENUM pch_first(); -LINENUM pch_ptrn_lines(); -LINENUM pch_newfirst(); -LINENUM pch_repl_lines(); -LINENUM pch_end(); -LINENUM pch_context(); -LINENUM pch_hunk_beg(); -char pch_char(); -char *pfetch(); -char *pgets(); -void do_ed_script(); +void re_patch(void); +void open_patch_file(char *_filename); +void set_hunkmax(void); +void grow_hunkmax(void); +bool there_is_another_patch(void); +int intuit_diff_type(void); +void next_intuit_at(long _file_pos, long _file_line); +void skip_to(long _file_pos, long _file_line); +bool another_hunk(void); +bool pch_swap(void); +char *pfetch(LINENUM _line); +short pch_line_len(LINENUM _line); +LINENUM pch_first(void); +LINENUM pch_ptrn_lines(void); +LINENUM pch_newfirst(void); +LINENUM pch_repl_lines(void); +LINENUM pch_end(void); +LINENUM pch_context(void); +LINENUM pch_hunk_beg(void); +char pch_char(LINENUM _line); +char *pfetch(LINENUM _line); +char *pgets(char *_bf, int _sz, FILE *_fp); +void do_ed_script(void); |