pch.h revision 1.9 1 1.9 itojun /* $NetBSD: pch.h,v 1.9 2003/07/12 13:47:44 itojun Exp $ */
2 1.9 itojun
3 1.9 itojun /*
4 1.9 itojun * Copyright (c) 1988, Larry Wall
5 1.9 itojun *
6 1.9 itojun * Redistribution and use in source and binary forms, with or without
7 1.9 itojun * modification, are permitted provided that the following condition
8 1.9 itojun * is met:
9 1.9 itojun * 1. Redistributions of source code must retain the above copyright
10 1.9 itojun * notice, this condition and the following disclaimer.
11 1.9 itojun *
12 1.9 itojun * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
13 1.9 itojun * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
14 1.9 itojun * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
15 1.9 itojun * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
16 1.9 itojun * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
17 1.9 itojun * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
18 1.9 itojun * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
19 1.9 itojun * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
20 1.9 itojun * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
21 1.9 itojun * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
22 1.9 itojun * SUCH DAMAGE.
23 1.9 itojun */
24 1.1 cgd
25 1.5 kristerw void re_patch(void);
26 1.5 kristerw void open_patch_file(char *);
27 1.5 kristerw void set_hunkmax(void);
28 1.5 kristerw void grow_hunkmax(void);
29 1.5 kristerw bool there_is_another_patch(void);
30 1.5 kristerw int intuit_diff_type(void);
31 1.8 kristerw void next_intuit_at(long, LINENUM);
32 1.8 kristerw void skip_to(long, LINENUM);
33 1.5 kristerw bool another_hunk(void);
34 1.5 kristerw char *pgets(char *, int, FILE *);
35 1.5 kristerw bool pch_swap(void);
36 1.5 kristerw LINENUM pch_first(void);
37 1.5 kristerw LINENUM pch_ptrn_lines(void);
38 1.5 kristerw LINENUM pch_newfirst(void);
39 1.5 kristerw LINENUM pch_repl_lines(void);
40 1.5 kristerw LINENUM pch_end(void);
41 1.5 kristerw LINENUM pch_context(void);
42 1.8 kristerw size_t pch_line_len(LINENUM);
43 1.5 kristerw char pch_char(LINENUM);
44 1.5 kristerw char *pfetch(LINENUM);
45 1.5 kristerw LINENUM pch_hunk_beg(void);
46 1.5 kristerw void do_ed_script(void);
47