mercurial/thirdparty/xdiff/xdiff.h
changeset 36701 9e7b14caf67f
parent 36700 34e2ff1f9cd8
child 36702 b3c9c483cac9
equal deleted inserted replaced
36700:34e2ff1f9cd8 36701:9e7b14caf67f
    25 
    25 
    26 #ifdef __cplusplus
    26 #ifdef __cplusplus
    27 extern "C" {
    27 extern "C" {
    28 #endif /* #ifdef __cplusplus */
    28 #endif /* #ifdef __cplusplus */
    29 
    29 
       
    30 #include <stddef.h> /* size_t */
       
    31 
    30 /* xpparm_t.flags */
    32 /* xpparm_t.flags */
    31 #define XDF_NEED_MINIMAL (1 << 0)
    33 #define XDF_NEED_MINIMAL (1 << 0)
    32 
    34 
    33 #define XDF_IGNORE_WHITESPACE (1 << 1)
    35 #define XDF_IGNORE_WHITESPACE (1 << 1)
    34 #define XDF_IGNORE_WHITESPACE_CHANGE (1 << 2)
    36 #define XDF_IGNORE_WHITESPACE_CHANGE (1 << 2)
    38 			      XDF_IGNORE_WHITESPACE_CHANGE | \
    40 			      XDF_IGNORE_WHITESPACE_CHANGE | \
    39 			      XDF_IGNORE_WHITESPACE_AT_EOL | \
    41 			      XDF_IGNORE_WHITESPACE_AT_EOL | \
    40 			      XDF_IGNORE_CR_AT_EOL)
    42 			      XDF_IGNORE_CR_AT_EOL)
    41 
    43 
    42 #define XDF_IGNORE_BLANK_LINES (1 << 7)
    44 #define XDF_IGNORE_BLANK_LINES (1 << 7)
    43 
       
    44 #define XDF_PATIENCE_DIFF (1 << 14)
       
    45 #define XDF_HISTOGRAM_DIFF (1 << 15)
       
    46 #define XDF_DIFF_ALGORITHM_MASK (XDF_PATIENCE_DIFF | XDF_HISTOGRAM_DIFF)
       
    47 #define XDF_DIFF_ALG(x) ((x) & XDF_DIFF_ALGORITHM_MASK)
       
    48 
    45 
    49 #define XDF_INDENT_HEURISTIC (1 << 23)
    46 #define XDF_INDENT_HEURISTIC (1 << 23)
    50 
    47 
    51 /* xdemitconf_t.flags */
    48 /* xdemitconf_t.flags */
    52 #define XDL_EMIT_FUNCNAMES (1 << 0)
    49 #define XDL_EMIT_FUNCNAMES (1 << 0)