~ubuntu-branches/ubuntu/edgy/git-core/edgy-backports

« back to all changes in this revision

Viewing changes to xdiff/xdiff.h

  • Committer: Package Import Robot
  • Author(s): LaMont Jones
  • Date: 2007-11-29 07:28:44 UTC
  • mfrom: (8.1.2 dapper-backports)
  • Revision ID: package-import@ubuntu.com-20071129072844-umsb7y3140yhxkth
Tags: 1:1.5.3.6-1.1~dapper1
* backport to dapper et al.
  - debian/rules changes to support source:Upstream-Version for old dpkg.
  - allow asciidoc (>7.0.2-3)

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
#define XDF_NEED_MINIMAL (1 << 1)
32
32
#define XDF_IGNORE_WHITESPACE (1 << 2)
33
33
#define XDF_IGNORE_WHITESPACE_CHANGE (1 << 3)
34
 
#define XDF_WHITESPACE_FLAGS (XDF_IGNORE_WHITESPACE | XDF_IGNORE_WHITESPACE_CHANGE)
 
34
#define XDF_IGNORE_WHITESPACE_AT_EOL (1 << 4)
 
35
#define XDF_WHITESPACE_FLAGS (XDF_IGNORE_WHITESPACE | XDF_IGNORE_WHITESPACE_CHANGE | XDF_IGNORE_WHITESPACE_AT_EOL)
35
36
 
36
37
#define XDL_PATCH_NORMAL '-'
37
38
#define XDL_PATCH_REVERSE '+'
49
50
#define XDL_BDOP_CPY 2
50
51
#define XDL_BDOP_INSB 3
51
52
 
 
53
#define XDL_MERGE_MINIMAL 0
 
54
#define XDL_MERGE_EAGER 1
 
55
#define XDL_MERGE_ZEALOUS 2
52
56
 
53
57
typedef struct s_mmfile {
54
58
        char *ptr;
69
73
        int (*outf)(void *, mmbuffer_t *, int);
70
74
} xdemitcb_t;
71
75
 
 
76
typedef long (*find_func_t)(const char *line, long line_len, char *buffer, long buffer_size, void *priv);
 
77
 
72
78
typedef struct s_xdemitconf {
73
79
        long ctxlen;
74
80
        unsigned long flags;
 
81
        find_func_t find_func;
 
82
        void *find_func_priv;
75
83
} xdemitconf_t;
76
84
 
77
85
typedef struct s_bdiffparam {
90
98
int xdl_diff(mmfile_t *mf1, mmfile_t *mf2, xpparam_t const *xpp,
91
99
             xdemitconf_t const *xecfg, xdemitcb_t *ecb);
92
100
 
 
101
int xdl_merge(mmfile_t *orig, mmfile_t *mf1, const char *name1,
 
102
                mmfile_t *mf2, const char *name2,
 
103
                xpparam_t const *xpp, int level, mmbuffer_t *result);
 
104
 
93
105
#ifdef __cplusplus
94
106
}
95
107
#endif /* #ifdef __cplusplus */
96
108
 
97
109
#endif /* #if !defined(XDIFF_H) */
98