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)*****************************************/
64 } BRACKET
[DIFF_COUNT
];
89 const char *args
; /* Args passed to diff */
90 const char *file
[DIFF_COUNT
]; /* filenames */
91 char *label
[DIFF_COUNT
];
93 const char *backup_sufix
;
94 gboolean merged
[DIFF_COUNT
];
95 GArray
*a
[DIFF_COUNT
];
97 int ndiff
; /* number of hunks */
98 DSRC dsrc
; /* data source: memory or temporary file */
100 int view_quit
:1; /* Quit flag */
118 /* converter for translation of text */
123 gboolean strip_trailing_cr
;
124 gboolean ignore_tab_expansion
;
125 gboolean ignore_space_change
;
126 gboolean ignore_all_space
;
127 gboolean ignore_case
;
130 /* Search variables */
136 ssize_t last_found_line
;
137 ssize_t last_accessed_num_line
;
141 /*** global variables defined in .c file *********************************************************/
143 /*** declarations of public functions ************************************************************/
146 void dview_search_cmd (WDiff
* dview
);
147 void dview_continue_search_cmd (WDiff
* dview
);
149 #endif /* MC__DIFFVIEW_INTERNAL_H */