xref: /netbsd-src/usr.bin/patch/pch.h (revision 1ca5c1b28139779176bd5c13ad7c5f25c0bcd5f8)
1 /*	$NetBSD: pch.h,v 1.4 1998/02/22 13:33:50 christos Exp $	*/
2 
3 EXT FILE *pfp INIT(Nullfp);		/* patch file pointer */
4 
5 void re_patch __P((void));
6 void open_patch_file __P((char *));
7 void set_hunkmax __P((void));
8 void grow_hunkmax __P((void));
9 bool there_is_another_patch __P((void));
10 int intuit_diff_type __P((void));
11 void next_intuit_at __P((long, long));
12 void skip_to __P((long, long));
13 bool another_hunk __P((void));
14 char *pgets __P((char *, int, FILE *));
15 bool pch_swap __P((void));
16 LINENUM pch_first __P((void));
17 LINENUM pch_ptrn_lines __P((void));
18 LINENUM pch_newfirst __P((void));
19 LINENUM pch_repl_lines __P((void));
20 LINENUM pch_end __P((void));
21 LINENUM pch_context __P((void));
22 short pch_line_len __P((LINENUM));
23 char pch_char __P((LINENUM));
24 char *pfetch __P((LINENUM));
25 LINENUM pch_hunk_beg __P((void));
26 void do_ed_script __P((void));
27