comparison src/gui_photon.c @ 7823:bcef391c101c v7.4.1208

commit https://github.com/vim/vim/commit/68c2f638e65d914dc6e84eb7ce2624f08af525c0 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 30 17:24:07 2016 +0100 patch 7.4.1208 Problem: Using old style function declarations. Solution: Change to new style function declarations. (script by Hirohito Higashi)
author Christian Brabandt <cb@256bit.org>
date Sat, 30 Jan 2016 17:30:04 +0100
parents 04736b4030ec
children 22c29a515b53
comparison
equal deleted inserted replaced
7822:c357d21dc1b5 7823:bcef391c101c
1109 1109
1110 /****************************************************************************/ 1110 /****************************************************************************/
1111 /****************************************************************************/ 1111 /****************************************************************************/
1112 1112
1113 void 1113 void
1114 gui_mch_prepare(argc, argv) 1114 gui_mch_prepare(int *argc, char **argv)
1115 int *argc;
1116 char **argv;
1117 { 1115 {
1118 PtInit(NULL); 1116 PtInit(NULL);
1119 } 1117 }
1120 1118
1121 int 1119 int
1718 #if defined(FEAT_EVAL) || defined(PROTO) 1716 #if defined(FEAT_EVAL) || defined(PROTO)
1719 /* 1717 /*
1720 * Bring the Vim window to the foreground. 1718 * Bring the Vim window to the foreground.
1721 */ 1719 */
1722 void 1720 void
1723 gui_mch_set_foreground() 1721 gui_mch_set_foreground(void)
1724 { 1722 {
1725 PhWindowEvent_t event; 1723 PhWindowEvent_t event;
1726 1724
1727 memset(&event, 0, sizeof (event)); 1725 memset(&event, 0, sizeof (event));
1728 event.event_f = Ph_WM_TOFRONT; 1726 event.event_f = Ph_WM_TOFRONT;
1858 Ph_CURSOR_POINTER, /* up-arrow */ 1856 Ph_CURSOR_POINTER, /* up-arrow */
1859 Ph_CURSOR_POINTER /* last one */ 1857 Ph_CURSOR_POINTER /* last one */
1860 }; 1858 };
1861 1859
1862 void 1860 void
1863 mch_set_mouse_shape(shape) 1861 mch_set_mouse_shape(int shape)
1864 int shape;
1865 { 1862 {
1866 int id; 1863 int id;
1867 1864
1868 if (!gui.in_use) 1865 if (!gui.in_use)
1869 return; 1866 return;
2182 PgDrawRect(&block, Pg_DRAW_FILL); 2179 PgDrawRect(&block, Pg_DRAW_FILL);
2183 DRAW_END; 2180 DRAW_END;
2184 } 2181 }
2185 2182
2186 void 2183 void
2187 gui_mch_clear_all() 2184 gui_mch_clear_all(void)
2188 { 2185 {
2189 PhRect_t text_rect = { 2186 PhRect_t text_rect = {
2190 { gui.border_width, gui.border_width }, 2187 { gui.border_width, gui.border_width },
2191 { Columns * gui.char_width + gui.border_width - 1 , 2188 { Columns * gui.char_width + gui.border_width - 1 ,
2192 Rows * gui.char_height + gui.border_width - 1 } 2189 Rows * gui.char_height + gui.border_width - 1 }
3076 /* 3073 /*
3077 * Return the name of font "font" in allocated memory. 3074 * Return the name of font "font" in allocated memory.
3078 * Don't know how to get the actual name, thus use the provided name. 3075 * Don't know how to get the actual name, thus use the provided name.
3079 */ 3076 */
3080 char_u * 3077 char_u *
3081 gui_mch_get_fontname(font, name) 3078 gui_mch_get_fontname(GuiFont font, char_u *name)
3082 GuiFont font;
3083 char_u *name;
3084 { 3079 {
3085 if (name == NULL) 3080 if (name == NULL)
3086 return NULL; 3081 return NULL;
3087 return vim_strsave(name); 3082 return vim_strsave(name);
3088 } 3083 }