diff options
| author | Paul Eggert | 2012-08-27 17:33:56 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-08-27 17:33:56 -0700 |
| commit | 59ea14cde3090fe0bef42d646682b3801859be14 (patch) | |
| tree | fc45ed91028b2720c2e1e8ebda4ee6e5c4684d51 /src/dired.c | |
| parent | 95072a9468d22a66a22481722bc2f46ce30863d2 (diff) | |
| download | emacs-59ea14cde3090fe0bef42d646682b3801859be14.tar.gz emacs-59ea14cde3090fe0bef42d646682b3801859be14.zip | |
* dispnew.c: Use bool for boolean.
(frame_garbaged, display_completed, delayed_size_change)
(fonts_changed_p, add_window_display_history)
(add_frame_display_history, verify_row_hash)
(adjust_glyph_matrix, clear_window_matrices, glyph_row_slice_p)
(row_equal_p, realloc_glyph_pool)
(allocate_matrices_for_frame_redisplay)
(showing_window_margins_p)
(adjust_frame_glyphs_for_frame_redisplay)
(build_frame_matrix_from_leaf_window, make_current)
(mirrored_line_dance, mirror_line_dance, update_frame)
(update_window_tree, update_single_window)
(check_current_matrix_flags, update_window, update_text_area)
(update_window_line, set_window_update_flags, scrolling_window)
(update_frame_1, scrolling, buffer_posn_from_coords)
(do_pending_window_change, change_frame_size)
(change_frame_size_1, sit_for):
Use bool for boolean.
(clear_glyph_matrix_rows): Rename from enable_glyph_matrix_rows,
and remove last int (actually boolean) argument, which was always 0.
All callers changed.
* dispextern.h, frame.h, lisp.h: Reflect above API changes.
* dispextern.h (struct composition_it): Use bool for boolean.
(struct glyph_matrix): Don't assume buffer sizes can fit in 'int'.
(struct bidi_it): Use unsigned:1, not int, for boolean prev_was_pdf.
* dired.c (file_name_completion):
Use bool for boolean. (This was missed in an earlier change.)
Diffstat (limited to 'src/dired.c')
| -rw-r--r-- | src/dired.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dired.c b/src/dired.c index 206f370ed63..fa293258107 100644 --- a/src/dired.c +++ b/src/dired.c | |||
| @@ -460,7 +460,7 @@ file_name_completion (Lisp_Object file, Lisp_Object dirname, bool all_flag, | |||
| 460 | Lisp_Object encoded_file; | 460 | Lisp_Object encoded_file; |
| 461 | Lisp_Object encoded_dir; | 461 | Lisp_Object encoded_dir; |
| 462 | struct stat st; | 462 | struct stat st; |
| 463 | int directoryp; | 463 | bool directoryp; |
| 464 | /* If not INCLUDEALL, exclude files in completion-ignored-extensions as | 464 | /* If not INCLUDEALL, exclude files in completion-ignored-extensions as |
| 465 | well as "." and "..". Until shown otherwise, assume we can't exclude | 465 | well as "." and "..". Until shown otherwise, assume we can't exclude |
| 466 | anything. */ | 466 | anything. */ |
| @@ -530,7 +530,7 @@ file_name_completion (Lisp_Object file, Lisp_Object dirname, bool all_flag, | |||
| 530 | if (file_name_completion_stat (encoded_dir, dp, &st) < 0) | 530 | if (file_name_completion_stat (encoded_dir, dp, &st) < 0) |
| 531 | continue; | 531 | continue; |
| 532 | 532 | ||
| 533 | directoryp = S_ISDIR (st.st_mode); | 533 | directoryp = S_ISDIR (st.st_mode) != 0; |
| 534 | tem = Qnil; | 534 | tem = Qnil; |
| 535 | /* If all_flag is set, always include all. | 535 | /* If all_flag is set, always include all. |
| 536 | It would not actually be helpful to the user to ignore any possible | 536 | It would not actually be helpful to the user to ignore any possible |
| @@ -718,7 +718,7 @@ file_name_completion (Lisp_Object file, Lisp_Object dirname, bool all_flag, | |||
| 718 | /* This tests that the current file is an exact match | 718 | /* This tests that the current file is an exact match |
| 719 | but BESTMATCH is not (it is too long). */ | 719 | but BESTMATCH is not (it is too long). */ |
| 720 | if ((matchsize == SCHARS (name) | 720 | if ((matchsize == SCHARS (name) |
| 721 | && matchsize + !!directoryp < SCHARS (bestmatch)) | 721 | && matchsize + directoryp < SCHARS (bestmatch)) |
| 722 | || | 722 | || |
| 723 | /* If there is no exact match ignoring case, | 723 | /* If there is no exact match ignoring case, |
| 724 | prefer a match that does not change the case | 724 | prefer a match that does not change the case |
| @@ -730,7 +730,7 @@ file_name_completion (Lisp_Object file, Lisp_Object dirname, bool all_flag, | |||
| 730 | either both or neither are exact. */ | 730 | either both or neither are exact. */ |
| 731 | (((matchsize == SCHARS (name)) | 731 | (((matchsize == SCHARS (name)) |
| 732 | == | 732 | == |
| 733 | (matchsize + !!directoryp == SCHARS (bestmatch))) | 733 | (matchsize + directoryp == SCHARS (bestmatch))) |
| 734 | && (cmp = Fcompare_strings (name, zero, | 734 | && (cmp = Fcompare_strings (name, zero, |
| 735 | make_number (SCHARS (file)), | 735 | make_number (SCHARS (file)), |
| 736 | file, zero, | 736 | file, zero, |