1 #ifndef MC__DIFFVIEW_INTERNAL_H
2 #define MC__DIFFVIEW_INTERNAL_H
4 #include "lib/global.h"
5 #include "lib/mcconfig.h"
6 #include "lib/search.h"
7 #include "lib/tty/color.h"
8 #include "lib/widget.h"
10 /*** typedefs(not structures) and defined constants **********************************************/
12 typedef int (*DFUNC
) (void *ctx
, int ch
, int line
, off_t off
, size_t sz
, const char *str
);
15 #define error_dialog(h, s) query_dialog (h, s, D_ERROR, 1, _ ("&Dismiss"))
17 /*** enums ***************************************************************************************/
41 /*** structures declarations (and typedefs of structures)*****************************************/
63 } BRACKET
[DIFF_COUNT
];
88 const char *args
; // Args passed to diff
89 const char *file
[DIFF_COUNT
]; // filenames
90 char *label
[DIFF_COUNT
];
92 const char *backup_sufix
;
93 gboolean merged
[DIFF_COUNT
];
94 GArray
*a
[DIFF_COUNT
];
96 int ndiff
; // number of hunks
97 DSRC dsrc
; // data source: memory or temporary file
99 gboolean view_quit
; // Quit flag
110 gboolean display_symbols
;
119 // converter for translation of text
126 gboolean strip_trailing_cr
;
127 gboolean ignore_tab_expansion
;
128 gboolean ignore_space_change
;
129 gboolean ignore_all_space
;
130 gboolean ignore_case
;
139 ssize_t last_found_line
;
140 ssize_t last_accessed_num_line
;
144 /*** global variables defined in .c file *********************************************************/
146 /*** declarations of public functions ************************************************************/
149 void dview_search_cmd (WDiff
*dview
);
150 void dview_continue_search_cmd (WDiff
*dview
);