diff options
author | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2019-12-11 20:10:18 +0000 |
---|---|---|
committer | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2019-12-11 20:10:18 +0000 |
commit | cf932135954afcf08b28b6e6fb1bbe6a878a7bf2 (patch) | |
tree | 58ec0e20d2dfa4a4c2ceafe653e5c61c1594fc9e /usr.bin | |
parent | d0610ce984ca651c7bf3d589da9492516770bbb5 (diff) |
Merge existing decls and decls introduced in rev 1.10
Also:
- sort declarations in the same order as definitions in pch.c
- delete an extra pfetch() declaration
ok tobias@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/patch/pch.h | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/usr.bin/patch/pch.h b/usr.bin/patch/pch.h index eb72d0df2e6..33670566e24 100644 --- a/usr.bin/patch/pch.h +++ b/usr.bin/patch/pch.h @@ -1,11 +1,4 @@ -/* $OpenBSD: pch.h,v 1.12 2019/12/09 12:08:42 jca Exp $ */ - -void next_intuit_at(off_t, LINENUM); -LINENUM strtolinenum(char *, char **); - -extern FILE *pfp; -extern LINENUM p_input_line; -int pgetline(char **, size_t *, FILE *); +/* $OpenBSD: pch.h,v 1.13 2019/12/11 20:10:17 jca Exp $ */ /* * patch - a program to apply diffs to original files @@ -43,20 +36,25 @@ struct file_name { bool exists; }; +extern FILE *pfp; +extern LINENUM p_input_line; + void re_patch(void); void open_patch_file(const char *); void set_hunkmax(void); bool there_is_another_patch(void); +void next_intuit_at(off_t, LINENUM); bool another_hunk(void); +int pgetline(char **, size_t *, FILE *); bool pch_swap(void); -char *pfetch(LINENUM); -short pch_line_len(LINENUM); 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); +short pch_line_len(LINENUM); char pch_char(LINENUM); char *pfetch(LINENUM); +LINENUM pch_hunk_beg(void); +LINENUM strtolinenum(char *, char **); |