From 708bc27e3ffffa16c153b28f23d48526c2233a83 Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Sun, 12 May 2013 00:24:44 +0200 Subject: [PATCH] WINGs: Added explicit parameter list to function prototypes (Simple cases) It is dangerous to let the compiler know about a function without letting him know the arguments because he won't be able to report invalid calls. This patch concern the cases where adding the arguments did not need other code change. --- WINGs/wcolorwell.c | 2 +- WINGs/wlist.c | 2 +- WINGs/wprogressindicator.c | 2 +- WINGs/wscroller.c | 2 +- WINGs/wscrollview.c | 4 ++-- WINGs/wslider.c | 2 +- WINGs/wtextfield.c | 2 +- WINGs/wwindow.c | 4 ++-- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/WINGs/wcolorwell.c b/WINGs/wcolorwell.c index ed396193..17934856 100644 --- a/WINGs/wcolorwell.c +++ b/WINGs/wcolorwell.c @@ -37,7 +37,7 @@ static void handleDragEvents(XEvent * event, void *data); static void handleActionEvents(XEvent * event, void *data); -static void willResizeColorWell(); +static void willResizeColorWell(W_ViewDelegate * self, WMView * view, unsigned int *width, unsigned int *height); W_ViewDelegate _ColorWellViewDelegate = { NULL, diff --git a/WINGs/wlist.c b/WINGs/wlist.c index 360bb6c1..625b4bba 100644 --- a/WINGs/wlist.c +++ b/WINGs/wlist.c @@ -64,7 +64,7 @@ static void vScrollCallBack(WMWidget * scroller, void *self); static void toggleItemSelection(WMList * lPtr, int index); static void updateGeometry(WMList * lPtr); -static void didResizeList(); +static void didResizeList(W_ViewDelegate * self, WMView * view); static void unselectAllListItems(WMList * lPtr, WMListItem * exceptThis); diff --git a/WINGs/wprogressindicator.c b/WINGs/wprogressindicator.c index a897a9eb..79b9ea01 100644 --- a/WINGs/wprogressindicator.c +++ b/WINGs/wprogressindicator.c @@ -24,7 +24,7 @@ typedef struct W_ProgressIndicator { /* define if only the ticks within the progress region should be displayed */ #undef SHOW_PROGRESS_TICKS_ONLY -static void didResizeProgressIndicator(); +static void didResizeProgressIndicator(W_ViewDelegate * self, WMView * view); W_ViewDelegate _ProgressIndicatorDelegate = { NULL, diff --git a/WINGs/wscroller.c b/WINGs/wscroller.c index e6d2cd3c..f037c246 100644 --- a/WINGs/wscroller.c +++ b/WINGs/wscroller.c @@ -73,7 +73,7 @@ typedef struct W_Scroller { static void destroyScroller(Scroller * sPtr); static void paintScroller(Scroller * sPtr); -static void willResizeScroller(); +static void willResizeScroller(W_ViewDelegate * self, WMView * view, unsigned int *width, unsigned int *height); static void handleEvents(XEvent * event, void *data); static void handleActionEvents(XEvent * event, void *data); diff --git a/WINGs/wscrollview.c b/WINGs/wscrollview.c index ae3daaec..091b1afe 100644 --- a/WINGs/wscrollview.c +++ b/WINGs/wscrollview.c @@ -28,8 +28,8 @@ static void destroyScrollView(ScrollView * sPtr); static void paintScrollView(ScrollView * sPtr); static void handleEvents(XEvent * event, void *data); static void handleViewportEvents(XEvent * event, void *data); -static void resizeScrollView(); -static void updateScrollerProportion(); +static void resizeScrollView(W_ViewDelegate *self, WMView *view); +static void updateScrollerProportion(ScrollView *sPtr); W_ViewDelegate _ScrollViewViewDelegate = { NULL, diff --git a/WINGs/wslider.c b/WINGs/wslider.c index 1ee7dae7..f1f43fb1 100644 --- a/WINGs/wslider.c +++ b/WINGs/wslider.c @@ -29,7 +29,7 @@ typedef struct W_Slider { } Slider; -static void didResizeSlider(); +static void didResizeSlider(W_ViewDelegate * self, WMView * view); W_ViewDelegate _SliderViewDelegate = { NULL, diff --git a/WINGs/wtextfield.c b/WINGs/wtextfield.c index 955db533..1b3baa5a 100644 --- a/WINGs/wtextfield.c +++ b/WINGs/wtextfield.c @@ -96,7 +96,7 @@ static void paintTextField(TextField * tPtr); static void handleEvents(XEvent * event, void *data); static void handleTextFieldActionEvents(XEvent * event, void *data); -static void didResizeTextField(); +static void didResizeTextField(W_ViewDelegate * self, WMView * view); struct W_ViewDelegate _TextFieldViewDelegate = { NULL, diff --git a/WINGs/wwindow.c b/WINGs/wwindow.c index d14b46b0..d3ad4aa6 100644 --- a/WINGs/wwindow.c +++ b/WINGs/wwindow.c @@ -89,9 +89,9 @@ struct W_ViewDelegate _WindowViewDelegate = { static void destroyWindow(_Window * win); -static void handleEvents(); +static void handleEvents(XEvent * event, void *clientData); -static void realizeWindow(); +static void realizeWindow(WMWindow * win); static void realizeObserver(void *self, WMNotification * not) {