1/* reading patches */ 2 3/* $Id: pch.h,v 1.1.1.3 2003/05/08 18:38:03 rbraun Exp $ */ 4 5/* Copyright (C) 1986, 1987, 1988 Larry Wall 6 7 Copyright (C) 1990, 1991, 1992, 1993, 1997, 1998, 1999, 2000, 2001, 8 2002 Free Software Foundation, Inc. 9 10 This program is free software; you can redistribute it and/or modify 11 it under the terms of the GNU General Public License as published by 12 the Free Software Foundation; either version 2, or (at your option) 13 any later version. 14 15 This program is distributed in the hope that it will be useful, 16 but WITHOUT ANY WARRANTY; without even the implied warranty of 17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 GNU General Public License for more details. 19 20 You should have received a copy of the GNU General Public License 21 along with this program; see the file COPYING. 22 If not, write to the Free Software Foundation, 23 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ 24 25LINENUM pch_end (void); 26LINENUM pch_first (void); 27LINENUM pch_hunk_beg (void); 28LINENUM pch_newfirst (void); 29LINENUM pch_prefix_context (void); 30LINENUM pch_ptrn_lines (void); 31LINENUM pch_repl_lines (void); 32LINENUM pch_suffix_context (void); 33bool pch_swap (void); 34bool pch_write_line (LINENUM, FILE *); 35bool there_is_another_patch (void); 36char *pfetch (LINENUM); 37char pch_char (LINENUM); 38int another_hunk (enum diff, int); 39int pch_says_nonexistent (int); 40size_t pch_line_len (LINENUM); 41time_t pch_timestamp (int); 42void do_ed_script (FILE *); 43void open_patch_file (char const *); 44void re_patch (void); 45void set_hunkmax (void); 46