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 ***************************************************************************************/
34 /*** structures declarations (and typedefs of structures)*****************************************/
82 const char *args
; /* Args passed to diff */
83 const char *file
[2]; /* filenames */
86 const char *backup_sufix
;
90 int ndiff
; /* number of hunks */
91 DSRC dsrc
; /* data source: memory or temporary file */
93 int view_quit
:1; /* Quit flag */
111 /* converter for translation of text */
116 gboolean strip_trailing_cr
;
117 gboolean ignore_tab_expansion
;
118 gboolean ignore_space_change
;
119 gboolean ignore_all_space
;
120 gboolean ignore_case
;
123 /* Search variables */
129 ssize_t last_found_line
;
130 ssize_t last_accessed_num_line
;
135 /*** global variables defined in .c file *********************************************************/
137 /*** declarations of public functions ************************************************************/
140 void dview_search_cmd (WDiff
* dview
);
141 void dview_continue_search_cmd (WDiff
* dview
);
144 void dview_update (WDiff
* dview
);
146 #endif /* MC__DIFFVIEW_INTERNAL_H */