Deleted Added
full compact
pch.h (265160) pch.h (267746)
1/*-
2 * Copyright 1986, Larry Wall
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following condition is met:
6 * 1. Redistributions of source code must retain the above copyright notice,
7 * this condition and the following disclaimer.
8 *

--- 10 unchanged lines hidden (view full) ---

19 * SUCH DAMAGE.
20 *
21 * patch - a program to apply diffs to original files
22 *
23 * -C option added in 1998, original code by Marc Espie, based on FreeBSD
24 * behaviour
25 *
26 * $OpenBSD: pch.h,v 1.9 2003/10/31 20:20:45 millert Exp $
1/*-
2 * Copyright 1986, Larry Wall
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following condition is met:
6 * 1. Redistributions of source code must retain the above copyright notice,
7 * this condition and the following disclaimer.
8 *

--- 10 unchanged lines hidden (view full) ---

19 * SUCH DAMAGE.
20 *
21 * patch - a program to apply diffs to original files
22 *
23 * -C option added in 1998, original code by Marc Espie, based on FreeBSD
24 * behaviour
25 *
26 * $OpenBSD: pch.h,v 1.9 2003/10/31 20:20:45 millert Exp $
27 * $FreeBSD: stable/10/usr.bin/patch/pch.h 265160 2014-04-30 20:39:08Z pfg $
27 * $FreeBSD: stable/10/usr.bin/patch/pch.h 267746 2014-06-22 20:24:17Z pfg $
28 */
29
30#define OLD_FILE 0
31#define NEW_FILE 1
32#define INDEX_FILE 2
33#define MAX_FILE 3
34
35struct file_name {
36 char *path;
37 bool exists;
38};
39
40void re_patch(void);
41void open_patch_file(const char *);
42void set_hunkmax(void);
43bool there_is_another_patch(void);
44bool another_hunk(void);
45bool pch_swap(void);
46char *pfetch(LINENUM);
28 */
29
30#define OLD_FILE 0
31#define NEW_FILE 1
32#define INDEX_FILE 2
33#define MAX_FILE 3
34
35struct file_name {
36 char *path;
37 bool exists;
38};
39
40void re_patch(void);
41void open_patch_file(const char *);
42void set_hunkmax(void);
43bool there_is_another_patch(void);
44bool another_hunk(void);
45bool pch_swap(void);
46char *pfetch(LINENUM);
47short pch_line_len(LINENUM);
47unsigned short pch_line_len(LINENUM);
48LINENUM pch_first(void);
49LINENUM pch_ptrn_lines(void);
50LINENUM pch_newfirst(void);
51LINENUM pch_repl_lines(void);
52LINENUM pch_end(void);
53LINENUM pch_context(void);
54LINENUM pch_hunk_beg(void);
55char pch_char(LINENUM);
56void do_ed_script(void);
48LINENUM pch_first(void);
49LINENUM pch_ptrn_lines(void);
50LINENUM pch_newfirst(void);
51LINENUM pch_repl_lines(void);
52LINENUM pch_end(void);
53LINENUM pch_context(void);
54LINENUM pch_hunk_beg(void);
55char pch_char(LINENUM);
56void do_ed_script(void);