diff options
| author | Dmitry Antipov | 2013-07-30 09:56:18 +0400 |
|---|---|---|
| committer | Dmitry Antipov | 2013-07-30 09:56:18 +0400 |
| commit | d7e6881a2ec341affe3a89b26cf2da6919772214 (patch) | |
| tree | d11a0e72bf7e9efde22a622ee76e2666d7e92a9b /src/window.c | |
| parent | ec3058af9654df71cce93629f3eab32dcbb6b946 (diff) | |
| download | emacs-d7e6881a2ec341affe3a89b26cf2da6919772214.tar.gz emacs-d7e6881a2ec341affe3a89b26cf2da6919772214.zip | |
* fringe.c (draw_window_fringes, update_window_fringes)
(compute_fringe_widths):
* w32term.c (x_draw_glyph_string):
* window.c (candidate_window_p, Frecenter):
* xfaces.c (realize_basic_faces, realize_default_face)
(Fbitmap_space_p, Finternal_set_lisp_face_attribute)
(x_update_menu_appearance, face_attr_equal_p, lface_equal_p):
* xfns.c (x_set_cursor_color, xic_free_xfontset):
* xmenu.c (Fx_menu_bar_open_internal):
* xselect.c (x_reply_selection_request, Fx_get_atom_name):
* xsettings.c (xft_settings_event):
* xterm.c (x_draw_glyph_string, x_had_errors_p):
Use bool for booleans. Adjust style and comments where
appropriate.
* dispextern.h (draw_window_fringes, update_window_fringes)
(compute_fringe_widths):
* xterm.h (x_had_errors_p): Adjust prototype.
Diffstat (limited to 'src/window.c')
| -rw-r--r-- | src/window.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/window.c b/src/window.c index 2ff149ed4fa..6fd6849c6c3 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -72,8 +72,6 @@ static void window_scroll_line_based (Lisp_Object, int, int, int); | |||
| 72 | static int freeze_window_start (struct window *, void *); | 72 | static int freeze_window_start (struct window *, void *); |
| 73 | static Lisp_Object window_list (void); | 73 | static Lisp_Object window_list (void); |
| 74 | static int add_window_to_list (struct window *, void *); | 74 | static int add_window_to_list (struct window *, void *); |
| 75 | static int candidate_window_p (Lisp_Object, Lisp_Object, Lisp_Object, | ||
| 76 | Lisp_Object); | ||
| 77 | static Lisp_Object next_window (Lisp_Object, Lisp_Object, | 75 | static Lisp_Object next_window (Lisp_Object, Lisp_Object, |
| 78 | Lisp_Object, int); | 76 | Lisp_Object, int); |
| 79 | static void decode_next_window_args (Lisp_Object *, Lisp_Object *, | 77 | static void decode_next_window_args (Lisp_Object *, Lisp_Object *, |
| @@ -2213,12 +2211,13 @@ window_list (void) | |||
| 2213 | a window means search the frame that window belongs to, | 2211 | a window means search the frame that window belongs to, |
| 2214 | a frame means consider windows on that frame, only. */ | 2212 | a frame means consider windows on that frame, only. */ |
| 2215 | 2213 | ||
| 2216 | static int | 2214 | static bool |
| 2217 | candidate_window_p (Lisp_Object window, Lisp_Object owindow, Lisp_Object minibuf, Lisp_Object all_frames) | 2215 | candidate_window_p (Lisp_Object window, Lisp_Object owindow, |
| 2216 | Lisp_Object minibuf, Lisp_Object all_frames) | ||
| 2218 | { | 2217 | { |
| 2219 | struct window *w = XWINDOW (window); | 2218 | struct window *w = XWINDOW (window); |
| 2220 | struct frame *f = XFRAME (w->frame); | 2219 | struct frame *f = XFRAME (w->frame); |
| 2221 | int candidate_p = 1; | 2220 | bool candidate_p = 1; |
| 2222 | 2221 | ||
| 2223 | if (!BUFFERP (w->contents)) | 2222 | if (!BUFFERP (w->contents)) |
| 2224 | candidate_p = 0; | 2223 | candidate_p = 0; |
| @@ -5172,7 +5171,7 @@ and redisplay normally--don't erase and redraw the frame. */) | |||
| 5172 | struct window *w = XWINDOW (selected_window); | 5171 | struct window *w = XWINDOW (selected_window); |
| 5173 | struct buffer *buf = XBUFFER (w->contents); | 5172 | struct buffer *buf = XBUFFER (w->contents); |
| 5174 | struct buffer *obuf = current_buffer; | 5173 | struct buffer *obuf = current_buffer; |
| 5175 | int center_p = 0; | 5174 | bool center_p = 0; |
| 5176 | ptrdiff_t charpos, bytepos; | 5175 | ptrdiff_t charpos, bytepos; |
| 5177 | EMACS_INT iarg IF_LINT (= 0); | 5176 | EMACS_INT iarg IF_LINT (= 0); |
| 5178 | int this_scroll_margin; | 5177 | int this_scroll_margin; |