From 8b8be286ff8e52122486abd04db30f0bc6398f91 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 4 May 2015 17:42:20 -0400 Subject: [PATCH] Made private functions in the various bin source files static. --- darwin/bin.m | 8 ++++---- unix/bin.c | 6 +++--- windows/bin.c | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/darwin/bin.m b/darwin/bin.m index 2594e842..45e75272 100644 --- a/darwin/bin.m +++ b/darwin/bin.m @@ -11,7 +11,7 @@ struct bin { intmax_t marginBottom; }; -void binDestroy(uiControl *c) +static void binDestroy(uiControl *c) { struct bin *b = (struct bin *) c; NSView *v; @@ -33,7 +33,7 @@ void binDestroy(uiControl *c) uiFree(b); } -void binPreferredSize(uiControl *c, uiSizing *d, intmax_t *width, intmax_t *height) +static void binPreferredSize(uiControl *c, uiSizing *d, intmax_t *width, intmax_t *height) { struct bin *b = (struct bin *) c; intmax_t marginX, marginY; @@ -50,7 +50,7 @@ void binPreferredSize(uiControl *c, uiSizing *d, intmax_t *width, intmax_t *heig *height += marginY; } -void binSysFunc(uiControl *c, uiControlSysFuncParams *p) +static void binSysFunc(uiControl *c, uiControlSysFuncParams *p) { struct bin *b = (struct bin *) c; @@ -58,7 +58,7 @@ void binSysFunc(uiControl *c, uiControlSysFuncParams *p) uiControlSysFunc(b->mainControl, p); } -void binResizeChildren(uiContainer *c, intmax_t x, intmax_t y, intmax_t width, intmax_t height, uiSizing *d) +static void binResizeChildren(uiContainer *c, intmax_t x, intmax_t y, intmax_t width, intmax_t height, uiSizing *d) { struct bin *b = (struct bin *) c; diff --git a/unix/bin.c b/unix/bin.c index 3fe47d5c..fe719b9f 100644 --- a/unix/bin.c +++ b/unix/bin.c @@ -11,7 +11,7 @@ struct bin { intmax_t marginBottom; }; -void binDestroy(uiControl *c) +static void binDestroy(uiControl *c) { struct bin *b = (struct bin *) c; GtkWidget *binWidget; @@ -30,7 +30,7 @@ void binDestroy(uiControl *c) uiFree(b); } -void binPreferredSize(uiControl *c, uiSizing *d, intmax_t *width, intmax_t *height) +static void binPreferredSize(uiControl *c, uiSizing *d, intmax_t *width, intmax_t *height) { struct bin *b = (struct bin *) c; intmax_t marginX, marginY; @@ -47,7 +47,7 @@ void binPreferredSize(uiControl *c, uiSizing *d, intmax_t *width, intmax_t *heig *height += marginY; } -void binResizeChildren(uiContainer *c, intmax_t x, intmax_t y, intmax_t width, intmax_t height, uiSizing *d) +static void binResizeChildren(uiContainer *c, intmax_t x, intmax_t y, intmax_t width, intmax_t height, uiSizing *d) { struct bin *b = (struct bin *) c; diff --git a/windows/bin.c b/windows/bin.c index 408c59f5..7062ad2c 100644 --- a/windows/bin.c +++ b/windows/bin.c @@ -11,7 +11,7 @@ struct bin { intmax_t marginBottom; }; -void binDestroy(uiControl *c) +static void binDestroy(uiControl *c) { struct bin *b = (struct bin *) c; HWND hwnd; @@ -30,7 +30,7 @@ void binDestroy(uiControl *c) uiFree(b); } -void binPreferredSize(uiControl *c, uiSizing *d, intmax_t *width, intmax_t *height) +static void binPreferredSize(uiControl *c, uiSizing *d, intmax_t *width, intmax_t *height) { struct bin *b = (struct bin *) c; intmax_t marginX, marginY; @@ -55,7 +55,7 @@ static void binSysFunc(uiControl *c, uiControlSysFuncParams *p) uiControlSysFunc(b->mainControl, p); } -void binResizeChildren(uiContainer *c, intmax_t x, intmax_t y, intmax_t width, intmax_t height, uiSizing *d) +static void binResizeChildren(uiContainer *c, intmax_t x, intmax_t y, intmax_t width, intmax_t height, uiSizing *d) { struct bin *b = (struct bin *) c; intmax_t marginLeft, marginTop;