diff.c: associate a flag with each pattern and use it for compiling regex
[git/git.git] / xdiff-interface.h
CommitLineData
d9ea73e0
JH
1#ifndef XDIFF_INTERFACE_H
2#define XDIFF_INTERFACE_H
3
4#include "xdiff/xdiff.h"
5
6struct xdiff_emit_state;
7
8typedef void (*xdiff_emit_consume_fn)(void *, char *, unsigned long);
9
10struct xdiff_emit_state {
11 xdiff_emit_consume_fn consume;
12 char *remainder;
13 unsigned long remainder_size;
14};
15
c279d7e9 16int xdi_diff(mmfile_t *mf1, mmfile_t *mf2, xpparam_t const *xpp, xdemitconf_t const *xecfg, xdemitcb_t *ecb);
d9ea73e0 17int xdiff_outf(void *priv_, mmbuffer_t *mb, int nbuf);
c1e335a4 18int parse_hunk_header(char *line, int len,
a0fd3146
JH
19 int *ob, int *on,
20 int *nb, int *nn);
7cab5883 21int read_mmfile(mmfile_t *ptr, const char *filename);
6bfce93e 22int buffer_is_binary(const char *ptr, unsigned long size);
d9ea73e0 23
a013585b 24extern void xdiff_set_find_func(xdemitconf_t *xecfg, const char *line, int cflags);
f258475a 25
d9ea73e0 26#endif