inp.h revision 246074
1246074Sgabor/* 2246074Sgabor * $FreeBSD: head/usr.bin/patch/inp.h 246074 2013-01-29 17:03:18Z gabor $ 3246074Sgabor * $OpenBSD: inp.h,v 1.8 2003/08/15 08:00:51 otto Exp $ 4246074Sgabor * $DragonFly: src/usr.bin/patch/inp.h,v 1.1 2004/09/24 18:44:28 joerg Exp $ 5246074Sgabor */ 6246074Sgabor 7246074Sgabor/* 8246074Sgabor * patch - a program to apply diffs to original files 9246074Sgabor * 10246074Sgabor * Copyright 1986, Larry Wall 11246074Sgabor * 12246074Sgabor * Redistribution and use in source and binary forms, with or without 13246074Sgabor * modification, are permitted provided that the following condition is met: 14246074Sgabor * 1. Redistributions of source code must retain the above copyright notice, 15246074Sgabor * this condition and the following disclaimer. 16246074Sgabor * 17246074Sgabor * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ANY 18246074Sgabor * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 19246074Sgabor * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 20246074Sgabor * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR 21246074Sgabor * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22246074Sgabor * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 23246074Sgabor * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 24246074Sgabor * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25246074Sgabor * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26246074Sgabor * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27246074Sgabor * SUCH DAMAGE. 28246074Sgabor * 29246074Sgabor * -C option added in 1998, original code by Marc Espie, based on FreeBSD 30246074Sgabor * behaviour 31246074Sgabor */ 32246074Sgabor 33246074Sgaborvoid re_input(void); 34246074Sgaborvoid scan_input(const char *); 35246074Sgaborchar *ifetch(LINENUM, int); 36