Skip to content

Commit

Permalink
Mark some functions as static
Browse files Browse the repository at this point in the history
  • Loading branch information
sbaldovi committed Mar 14, 2021
1 parent fcd74af commit c49ef7b
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 18 deletions.
2 changes: 1 addition & 1 deletion infrastructure/startup_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ startup_manager_init( void )
g_array_new( FALSE, FALSE, sizeof( startup_manager_end_fn ) );
}

void
static void
startup_manager_end( void )
{
g_array_free( registered_modules, TRUE );
Expand Down
4 changes: 2 additions & 2 deletions peripherals/joystick.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ static const periph_t kempston_loose_periph = {

/* Init/shutdown functions. Errors aren't important here */

int
static int
joystick_init( void *context )
{
joysticks_supported = ui_joystick_init();
Expand All @@ -137,7 +137,7 @@ joystick_init( void *context )
return 0;
}

void
static void
joystick_end( void )
{
ui_joystick_end();
Expand Down
20 changes: 10 additions & 10 deletions svg.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ svg_write_metadata( void )
return 0;
}

void
static void
svg_openfile( void )
{
int err;
Expand Down Expand Up @@ -190,7 +190,7 @@ svg_openfile( void )
}
}

void
static void
svg_rect( int xpos, int ypos, const char *xsize, const char *ysize,
const char *opacity, const char *color )
{
Expand Down Expand Up @@ -225,7 +225,7 @@ svg_rect( int xpos, int ypos, const char *xsize, const char *ysize,
}
}

void
static void
svg_openpath( void )
{
int err;
Expand Down Expand Up @@ -263,7 +263,7 @@ svg_openpath( void )
}
}

void
static void
svg_closepath( void )
{
if( xmlTextWriterEndElement( writer ) < 0 ) {
Expand All @@ -272,7 +272,7 @@ svg_closepath( void )
}
}

void
static void
svg_closefile( void )
{
FILE *fp;
Expand Down Expand Up @@ -349,7 +349,7 @@ svg_stopcapture( void )
}
}

void
static void
svg_capture_draw( void )
{
char path_element[ BUFSZ ];
Expand Down Expand Up @@ -426,7 +426,7 @@ svg_capture_draw( void )
return;
}

void
static void
svg_byte( int xpos, int ypos, int udg_byte, char *color )
{
int i;
Expand Down Expand Up @@ -462,7 +462,7 @@ svg_byte( int xpos, int ypos, int udg_byte, char *color )
}
}

void
static void
svg_capture_char( void )
{
char path_element[ BUFSZ ];
Expand Down Expand Up @@ -593,7 +593,7 @@ svg_capture_char( void )
return;
}

void
static void
svg_capture_cls( void )
{
if( svg_flag ) {
Expand All @@ -614,7 +614,7 @@ svg_capture_cls( void )
return;
}

void
static void
svg_capture_scroll( void )
{
char svgcolor[ BUFSZ ];
Expand Down
4 changes: 2 additions & 2 deletions ui/win32/hyperlinks.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#define PROP_UNDERLINE_FONT TEXT("_Hyperlink_Underline_Font_")


LRESULT CALLBACK
static LRESULT CALLBACK
_HyperlinkParentProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
WNDPROC pfnOrigProc = (WNDPROC) GetProp(hwnd, PROP_ORIGINAL_PROC);
Expand Down Expand Up @@ -58,7 +58,7 @@ _HyperlinkParentProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
return CallWindowProc(pfnOrigProc, hwnd, message, wParam, lParam);
}

LRESULT CALLBACK
static LRESULT CALLBACK
_HyperlinkProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
WNDPROC pfnOrigProc = (WNDPROC) GetProp(hwnd, PROP_ORIGINAL_PROC);
Expand Down
2 changes: 1 addition & 1 deletion ui/win32/win32ui.c
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ win32ui_get_monospaced_font( HFONT *font )
return 0;
}

int
static int
window_recommended_width( HWND hwndDlg, LPCTSTR title )
{
HDC dc;
Expand Down
1 change: 0 additions & 1 deletion ui/xlib/xdisplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ static xdisplay_putpixel_t xdisplay_putpixel_16;
static xdisplay_putpixel_t xdisplay_putpixel_24;

#include "ui/xlib/xpixmaps.c"
void xstatusbar_overlay( void );

static libspectrum_word pal_colour[16] = {
0x0000, 0x0017, 0xb800, 0xb817, 0x05e0, 0x05f7, 0xbde0, 0xbdf7,
Expand Down
2 changes: 1 addition & 1 deletion ui/xlib/xstatusbar.pl
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
dx -= 4; /* 4px space */
}
void
static void
xstatusbar_overlay( void )
{
int x = 0, w = 0, h;
Expand Down

0 comments on commit c49ef7b

Please sign in to comment.