mirror of
https://github.com/libretro/RetroArch
synced 2025-03-25 16:44:01 +00:00
Make some functions static
This commit is contained in:
parent
da5e8e2bfc
commit
6b84ccdcef
@ -51,7 +51,7 @@ struct rarch_dsp_filter
|
|||||||
unsigned num_instances;
|
unsigned num_instances;
|
||||||
};
|
};
|
||||||
|
|
||||||
const struct dspfilter_implementation *find_implementation(rarch_dsp_filter_t *dsp, const char *ident)
|
static const struct dspfilter_implementation *find_implementation(rarch_dsp_filter_t *dsp, const char *ident)
|
||||||
{
|
{
|
||||||
unsigned i;
|
unsigned i;
|
||||||
for (i = 0; i < dsp->num_plugs; i++)
|
for (i = 0; i < dsp->num_plugs; i++)
|
||||||
|
4
driver.c
4
driver.c
@ -358,7 +358,7 @@ static void find_osk_driver(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void init_osk(void)
|
static void init_osk(void)
|
||||||
{
|
{
|
||||||
/* Resource leaks will follow if osk is initialized twice. */
|
/* Resource leaks will follow if osk is initialized twice. */
|
||||||
if (driver.osk_data)
|
if (driver.osk_data)
|
||||||
@ -376,7 +376,7 @@ void init_osk(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void uninit_osk(void)
|
static void uninit_osk(void)
|
||||||
{
|
{
|
||||||
if (driver.osk_data && driver.osk && driver.osk->free)
|
if (driver.osk_data && driver.osk && driver.osk->free)
|
||||||
driver.osk->free(driver.osk_data);
|
driver.osk->free(driver.osk_data);
|
||||||
|
@ -92,7 +92,7 @@ struct rarch_softfilter
|
|||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
const struct softfilter_implementation *softfilter_find_implementation(rarch_softfilter_t *filt, const char *ident)
|
static const struct softfilter_implementation *softfilter_find_implementation(rarch_softfilter_t *filt, const char *ident)
|
||||||
{
|
{
|
||||||
unsigned i;
|
unsigned i;
|
||||||
for (i = 0; i < filt->num_plugs; i++)
|
for (i = 0; i < filt->num_plugs; i++)
|
||||||
|
@ -82,7 +82,7 @@ static void *gl_init_font(void *gl_data, const char *font_path, float font_size)
|
|||||||
return font;
|
return font;
|
||||||
}
|
}
|
||||||
|
|
||||||
void gl_free_font(void *data)
|
static void gl_free_font(void *data)
|
||||||
{
|
{
|
||||||
gl_raster_t *font = (gl_raster_t*)data;
|
gl_raster_t *font = (gl_raster_t*)data;
|
||||||
if (!font)
|
if (!font)
|
||||||
|
4
hash.c
4
hash.c
@ -309,7 +309,7 @@ void SHA1Reset(SHA1Context *context)
|
|||||||
context->Corrupted = 0;
|
context->Corrupted = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SHA1ProcessMessageBlock(SHA1Context *context)
|
static void SHA1ProcessMessageBlock(SHA1Context *context)
|
||||||
{
|
{
|
||||||
const unsigned K[] = /* Constants defined in SHA-1 */
|
const unsigned K[] = /* Constants defined in SHA-1 */
|
||||||
{
|
{
|
||||||
@ -401,7 +401,7 @@ void SHA1ProcessMessageBlock(SHA1Context *context)
|
|||||||
context->Message_Block_Index = 0;
|
context->Message_Block_Index = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SHA1PadMessage(SHA1Context *context)
|
static void SHA1PadMessage(SHA1Context *context)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Check to see if the current message block is too small to hold
|
* Check to see if the current message block is too small to hold
|
||||||
|
@ -618,7 +618,7 @@ static uint64_t apple_input_get_capabilities(void *data)
|
|||||||
return caps;
|
return caps;
|
||||||
}
|
}
|
||||||
|
|
||||||
const rarch_joypad_driver_t *apple_get_joypad_driver(void *data)
|
static const rarch_joypad_driver_t *apple_get_joypad_driver(void *data)
|
||||||
{
|
{
|
||||||
return joypad;
|
return joypad;
|
||||||
}
|
}
|
||||||
|
@ -35,7 +35,7 @@ struct apple_pad_connection
|
|||||||
|
|
||||||
static IOHIDManagerRef g_hid_manager;
|
static IOHIDManagerRef g_hid_manager;
|
||||||
|
|
||||||
void apple_pad_send_control(struct apple_pad_connection* connection, uint8_t* data, size_t size)
|
static void apple_pad_send_control(struct apple_pad_connection* connection, uint8_t* data, size_t size)
|
||||||
{
|
{
|
||||||
IOHIDDeviceSetReport(connection->device, kIOHIDReportTypeOutput, 0x01, data + 1, size - 1);
|
IOHIDDeviceSetReport(connection->device, kIOHIDReportTypeOutput, 0x01, data + 1, size - 1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user