1/*
2 * This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
5 *
6 * Copyright 1997 - July 2008 CWI, August 2008 - 2019 MonetDB B.V.
7 */
8
9#ifndef DIFFLIB_H
10#define DIFFLIB_H
11
12#ifdef NATIVE_WIN32
13#define STDERR stdout
14#else
15#define STDERR stderr
16#endif
17
18#ifdef DEBUG
19#define TRACE(x) do {fflush(stdout); x; fflush(STDERR);} while (0)
20#else
21#define TRACE(x)
22#endif
23
24
25FILE *oldnew2u_diff(int mindiff, int context, char *ignore, char *function, char *old_fn, char *new_fn);
26int oldnew2l_diff(int mindiff, int context, char *ignore, char *function, char *old_fn, char *new_fn, char *l_diff_fn);
27int oldnew2w_diff(int mindiff, int context, char *ignore, char *function, char *old_fn, char *new_fn, char *w_diff_fn);
28int oldnew2c_diff(int mindiff, int context, char *ignore, char *function, char *old_fn, char *new_fn, char *c_diff_fn);
29int oldnew2lwc_diff(int mindiff, int LWC, int context, char *ignore, char *function, char *old_fn, char *new_fn, char *lwc_diff_fn);
30
31int u_diff2l_diff(FILE *u_diff_fp, char *l_diff_fn);
32
33int l_diff2w_diff(int mindiff, char *l_diff_fn, char *w_diff_fn);
34int w_diff2c_diff(int mindiff, char *w_diff_fn, char *c_diff_fn);
35
36int oldnew2html(int mindiff, int LWC, int context, char *ignore, char *function, char *old_fn, char *new_fn, char *html_fn, char *caption, char *revision);
37int lwc_diff2html(char *old_fn, char *new_fn, char *lwc_diff_fn, char *html_fn, char *caption, char *revision);
38
39#endif /* DIFFLIB_H */
40