patch 7.4.1208
Problem: Using old style function declarations.
Solution: Change to new style function declarations. (script by Hirohito
Higashi)
diff --git a/src/gui_photon.c b/src/gui_photon.c
index aa99dd7..67ddc62 100644
--- a/src/gui_photon.c
+++ b/src/gui_photon.c
@@ -1111,9 +1111,7 @@
/****************************************************************************/
void
-gui_mch_prepare(argc, argv)
- int *argc;
- char **argv;
+gui_mch_prepare(int *argc, char **argv)
{
PtInit(NULL);
}
@@ -1720,7 +1718,7 @@
* Bring the Vim window to the foreground.
*/
void
-gui_mch_set_foreground()
+gui_mch_set_foreground(void)
{
PhWindowEvent_t event;
@@ -1860,8 +1858,7 @@
};
void
-mch_set_mouse_shape(shape)
- int shape;
+mch_set_mouse_shape(int shape)
{
int id;
@@ -2184,7 +2181,7 @@
}
void
-gui_mch_clear_all()
+gui_mch_clear_all(void)
{
PhRect_t text_rect = {
{ gui.border_width, gui.border_width },
@@ -3078,9 +3075,7 @@
* Don't know how to get the actual name, thus use the provided name.
*/
char_u *
-gui_mch_get_fontname(font, name)
- GuiFont font;
- char_u *name;
+gui_mch_get_fontname(GuiFont font, char_u *name)
{
if (name == NULL)
return NULL;