Data Structures | Macros | Typedefs | Functions
xdiffi.c File Reference
#include "xinclude.h"

Data Structures

struct  s_xdpsplit
 
struct  split_measurement
 
struct  split_score
 
struct  xdlgroup
 

Macros

#define XDL_MAX_COST_MIN   256
 
#define XDL_HEUR_MIN_COST   256
 
#define XDL_LINE_MAX   (long)((1UL << (CHAR_BIT * sizeof(long) - 1)) - 1)
 
#define XDL_SNAKE_CNT   20
 
#define XDL_K_HEUR   4
 
#define MAX_INDENT   200
 
#define MAX_BLANKS   20
 
#define START_OF_FILE_PENALTY   1
 
#define END_OF_FILE_PENALTY   21
 
#define TOTAL_BLANK_WEIGHT   (-30)
 
#define POST_BLANK_WEIGHT   6
 
#define RELATIVE_INDENT_PENALTY   (-4)
 
#define RELATIVE_INDENT_WITH_BLANK_PENALTY   10
 
#define RELATIVE_OUTDENT_PENALTY   24
 
#define RELATIVE_OUTDENT_WITH_BLANK_PENALTY   17
 
#define RELATIVE_DEDENT_PENALTY   23
 
#define RELATIVE_DEDENT_WITH_BLANK_PENALTY   17
 
#define INDENT_WEIGHT   60
 
#define INDENT_HEURISTIC_MAX_SLIDING   100
 

Typedefs

typedef struct s_xdpsplit xdpsplit_t
 

Functions

int xdl_recs_cmp (diffdata_t *dd1, long off1, long lim1, diffdata_t *dd2, long off2, long lim2, long *kvdf, long *kvdb, int need_min, xdalgoenv_t *xenv)
 
int xdl_do_diff (mmfile_t *mf1, mmfile_t *mf2, xpparam_t const *xpp, xdfenv_t *xe)
 
int xdl_change_compact (xdfile_t *xdf, xdfile_t *xdfo, long flags)
 
int xdl_build_script (xdfenv_t *xe, xdchange_t **xscr)
 
void xdl_free_script (xdchange_t *xscr)
 
int xdl_diff (mmfile_t *mf1, mmfile_t *mf2, xpparam_t const *xpp, xdemitconf_t const *xecfg, xdemitcb_t *ecb)
 

Macro Definition Documentation

#define END_OF_FILE_PENALTY   21
#define INDENT_HEURISTIC_MAX_SLIDING   100
#define INDENT_WEIGHT   60
#define MAX_BLANKS   20
#define MAX_INDENT   200
#define POST_BLANK_WEIGHT   6
#define RELATIVE_DEDENT_PENALTY   23
#define RELATIVE_DEDENT_WITH_BLANK_PENALTY   17
#define RELATIVE_INDENT_PENALTY   (-4)
#define RELATIVE_INDENT_WITH_BLANK_PENALTY   10
#define RELATIVE_OUTDENT_PENALTY   24
#define RELATIVE_OUTDENT_WITH_BLANK_PENALTY   17
#define START_OF_FILE_PENALTY   1
#define TOTAL_BLANK_WEIGHT   (-30)
#define XDL_HEUR_MIN_COST   256
#define XDL_K_HEUR   4
#define XDL_LINE_MAX   (long)((1UL << (CHAR_BIT * sizeof(long) - 1)) - 1)
#define XDL_MAX_COST_MIN   256
#define XDL_SNAKE_CNT   20

Typedef Documentation

typedef struct s_xdpsplit xdpsplit_t

Function Documentation

int xdl_build_script ( xdfenv_t xe,
xdchange_t **  xscr 
)
int xdl_change_compact ( xdfile_t xdf,
xdfile_t xdfo,
long  flags 
)
int xdl_diff ( mmfile_t mf1,
mmfile_t mf2,
xpparam_t const *  xpp,
xdemitconf_t const *  xecfg,
xdemitcb_t ecb 
)
int xdl_do_diff ( mmfile_t mf1,
mmfile_t mf2,
xpparam_t const *  xpp,
xdfenv_t xe 
)
void xdl_free_script ( xdchange_t xscr)
int xdl_recs_cmp ( diffdata_t dd1,
long  off1,
long  lim1,
diffdata_t dd2,
long  off2,
long  lim2,
long *  kvdf,
long *  kvdb,
int  need_min,
xdalgoenv_t xenv 
)