dview 150 src/diffviewer/internal.h void dview_search_cmd (WDiff * dview); dview 151 src/diffviewer/internal.h void dview_continue_search_cmd (WDiff * dview); dview 75 src/diffviewer/search.c mcdiffview_dialog_search (WDiff *dview) dview 138 src/diffviewer/search.c g_free (dview->search.last_string); dview 139 src/diffviewer/search.c dview->search.last_string = exp; dview 147 src/diffviewer/search.c mcdiffview_do_search_backward (WDiff *dview) dview 151 src/diffviewer/search.c if (dview->search.last_accessed_num_line < 0) dview 153 src/diffviewer/search.c dview->search.last_accessed_num_line = -1; dview 157 src/diffviewer/search.c if ((size_t) dview->search.last_accessed_num_line >= dview->a[dview->ord]->len) dview 158 src/diffviewer/search.c dview->search.last_accessed_num_line = (ssize_t) dview->a[dview->ord]->len; dview 160 src/diffviewer/search.c for (ind = --dview->search.last_accessed_num_line; ind >= 0; ind--) dview 164 src/diffviewer/search.c p = (DIFFLN *) & g_array_index (dview->a[dview->ord], DIFFLN, (size_t) ind); dview 168 src/diffviewer/search.c if (mc_search_run (dview->search.handle, p->p, 0, p->u.len, NULL)) dview 170 src/diffviewer/search.c dview->skip_rows = dview->search.last_found_line = dview 171 src/diffviewer/search.c dview->search.last_accessed_num_line = ind; dview 182 src/diffviewer/search.c mcdiffview_do_search_forward (WDiff *dview) dview 186 src/diffviewer/search.c if (dview->search.last_accessed_num_line < 0) dview 187 src/diffviewer/search.c dview->search.last_accessed_num_line = -1; dview 188 src/diffviewer/search.c else if ((size_t) dview->search.last_accessed_num_line >= dview->a[dview->ord]->len) dview 190 src/diffviewer/search.c dview->search.last_accessed_num_line = (ssize_t) dview->a[dview->ord]->len; dview 194 src/diffviewer/search.c for (ind = (size_t) ++dview->search.last_accessed_num_line; ind < dview->a[dview->ord]->len; dview 199 src/diffviewer/search.c p = (DIFFLN *) & g_array_index (dview->a[dview->ord], DIFFLN, ind); dview 203 src/diffviewer/search.c if (mc_search_run (dview->search.handle, p->p, 0, p->u.len, NULL)) dview 205 src/diffviewer/search.c dview->skip_rows = dview->search.last_found_line = dview 206 src/diffviewer/search.c dview->search.last_accessed_num_line = (ssize_t) ind; dview 216 src/diffviewer/search.c mcdiffview_do_search (WDiff *dview) dview 224 src/diffviewer/search.c present_result = mcdiffview_do_search_backward (dview); dview 228 src/diffviewer/search.c present_result = mcdiffview_do_search_forward (dview); dview 235 src/diffviewer/search.c dview->search.last_found_line = -1; dview 245 src/diffviewer/search.c dview_search_cmd (WDiff *dview) dview 247 src/diffviewer/search.c if (dview->dsrc != DATA_SRC_MEM) dview 253 src/diffviewer/search.c if (!mcdiffview_dialog_search (dview)) dview 256 src/diffviewer/search.c mc_search_free (dview->search.handle); dview 258 src/diffviewer/search.c dview->search.handle = mc_search_new (dview->search.last_string, cp_source); dview 260 src/diffviewer/search.c dview->search.handle = mc_search_new (dview->search.last_string, NULL); dview 263 src/diffviewer/search.c if (dview->search.handle == NULL) dview 266 src/diffviewer/search.c dview->search.handle->search_type = mcdiffview_search_options.type; dview 268 src/diffviewer/search.c dview->search.handle->is_all_charsets = mcdiffview_search_options.all_codepages; dview 270 src/diffviewer/search.c dview->search.handle->is_case_sensitive = mcdiffview_search_options.case_sens; dview 271 src/diffviewer/search.c dview->search.handle->whole_words = mcdiffview_search_options.whole_words; dview 273 src/diffviewer/search.c mcdiffview_do_search (dview); dview 279 src/diffviewer/search.c dview_continue_search_cmd (WDiff *dview) dview 281 src/diffviewer/search.c if (dview->dsrc != DATA_SRC_MEM) dview 283 src/diffviewer/search.c else if (dview->search.handle == NULL) dview 284 src/diffviewer/search.c dview_search_cmd (dview); dview 286 src/diffviewer/search.c mcdiffview_do_search (dview); dview 1684 src/diffviewer/ydiff.c redo_diff (WDiff *dview) dview 1686 src/diffviewer/ydiff.c FBUF *const *f = dview->f; dview 1694 src/diffviewer/ydiff.c if (dview->opt.quality == 2) dview 1696 src/diffviewer/ydiff.c if (dview->opt.quality == 1) dview 1698 src/diffviewer/ydiff.c if (dview->opt.strip_trailing_cr) dview 1700 src/diffviewer/ydiff.c if (dview->opt.ignore_tab_expansion) dview 1702 src/diffviewer/ydiff.c if (dview->opt.ignore_space_change) dview 1704 src/diffviewer/ydiff.c if (dview->opt.ignore_all_space) dview 1706 src/diffviewer/ydiff.c if (dview->opt.ignore_case) dview 1709 src/diffviewer/ydiff.c if (dview->dsrc != DATA_SRC_MEM) dview 1716 src/diffviewer/ydiff.c ndiff = dff_execute (dview->args, extra, dview->file[DIFF_LEFT], dview->file[DIFF_RIGHT], ops); dview 1724 src/diffviewer/ydiff.c ctx.dsrc = dview->dsrc; dview 1725 src/diffviewer/ydiff.c ctx.a = dview->a[DIFF_LEFT]; dview 1727 src/diffviewer/ydiff.c rv |= dff_reparse (DIFF_LEFT, dview->file[DIFF_LEFT], ops, printer, &ctx); dview 1729 src/diffviewer/ydiff.c ctx.a = dview->a[DIFF_RIGHT]; dview 1731 src/diffviewer/ydiff.c rv |= dff_reparse (DIFF_RIGHT, dview->file[DIFF_RIGHT], ops, printer, &ctx); dview 1736 src/diffviewer/ydiff.c if (rv != 0 || dview->a[DIFF_LEFT]->len != dview->a[DIFF_RIGHT]->len) dview 1739 src/diffviewer/ydiff.c if (dview->dsrc == DATA_SRC_TMP) dview 1745 src/diffviewer/ydiff.c if (dview->dsrc == DATA_SRC_MEM && HDIFF_ENABLE) dview 1749 src/diffviewer/ydiff.c dview->hdiff = g_ptr_array_new (); dview 1751 src/diffviewer/ydiff.c for (i = 0; i < dview->a[DIFF_LEFT]->len; i++) dview 1757 src/diffviewer/ydiff.c p = &g_array_index (dview->a[DIFF_LEFT], DIFFLN, i); dview 1758 src/diffviewer/ydiff.c q = &g_array_index (dview->a[DIFF_RIGHT], DIFFLN, i); dview 1774 src/diffviewer/ydiff.c g_ptr_array_add (dview->hdiff, h); dview 1783 src/diffviewer/ydiff.c destroy_hdiff (WDiff *dview) dview 1785 src/diffviewer/ydiff.c if (dview->hdiff != NULL) dview 1790 src/diffviewer/ydiff.c len = dview->a[DIFF_LEFT]->len; dview 1796 src/diffviewer/ydiff.c h = (GArray *) g_ptr_array_index (dview->hdiff, i); dview 1800 src/diffviewer/ydiff.c g_ptr_array_free (dview->hdiff, TRUE); dview 1801 src/diffviewer/ydiff.c dview->hdiff = NULL; dview 1804 src/diffviewer/ydiff.c mc_search_free (dview->search.handle); dview 1805 src/diffviewer/ydiff.c dview->search.handle = NULL; dview 1806 src/diffviewer/ydiff.c MC_PTR_FREE (dview->search.last_string); dview 1921 src/diffviewer/ydiff.c get_current_hunk (WDiff *dview, int *start_line1, int *end_line1, int *start_line2, int *end_line2) dview 1923 src/diffviewer/ydiff.c const GArray *a0 = dview->a[DIFF_LEFT]; dview 1924 src/diffviewer/ydiff.c const GArray *a1 = dview->a[DIFF_RIGHT]; dview 1938 src/diffviewer/ydiff.c pos = dview->skip_rows; dview 1965 src/diffviewer/ydiff.c for (pos = dview->skip_rows; dview 1993 src/diffviewer/ydiff.c dview_remove_hunk (WDiff *dview, FILE *merge_file, int from1, int to1, dview 2001 src/diffviewer/ydiff.c f0 = fopen (dview->file[DIFF_RIGHT], "r"); dview 2003 src/diffviewer/ydiff.c f0 = fopen (dview->file[DIFF_LEFT], "r"); dview 2030 src/diffviewer/ydiff.c dview_add_hunk (WDiff *dview, FILE *merge_file, int from1, int from2, int to2, dview 2039 src/diffviewer/ydiff.c f0 = fopen (dview->file[DIFF_RIGHT], "r"); dview 2040 src/diffviewer/ydiff.c f1 = fopen (dview->file[DIFF_LEFT], "r"); dview 2044 src/diffviewer/ydiff.c f0 = fopen (dview->file[DIFF_LEFT], "r"); dview 2045 src/diffviewer/ydiff.c f1 = fopen (dview->file[DIFF_RIGHT], "r"); dview 2077 src/diffviewer/ydiff.c dview_replace_hunk (WDiff *dview, FILE *merge_file, int from1, int to1, int from2, int to2, dview 2086 src/diffviewer/ydiff.c f0 = fopen (dview->file[DIFF_RIGHT], "r"); dview 2087 src/diffviewer/ydiff.c f1 = fopen (dview->file[DIFF_LEFT], "r"); dview 2091 src/diffviewer/ydiff.c f0 = fopen (dview->file[DIFF_LEFT], "r"); dview 2092 src/diffviewer/ydiff.c f1 = fopen (dview->file[DIFF_RIGHT], "r"); dview 2122 src/diffviewer/ydiff.c do_merge_hunk (WDiff *dview, action_direction_t merge_direction) dview 2129 src/diffviewer/ydiff.c hunk = get_current_hunk (dview, &from2, &to2, &from1, &to1); dview 2131 src/diffviewer/ydiff.c hunk = get_current_hunk (dview, &from1, &to1, &from2, &to2); dview 2139 src/diffviewer/ydiff.c if (!dview->merged[n_merge]) dview 2141 src/diffviewer/ydiff.c dview->merged[n_merge] = mc_util_make_backup_if_possible (dview->file[n_merge], "~~~"); dview 2142 src/diffviewer/ydiff.c if (!dview->merged[n_merge]) dview 2146 src/diffviewer/ydiff.c dview->file[n_merge], "~~~", unix_error_string (errno)); dview 2165 src/diffviewer/ydiff.c dview_add_hunk (dview, merge_file, from1, from2, to2, FROM_RIGHT_TO_LEFT); dview 2167 src/diffviewer/ydiff.c dview_remove_hunk (dview, merge_file, from1, to1, FROM_LEFT_TO_RIGHT); dview 2171 src/diffviewer/ydiff.c dview_remove_hunk (dview, merge_file, from1, to1, FROM_RIGHT_TO_LEFT); dview 2173 src/diffviewer/ydiff.c dview_add_hunk (dview, merge_file, from1, from2, to2, FROM_LEFT_TO_RIGHT); dview 2176 src/diffviewer/ydiff.c dview_replace_hunk (dview, merge_file, from1, to1, from2, to2, merge_direction); dview 2186 src/diffviewer/ydiff.c res = rewrite_backup_content (merge_file_name_vpath, dview->file[n_merge]); dview 2198 src/diffviewer/ydiff.c dview_compute_split (WDiff *dview, int i) dview 2200 src/diffviewer/ydiff.c dview->bias += i; dview 2201 src/diffviewer/ydiff.c if (dview->bias < 2 - dview->half1) dview 2202 src/diffviewer/ydiff.c dview->bias = 2 - dview->half1; dview 2203 src/diffviewer/ydiff.c if (dview->bias > dview->half2 - 2) dview 2204 src/diffviewer/ydiff.c dview->bias = dview->half2 - 2; dview 2210 src/diffviewer/ydiff.c dview_compute_areas (WDiff *dview) dview 2212 src/diffviewer/ydiff.c Widget *w = WIDGET (dview); dview 2214 src/diffviewer/ydiff.c dview->height = w->rect.lines - 1; dview 2215 src/diffviewer/ydiff.c dview->half1 = w->rect.cols / 2; dview 2216 src/diffviewer/ydiff.c dview->half2 = w->rect.cols - dview->half1; dview 2218 src/diffviewer/ydiff.c dview_compute_split (dview, 0); dview 2224 src/diffviewer/ydiff.c dview_reread (WDiff *dview) dview 2228 src/diffviewer/ydiff.c destroy_hdiff (dview); dview 2229 src/diffviewer/ydiff.c if (dview->a[DIFF_LEFT] != NULL) dview 2230 src/diffviewer/ydiff.c g_array_free (dview->a[DIFF_LEFT], TRUE); dview 2231 src/diffviewer/ydiff.c if (dview->a[DIFF_RIGHT] != NULL) dview 2232 src/diffviewer/ydiff.c g_array_free (dview->a[DIFF_RIGHT], TRUE); dview 2234 src/diffviewer/ydiff.c dview->a[DIFF_LEFT] = g_array_new (FALSE, FALSE, sizeof (DIFFLN)); dview 2235 src/diffviewer/ydiff.c g_array_set_clear_func (dview->a[DIFF_LEFT], cc_free_elt); dview 2236 src/diffviewer/ydiff.c dview->a[DIFF_RIGHT] = g_array_new (FALSE, FALSE, sizeof (DIFFLN)); dview 2237 src/diffviewer/ydiff.c g_array_set_clear_func (dview->a[DIFF_RIGHT], cc_free_elt); dview 2239 src/diffviewer/ydiff.c ndiff = redo_diff (dview); dview 2241 src/diffviewer/ydiff.c dview->ndiff = ndiff; dview 2248 src/diffviewer/ydiff.c dview_set_codeset (WDiff *dview) dview 2252 src/diffviewer/ydiff.c dview->utf8 = TRUE; dview 2263 src/diffviewer/ydiff.c if (dview->converter != str_cnv_from_term) dview 2264 src/diffviewer/ydiff.c str_close_conv (dview->converter); dview 2265 src/diffviewer/ydiff.c dview->converter = conv; dview 2267 src/diffviewer/ydiff.c dview->utf8 = (gboolean) str_isutf8 (encoding_id); dview 2274 src/diffviewer/ydiff.c dview_select_encoding (WDiff *dview) dview 2277 src/diffviewer/ydiff.c dview_set_codeset (dview); dview 2278 src/diffviewer/ydiff.c dview_reread (dview); dview 2287 src/diffviewer/ydiff.c dview_load_options (WDiff *dview) dview 2292 src/diffviewer/ydiff.c dview->display_symbols = dview 2296 src/diffviewer/ydiff.c dview->display_numbers = 1; dview 2299 src/diffviewer/ydiff.c dview->tab_size = tab_size; dview 2301 src/diffviewer/ydiff.c dview->tab_size = 8; dview 2303 src/diffviewer/ydiff.c dview->opt.quality = mc_config_get_int (mc_global.main_config, "DiffView", "diff_quality", 0); dview 2305 src/diffviewer/ydiff.c dview->opt.strip_trailing_cr = dview 2307 src/diffviewer/ydiff.c dview->opt.ignore_all_space = dview 2309 src/diffviewer/ydiff.c dview->opt.ignore_space_change = dview 2311 src/diffviewer/ydiff.c dview->opt.ignore_tab_expansion = dview 2313 src/diffviewer/ydiff.c dview->opt.ignore_case = dview 2316 src/diffviewer/ydiff.c dview->new_frame = TRUE; dview 2322 src/diffviewer/ydiff.c dview_save_options (WDiff *dview) dview 2324 src/diffviewer/ydiff.c mc_config_set_bool (mc_global.main_config, "DiffView", "show_symbols", dview->display_symbols); dview 2326 src/diffviewer/ydiff.c dview->display_numbers != 0); dview 2327 src/diffviewer/ydiff.c mc_config_set_int (mc_global.main_config, "DiffView", "tab_size", dview->tab_size); dview 2329 src/diffviewer/ydiff.c mc_config_set_int (mc_global.main_config, "DiffView", "diff_quality", dview->opt.quality); dview 2332 src/diffviewer/ydiff.c dview->opt.strip_trailing_cr); dview 2334 src/diffviewer/ydiff.c dview->opt.ignore_all_space); dview 2336 src/diffviewer/ydiff.c dview->opt.ignore_space_change); dview 2338 src/diffviewer/ydiff.c dview->opt.ignore_tab_expansion); dview 2340 src/diffviewer/ydiff.c dview->opt.ignore_case); dview 2346 src/diffviewer/ydiff.c dview_diff_options (WDiff *dview) dview 2357 src/diffviewer/ydiff.c QUICK_RADIO (3, (const char **) quality_str, (int *) &dview->opt.quality, NULL), dview 2360 src/diffviewer/ydiff.c QUICK_CHECKBOX (N_("&Ignore case"), &dview->opt.ignore_case, NULL), dview 2361 src/diffviewer/ydiff.c QUICK_CHECKBOX (N_("Ignore tab &expansion"), &dview->opt.ignore_tab_expansion, NULL), dview 2362 src/diffviewer/ydiff.c QUICK_CHECKBOX (N_("Ignore &space change"), &dview->opt.ignore_space_change, NULL), dview 2363 src/diffviewer/ydiff.c QUICK_CHECKBOX (N_("Ignore all &whitespace"), &dview->opt.ignore_all_space, NULL), dview 2364 src/diffviewer/ydiff.c QUICK_CHECKBOX (N_("Strip &trailing carriage return"), &dview->opt.strip_trailing_cr, dview 2380 src/diffviewer/ydiff.c dview_reread (dview); dview 2386 src/diffviewer/ydiff.c dview_init (WDiff *dview, const char *args, const char *file1, const char *file2, dview 2421 src/diffviewer/ydiff.c dview->view_quit = FALSE; dview 2423 src/diffviewer/ydiff.c dview->bias = 0; dview 2424 src/diffviewer/ydiff.c dview->new_frame = TRUE; dview 2425 src/diffviewer/ydiff.c dview->skip_rows = 0; dview 2426 src/diffviewer/ydiff.c dview->skip_cols = 0; dview 2427 src/diffviewer/ydiff.c dview->display_symbols = FALSE; dview 2428 src/diffviewer/ydiff.c dview->display_numbers = 0; dview 2429 src/diffviewer/ydiff.c dview->show_cr = TRUE; dview 2430 src/diffviewer/ydiff.c dview->tab_size = 8; dview 2431 src/diffviewer/ydiff.c dview->ord = DIFF_LEFT; dview 2432 src/diffviewer/ydiff.c dview->full = FALSE; dview 2434 src/diffviewer/ydiff.c dview->search.handle = NULL; dview 2435 src/diffviewer/ydiff.c dview->search.last_string = NULL; dview 2436 src/diffviewer/ydiff.c dview->search.last_found_line = -1; dview 2437 src/diffviewer/ydiff.c dview->search.last_accessed_num_line = -1; dview 2439 src/diffviewer/ydiff.c dview_load_options (dview); dview 2441 src/diffviewer/ydiff.c dview->args = args; dview 2442 src/diffviewer/ydiff.c dview->file[DIFF_LEFT] = file1; dview 2443 src/diffviewer/ydiff.c dview->file[DIFF_RIGHT] = file2; dview 2444 src/diffviewer/ydiff.c dview->label[DIFF_LEFT] = g_strdup (label1); dview 2445 src/diffviewer/ydiff.c dview->label[DIFF_RIGHT] = g_strdup (label2); dview 2446 src/diffviewer/ydiff.c dview->f[DIFF_LEFT] = f[0]; dview 2447 src/diffviewer/ydiff.c dview->f[DIFF_RIGHT] = f[1]; dview 2448 src/diffviewer/ydiff.c dview->merged[DIFF_LEFT] = FALSE; dview 2449 src/diffviewer/ydiff.c dview->merged[DIFF_RIGHT] = FALSE; dview 2450 src/diffviewer/ydiff.c dview->hdiff = NULL; dview 2451 src/diffviewer/ydiff.c dview->dsrc = dsrc; dview 2453 src/diffviewer/ydiff.c dview->converter = str_cnv_from_term; dview 2454 src/diffviewer/ydiff.c dview_set_codeset (dview); dview 2456 src/diffviewer/ydiff.c dview->a[DIFF_LEFT] = g_array_new (FALSE, FALSE, sizeof (DIFFLN)); dview 2457 src/diffviewer/ydiff.c g_array_set_clear_func (dview->a[DIFF_LEFT], cc_free_elt); dview 2458 src/diffviewer/ydiff.c dview->a[DIFF_RIGHT] = g_array_new (FALSE, FALSE, sizeof (DIFFLN)); dview 2459 src/diffviewer/ydiff.c g_array_set_clear_func (dview->a[DIFF_RIGHT], cc_free_elt); dview 2467 src/diffviewer/ydiff.c dview_fini (WDiff *dview) dview 2469 src/diffviewer/ydiff.c if (dview->dsrc != DATA_SRC_MEM) dview 2471 src/diffviewer/ydiff.c dview_fclose (dview->f[DIFF_RIGHT]); dview 2472 src/diffviewer/ydiff.c dview_fclose (dview->f[DIFF_LEFT]); dview 2476 src/diffviewer/ydiff.c if (dview->converter != str_cnv_from_term) dview 2477 src/diffviewer/ydiff.c str_close_conv (dview->converter); dview 2480 src/diffviewer/ydiff.c destroy_hdiff (dview); dview 2481 src/diffviewer/ydiff.c if (dview->a[DIFF_LEFT] != NULL) dview 2483 src/diffviewer/ydiff.c g_array_free (dview->a[DIFF_LEFT], TRUE); dview 2484 src/diffviewer/ydiff.c dview->a[DIFF_LEFT] = NULL; dview 2486 src/diffviewer/ydiff.c if (dview->a[DIFF_RIGHT] != NULL) dview 2488 src/diffviewer/ydiff.c g_array_free (dview->a[DIFF_RIGHT], TRUE); dview 2489 src/diffviewer/ydiff.c dview->a[DIFF_RIGHT] = NULL; dview 2492 src/diffviewer/ydiff.c g_free (dview->label[DIFF_LEFT]); dview 2493 src/diffviewer/ydiff.c g_free (dview->label[DIFF_RIGHT]); dview 2499 src/diffviewer/ydiff.c dview_display_file (const WDiff *dview, diff_place_t ord, int r, int c, int height, int width) dview 2504 src/diffviewer/ydiff.c FBUF *f = dview->f[ord]; dview 2505 src/diffviewer/ydiff.c int skip = dview->skip_cols; dview 2506 src/diffviewer/ydiff.c gboolean display_symbols = dview->display_symbols; dview 2507 src/diffviewer/ydiff.c int display_numbers = dview->display_numbers; dview 2508 src/diffviewer/ydiff.c gboolean show_cr = dview->show_cr; dview 2517 src/diffviewer/ydiff.c if (dview->tab_size > 0 && dview->tab_size < 9) dview 2518 src/diffviewer/ydiff.c tab_size = dview->tab_size; dview 2546 src/diffviewer/ydiff.c for (i = dview->skip_rows, j = 0; i < dview->a[ord]->len && j < height; j++, i++) dview 2553 src/diffviewer/ydiff.c p = (DIFFLN *) & g_array_index (dview->a[ord], DIFFLN, i); dview 2575 src/diffviewer/ydiff.c if (i == (size_t) dview->search.last_found_line) dview 2577 src/diffviewer/ydiff.c else if (dview->hdiff != NULL && g_ptr_array_index (dview->hdiff, i) != NULL) dview 2582 src/diffviewer/ydiff.c if (dview->utf8) dview 2589 src/diffviewer/ydiff.c g_ptr_array_index (dview->hdiff, i), ord, att); dview 2598 src/diffviewer/ydiff.c if (dview->utf8) dview 2618 src/diffviewer/ydiff.c if (!dview->utf8) dview 2622 src/diffviewer/ydiff.c dview->converter); dview 2625 src/diffviewer/ydiff.c else if (dview->utf8) dview 2626 src/diffviewer/ydiff.c next_ch = convert_from_utf_to_current_c (next_ch, dview->converter); dview 2641 src/diffviewer/ydiff.c if (dview->utf8) dview 2673 src/diffviewer/ydiff.c if (dview->utf8) dview 2692 src/diffviewer/ydiff.c if (!dview->utf8) dview 2694 src/diffviewer/ydiff.c convert_from_8bit_to_utf_c ((unsigned char) next_ch, dview->converter); dview 2696 src/diffviewer/ydiff.c else if (dview->utf8) dview 2697 src/diffviewer/ydiff.c next_ch = convert_from_utf_to_current_c (next_ch, dview->converter); dview 2731 src/diffviewer/ydiff.c dview_status (const WDiff *dview, diff_place_t ord, int width, int c) dview 2742 src/diffviewer/ydiff.c get_line_numbers (dview->a[ord], dview->skip_rows, &linenum, &lineofs); dview 2748 src/diffviewer/ydiff.c vpath = vfs_path_from_str (dview->label[ord]); dview 2753 src/diffviewer/ydiff.c tty_printf ("%s%-*s %6d+%-4d Col %-4d ", dview->merged[ord] ? "* " : " ", filename_width, dview 2754 src/diffviewer/ydiff.c buf, linenum, lineofs, dview->skip_cols); dview 2756 src/diffviewer/ydiff.c tty_printf ("%s%-*s %6d+%-4d Dif %-4d ", dview->merged[ord] ? "* " : " ", filename_width, dview 2757 src/diffviewer/ydiff.c buf, linenum, lineofs, dview->ndiff); dview 2764 src/diffviewer/ydiff.c dview_redo (WDiff *dview) dview 2766 src/diffviewer/ydiff.c if (dview->display_numbers != 0) dview 2770 src/diffviewer/ydiff.c old = dview->display_numbers; dview 2771 src/diffviewer/ydiff.c dview->display_numbers = calc_nwidth ((const GArray * const *) dview->a); dview 2772 src/diffviewer/ydiff.c dview->new_frame = (old != dview->display_numbers); dview 2774 src/diffviewer/ydiff.c dview_reread (dview); dview 2780 src/diffviewer/ydiff.c dview_update (WDiff *dview) dview 2782 src/diffviewer/ydiff.c int height = dview->height; dview 2786 src/diffviewer/ydiff.c last = dview->a[DIFF_LEFT]->len - 1; dview 2788 src/diffviewer/ydiff.c if (dview->skip_rows > last) dview 2789 src/diffviewer/ydiff.c dview->skip_rows = dview->search.last_accessed_num_line = last; dview 2790 src/diffviewer/ydiff.c if (dview->skip_rows < 0) dview 2791 src/diffviewer/ydiff.c dview->skip_rows = dview->search.last_accessed_num_line = 0; dview 2792 src/diffviewer/ydiff.c if (dview->skip_cols < 0) dview 2793 src/diffviewer/ydiff.c dview->skip_cols = 0; dview 2799 src/diffviewer/ydiff.c if (dview->display_numbers != 0) dview 2800 src/diffviewer/ydiff.c dview->display_numbers = calc_nwidth ((const GArray * const *) dview->a); dview 2802 src/diffviewer/ydiff.c width1 = dview->half1 + dview->bias; dview 2803 src/diffviewer/ydiff.c width2 = dview->half2 - dview->bias; dview 2804 src/diffviewer/ydiff.c if (dview->full) dview 2810 src/diffviewer/ydiff.c if (dview->new_frame) dview 2815 src/diffviewer/ydiff.c xwidth = dview->display_numbers; dview 2816 src/diffviewer/ydiff.c if (dview->display_symbols) dview 2843 src/diffviewer/ydiff.c dview->new_frame = FALSE; dview 2848 src/diffviewer/ydiff.c dview_status (dview, dview->ord, width1, 0); dview 2849 src/diffviewer/ydiff.c dview_display_file (dview, dview->ord, 2, 1, height - 2, width1 - 2); dview 2855 src/diffviewer/ydiff.c ord = dview->ord == DIFF_LEFT ? DIFF_RIGHT : DIFF_LEFT; dview 2856 src/diffviewer/ydiff.c dview_status (dview, ord, width2, width1); dview 2857 src/diffviewer/ydiff.c dview_display_file (dview, ord, 2, width1 + 1, height - 2, width2 - 2); dview 2864 src/diffviewer/ydiff.c dview_edit (WDiff *dview, diff_place_t ord) dview 2870 src/diffviewer/ydiff.c if (dview->dsrc == DATA_SRC_TMP) dview 2876 src/diffviewer/ydiff.c h = WIDGET (WIDGET (dview)->owner); dview 2879 src/diffviewer/ydiff.c get_line_numbers (dview->a[ord], dview->skip_rows, &linenum, &lineofs); dview 2887 src/diffviewer/ydiff.c tmp_vpath = vfs_path_from_str (dview->file[ord]); dview 2893 src/diffviewer/ydiff.c dview_redo (dview); dview 2894 src/diffviewer/ydiff.c dview_update (dview); dview 2900 src/diffviewer/ydiff.c dview_goto_cmd (WDiff *dview, diff_place_t ord) dview 2926 src/diffviewer/ydiff.c for (; i < dview->a[ord]->len; i++) dview 2930 src/diffviewer/ydiff.c p = &g_array_index (dview->a[ord], DIFFLN, i); dview 2935 src/diffviewer/ydiff.c dview->skip_rows = dview->search.last_accessed_num_line = (ssize_t) i; dview 2947 src/diffviewer/ydiff.c dview_labels (WDiff *dview) dview 2949 src/diffviewer/ydiff.c Widget *d = WIDGET (dview); dview 2966 src/diffviewer/ydiff.c dview_save (WDiff *dview) dview 2970 src/diffviewer/ydiff.c if (dview->merged[DIFF_LEFT]) dview 2972 src/diffviewer/ydiff.c res = mc_util_unlink_backup_if_possible (dview->file[DIFF_LEFT], "~~~"); dview 2973 src/diffviewer/ydiff.c dview->merged[DIFF_LEFT] = !res; dview 2975 src/diffviewer/ydiff.c if (dview->merged[DIFF_RIGHT]) dview 2977 src/diffviewer/ydiff.c res = mc_util_unlink_backup_if_possible (dview->file[DIFF_RIGHT], "~~~"); dview 2978 src/diffviewer/ydiff.c dview->merged[DIFF_RIGHT] = !res; dview 2986 src/diffviewer/ydiff.c dview_do_save (WDiff *dview) dview 2988 src/diffviewer/ydiff.c (void) dview_save (dview); dview 2998 src/diffviewer/ydiff.c dview_ok_to_exit (WDiff *dview) dview 3003 src/diffviewer/ydiff.c if (!dview->merged[DIFF_LEFT] && !dview->merged[DIFF_RIGHT]) dview 3021 src/diffviewer/ydiff.c (void) dview_save (dview); dview 3025 src/diffviewer/ydiff.c if (mc_util_restore_from_backup_if_possible (dview->file[DIFF_LEFT], "~~~")) dview 3026 src/diffviewer/ydiff.c res = mc_util_unlink_backup_if_possible (dview->file[DIFF_LEFT], "~~~"); dview 3027 src/diffviewer/ydiff.c if (mc_util_restore_from_backup_if_possible (dview->file[DIFF_RIGHT], "~~~")) dview 3028 src/diffviewer/ydiff.c res = mc_util_unlink_backup_if_possible (dview->file[DIFF_RIGHT], "~~~"); dview 3040 src/diffviewer/ydiff.c dview_execute_cmd (WDiff *dview, long command) dview 3047 src/diffviewer/ydiff.c dview->display_symbols = !dview->display_symbols; dview 3048 src/diffviewer/ydiff.c dview->new_frame = TRUE; dview 3051 src/diffviewer/ydiff.c dview->display_numbers ^= calc_nwidth ((const GArray * const *) dview->a); dview 3052 src/diffviewer/ydiff.c dview->new_frame = TRUE; dview 3055 src/diffviewer/ydiff.c dview->full = !dview->full; dview 3056 src/diffviewer/ydiff.c dview->new_frame = TRUE; dview 3059 src/diffviewer/ydiff.c if (!dview->full) dview 3061 src/diffviewer/ydiff.c dview->bias = 0; dview 3062 src/diffviewer/ydiff.c dview->new_frame = TRUE; dview 3066 src/diffviewer/ydiff.c if (!dview->full) dview 3068 src/diffviewer/ydiff.c dview_compute_split (dview, 1); dview 3069 src/diffviewer/ydiff.c dview->new_frame = TRUE; dview 3074 src/diffviewer/ydiff.c if (!dview->full) dview 3076 src/diffviewer/ydiff.c dview_compute_split (dview, -1); dview 3077 src/diffviewer/ydiff.c dview->new_frame = TRUE; dview 3081 src/diffviewer/ydiff.c dview->tab_size = 2; dview 3084 src/diffviewer/ydiff.c dview->tab_size = 3; dview 3087 src/diffviewer/ydiff.c dview->tab_size = 4; dview 3090 src/diffviewer/ydiff.c dview->tab_size = 8; dview 3093 src/diffviewer/ydiff.c dview->ord ^= 1; dview 3096 src/diffviewer/ydiff.c dview_redo (dview); dview 3099 src/diffviewer/ydiff.c dview->skip_rows = dview->search.last_accessed_num_line = dview 3100 src/diffviewer/ydiff.c find_next_hunk (dview->a[DIFF_LEFT], dview->skip_rows); dview 3103 src/diffviewer/ydiff.c dview->skip_rows = dview->search.last_accessed_num_line = dview 3104 src/diffviewer/ydiff.c find_prev_hunk (dview->a[DIFF_LEFT], dview->skip_rows); dview 3107 src/diffviewer/ydiff.c dview_goto_cmd (dview, DIFF_RIGHT); dview 3110 src/diffviewer/ydiff.c dview_edit (dview, dview->ord); dview 3113 src/diffviewer/ydiff.c do_merge_hunk (dview, FROM_LEFT_TO_RIGHT); dview 3114 src/diffviewer/ydiff.c dview_redo (dview); dview 3117 src/diffviewer/ydiff.c do_merge_hunk (dview, FROM_RIGHT_TO_LEFT); dview 3118 src/diffviewer/ydiff.c dview_redo (dview); dview 3121 src/diffviewer/ydiff.c dview_edit (dview, dview->ord ^ 1); dview 3124 src/diffviewer/ydiff.c dview_search_cmd (dview); dview 3127 src/diffviewer/ydiff.c dview_continue_search_cmd (dview); dview 3130 src/diffviewer/ydiff.c dview->skip_rows = dview->search.last_accessed_num_line = 0; dview 3133 src/diffviewer/ydiff.c dview->skip_rows = dview->search.last_accessed_num_line = dview->a[DIFF_LEFT]->len - 1; dview 3136 src/diffviewer/ydiff.c if (dview->skip_rows > 0) dview 3138 src/diffviewer/ydiff.c dview->skip_rows--; dview 3139 src/diffviewer/ydiff.c dview->search.last_accessed_num_line = dview->skip_rows; dview 3143 src/diffviewer/ydiff.c dview->skip_rows++; dview 3144 src/diffviewer/ydiff.c dview->search.last_accessed_num_line = dview->skip_rows; dview 3147 src/diffviewer/ydiff.c if (dview->height > 2) dview 3149 src/diffviewer/ydiff.c dview->skip_rows += dview->height - 2; dview 3150 src/diffviewer/ydiff.c dview->search.last_accessed_num_line = dview->skip_rows; dview 3154 src/diffviewer/ydiff.c if (dview->height > 2) dview 3156 src/diffviewer/ydiff.c dview->skip_rows -= dview->height - 2; dview 3157 src/diffviewer/ydiff.c dview->search.last_accessed_num_line = dview->skip_rows; dview 3161 src/diffviewer/ydiff.c dview->skip_cols--; dview 3164 src/diffviewer/ydiff.c dview->skip_cols++; dview 3167 src/diffviewer/ydiff.c dview->skip_cols -= 8; dview 3170 src/diffviewer/ydiff.c dview->skip_cols += 8; dview 3173 src/diffviewer/ydiff.c dview->skip_cols = 0; dview 3179 src/diffviewer/ydiff.c dview->view_quit = TRUE; dview 3182 src/diffviewer/ydiff.c dview_do_save (dview); dview 3185 src/diffviewer/ydiff.c dview_diff_options (dview); dview 3189 src/diffviewer/ydiff.c dview_select_encoding (dview); dview 3204 src/diffviewer/ydiff.c dview_handle_key (WDiff *dview, int key) dview 3212 src/diffviewer/ydiff.c command = widget_lookup_key (WIDGET (dview), key); dview 3216 src/diffviewer/ydiff.c return dview_execute_cmd (dview, command); dview 3224 src/diffviewer/ydiff.c WDiff *dview = (WDiff *) w; dview 3231 src/diffviewer/ydiff.c dview_labels (dview); dview 3232 src/diffviewer/ydiff.c dview_update (dview); dview 3236 src/diffviewer/ydiff.c dview->new_frame = TRUE; dview 3237 src/diffviewer/ydiff.c dview_update (dview); dview 3241 src/diffviewer/ydiff.c i = dview_handle_key (dview, parm); dview 3242 src/diffviewer/ydiff.c if (dview->view_quit) dview 3245 src/diffviewer/ydiff.c dview_update (dview); dview 3249 src/diffviewer/ydiff.c i = dview_execute_cmd (dview, parm); dview 3250 src/diffviewer/ydiff.c if (dview->view_quit) dview 3253 src/diffviewer/ydiff.c dview_update (dview); dview 3258 src/diffviewer/ydiff.c dview_compute_areas (dview); dview 3262 src/diffviewer/ydiff.c dview_save_options (dview); dview 3263 src/diffviewer/ydiff.c dview_fini (dview); dview 3276 src/diffviewer/ydiff.c WDiff *dview = (WDiff *) w; dview 3285 src/diffviewer/ydiff.c dview->skip_rows -= 2; dview 3287 src/diffviewer/ydiff.c dview->skip_rows += 2; dview 3289 src/diffviewer/ydiff.c dview->search.last_accessed_num_line = dview->skip_rows; dview 3290 src/diffviewer/ydiff.c dview_update (dview); dview 3303 src/diffviewer/ydiff.c WDiff *dview; dview 3316 src/diffviewer/ydiff.c dview = (WDiff *) widget_find_by_type (CONST_WIDGET (h), dview_callback); dview 3319 src/diffviewer/ydiff.c if (dview_ok_to_exit (dview)) dview 3333 src/diffviewer/ydiff.c const WDiff *dview; dview 3339 src/diffviewer/ydiff.c dview = (const WDiff *) widget_find_by_type (CONST_WIDGET (h), dview_callback); dview 3344 src/diffviewer/ydiff.c g_string_append (title, dview->merged[DIFF_LEFT] ? modified : notmodified); dview 3345 src/diffviewer/ydiff.c g_string_append (title, str_term_trim (dview->label[DIFF_LEFT], len1)); dview 3347 src/diffviewer/ydiff.c g_string_append (title, dview->merged[DIFF_RIGHT] ? modified : notmodified); dview 3348 src/diffviewer/ydiff.c g_string_append (title, str_term_trim (dview->label[DIFF_RIGHT], len1)); dview 3359 src/diffviewer/ydiff.c WDiff *dview; dview 3376 src/diffviewer/ydiff.c dview = g_new0 (WDiff, 1); dview 3377 src/diffviewer/ydiff.c w = WIDGET (dview); dview 3389 src/diffviewer/ydiff.c error = dview_init (dview, "-a", file1, file2, label1, label2, DATA_SRC_MEM); /* XXX binary diff? */ dview 3391 src/diffviewer/ydiff.c error = redo_diff (dview); dview 3394 src/diffviewer/ydiff.c dview->ndiff = error; dview 3395 src/diffviewer/ydiff.c dview_compute_areas (dview);