summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjca <jca@openbsd.org>2019-12-11 20:10:17 +0000
committerjca <jca@openbsd.org>2019-12-11 20:10:17 +0000
commitdcdf3c0246abcc937e634ca86c326d4107ec7b97 (patch)
treedd461285234e89e42b1ca34cca1a06ed5a406e76
parentThe file passed to realpath(3) must exists, adjust man page to new (diff)
downloadwireguard-openbsd-dcdf3c0246abcc937e634ca86c326d4107ec7b97.tar.xz
wireguard-openbsd-dcdf3c0246abcc937e634ca86c326d4107ec7b97.zip
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@
-rw-r--r--usr.bin/patch/pch.h20
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 **);