diff options
| author | Dan Nicolaescu | 2010-07-12 12:56:46 -0700 |
|---|---|---|
| committer | Dan Nicolaescu | 2010-07-12 12:56:46 -0700 |
| commit | 0521f5806bfc9ad55488c26c9808f513b9384ff4 (patch) | |
| tree | f2666abe9d10f26fda3b0cac3d6c99fc259513b2 /src | |
| parent | ababf900035b6e7373d0a3826fb7003c4c5e8c93 (diff) | |
| download | emacs-0521f5806bfc9ad55488c26c9808f513b9384ff4.tar.gz emacs-0521f5806bfc9ad55488c26c9808f513b9384ff4.zip | |
Convert function definitions to standard C.
* src/xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose)
(_scroll_bar_note_movement): Convert definitions to standard C.
* src/xmenu.c (menu_help_callback, pop_down_menu, xmenu_show):
* src/xfns.c (hack_wm_protocols, x_window, x_window): Likewise.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 7 | ||||
| -rw-r--r-- | src/xfns.c | 4 | ||||
| -rw-r--r-- | src/xmenu.c | 16 | ||||
| -rw-r--r-- | src/xterm.c | 13 |
4 files changed, 14 insertions, 26 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index a27fc7484f7..667a82c14ec 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,12 @@ | |||
| 1 | 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu> | 1 | 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 2 | ||
| 3 | * xterm.c (x_scroll_bar_set_handle, x_scroll_bar_expose) | ||
| 4 | (_scroll_bar_note_movement): Convert definitions to standard C. | ||
| 5 | * xmenu.c (menu_help_callback, pop_down_menu, xmenu_show): | ||
| 6 | * xfns.c (hack_wm_protocols, x_window, x_window): Likewise. | ||
| 7 | |||
| 8 | 2010-07-12 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 9 | |||
| 3 | * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget) | 10 | * xterm.c (x_frame_of_widget, x_alloc_nearest_color_for_widget) |
| 4 | (x_alloc_lighter_color_for_widget, cvt_string_to_pixel) | 11 | (x_alloc_lighter_color_for_widget, cvt_string_to_pixel) |
| 5 | (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook) | 12 | (cvt_pixel_dtor, x_window_to_menu_bar, xt_action_hook) |
diff --git a/src/xfns.c b/src/xfns.c index e4a073072f0..c2135781811 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -2676,9 +2676,7 @@ x_window (FRAME_PTR f) | |||
| 2676 | /* Create and set up the X window for frame F. */ | 2676 | /* Create and set up the X window for frame F. */ |
| 2677 | 2677 | ||
| 2678 | void | 2678 | void |
| 2679 | x_window (f) | 2679 | x_window (struct frame *f) |
| 2680 | struct frame *f; | ||
| 2681 | |||
| 2682 | { | 2680 | { |
| 2683 | XClassHint class_hints; | 2681 | XClassHint class_hints; |
| 2684 | XSetWindowAttributes attributes; | 2682 | XSetWindowAttributes attributes; |
diff --git a/src/xmenu.c b/src/xmenu.c index d9c71b0cf2f..b0bdbcfecaa 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -2228,9 +2228,7 @@ static struct frame *menu_help_frame; | |||
| 2228 | keyboard events. */ | 2228 | keyboard events. */ |
| 2229 | 2229 | ||
| 2230 | static void | 2230 | static void |
| 2231 | menu_help_callback (help_string, pane, item) | 2231 | menu_help_callback (char *help_string, int pane, int item) |
| 2232 | char *help_string; | ||
| 2233 | int pane, item; | ||
| 2234 | { | 2232 | { |
| 2235 | extern Lisp_Object Qmenu_item; | 2233 | extern Lisp_Object Qmenu_item; |
| 2236 | Lisp_Object *first_item; | 2234 | Lisp_Object *first_item; |
| @@ -2255,8 +2253,7 @@ menu_help_callback (help_string, pane, item) | |||
| 2255 | } | 2253 | } |
| 2256 | 2254 | ||
| 2257 | static Lisp_Object | 2255 | static Lisp_Object |
| 2258 | pop_down_menu (arg) | 2256 | pop_down_menu (Lisp_Object arg) |
| 2259 | Lisp_Object arg; | ||
| 2260 | { | 2257 | { |
| 2261 | struct Lisp_Save_Value *p1 = XSAVE_VALUE (Fcar (arg)); | 2258 | struct Lisp_Save_Value *p1 = XSAVE_VALUE (Fcar (arg)); |
| 2262 | struct Lisp_Save_Value *p2 = XSAVE_VALUE (Fcdr (arg)); | 2259 | struct Lisp_Save_Value *p2 = XSAVE_VALUE (Fcdr (arg)); |
| @@ -2291,14 +2288,7 @@ pop_down_menu (arg) | |||
| 2291 | 2288 | ||
| 2292 | 2289 | ||
| 2293 | Lisp_Object | 2290 | Lisp_Object |
| 2294 | xmenu_show (f, x, y, for_click, keymaps, title, error, timestamp) | 2291 | xmenu_show (FRAME_PTR f, int x, int y, int for_click, int keymaps, Lisp_Object title, char **error, unsigned int timestamp) |
| 2295 | FRAME_PTR f; | ||
| 2296 | int x, y; | ||
| 2297 | int for_click; | ||
| 2298 | int keymaps; | ||
| 2299 | Lisp_Object title; | ||
| 2300 | char **error; | ||
| 2301 | EMACS_UINT timestamp; | ||
| 2302 | { | 2292 | { |
| 2303 | Window root; | 2293 | Window root; |
| 2304 | XMenu *menu; | 2294 | XMenu *menu; |
diff --git a/src/xterm.c b/src/xterm.c index c78408382bd..649e5c2d674 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -4849,10 +4849,7 @@ x_scroll_bar_create (struct window *w, int top, int left, int width, int height) | |||
| 4849 | to move to the very end of the buffer. */ | 4849 | to move to the very end of the buffer. */ |
| 4850 | 4850 | ||
| 4851 | static void | 4851 | static void |
| 4852 | x_scroll_bar_set_handle (bar, start, end, rebuild) | 4852 | x_scroll_bar_set_handle (struct scroll_bar *bar, int start, int end, int rebuild) |
| 4853 | struct scroll_bar *bar; | ||
| 4854 | int start, end; | ||
| 4855 | int rebuild; | ||
| 4856 | { | 4853 | { |
| 4857 | int dragging = ! NILP (bar->dragging); | 4854 | int dragging = ! NILP (bar->dragging); |
| 4858 | Window w = bar->x_window; | 4855 | Window w = bar->x_window; |
| @@ -5294,9 +5291,7 @@ XTjudge_scroll_bars (FRAME_PTR f) | |||
| 5294 | mark bits. */ | 5291 | mark bits. */ |
| 5295 | 5292 | ||
| 5296 | static void | 5293 | static void |
| 5297 | x_scroll_bar_expose (bar, event) | 5294 | x_scroll_bar_expose (struct scroll_bar *bar, XEvent *event) |
| 5298 | struct scroll_bar *bar; | ||
| 5299 | XEvent *event; | ||
| 5300 | { | 5295 | { |
| 5301 | Window w = bar->x_window; | 5296 | Window w = bar->x_window; |
| 5302 | FRAME_PTR f = XFRAME (WINDOW_FRAME (XWINDOW (bar->window))); | 5297 | FRAME_PTR f = XFRAME (WINDOW_FRAME (XWINDOW (bar->window))); |
| @@ -5396,9 +5391,7 @@ x_scroll_bar_handle_click (struct scroll_bar *bar, XEvent *event, struct input_e | |||
| 5396 | mark bits. */ | 5391 | mark bits. */ |
| 5397 | 5392 | ||
| 5398 | static void | 5393 | static void |
| 5399 | x_scroll_bar_note_movement (bar, event) | 5394 | x_scroll_bar_note_movement (struct scroll_bar *bar, XEvent *event) |
| 5400 | struct scroll_bar *bar; | ||
| 5401 | XEvent *event; | ||
| 5402 | { | 5395 | { |
| 5403 | FRAME_PTR f = XFRAME (XWINDOW (bar->window)->frame); | 5396 | FRAME_PTR f = XFRAME (XWINDOW (bar->window)->frame); |
| 5404 | 5397 | ||