[MPlayer-cvslog] r22904 - in trunk: libass/ass_bitmap.c libass/ass_bitmap.h libass/ass_mp.c libass/ass_mp.h libass/ass_render.c libmpcodecs/ad_libdv.c libmpcodecs/vd_libdv.c libmpcodecs/vd_xanim.c libmpdemux/demux_mpg.c libvo/vo_directfb2.c libvo/vo_svga.c libvo/vo_x11.c libvo/x11_common.c libvo/x11_common.h mp_msg.c osdep/getch2-win.c osdep/getch2.c
uau
subversion at mplayerhq.hu
Sun Apr 1 23:59:55 CEST 2007
Author: uau
Date: Sun Apr 1 23:59:54 2007
New Revision: 22904
Modified:
trunk/libass/ass_bitmap.c
trunk/libass/ass_bitmap.h
trunk/libass/ass_mp.c
trunk/libass/ass_mp.h
trunk/libass/ass_render.c
trunk/libmpcodecs/ad_libdv.c
trunk/libmpcodecs/vd_libdv.c
trunk/libmpcodecs/vd_xanim.c
trunk/libmpdemux/demux_mpg.c
trunk/libvo/vo_directfb2.c
trunk/libvo/vo_svga.c
trunk/libvo/vo_x11.c
trunk/libvo/x11_common.c
trunk/libvo/x11_common.h
trunk/mp_msg.c
trunk/osdep/getch2-win.c
trunk/osdep/getch2.c
Log:
"()" to "(void)" function param list fixes
patch from Stefan Huehner, stefan huehner org
Modified: trunk/libass/ass_bitmap.c
==============================================================================
--- trunk/libass/ass_bitmap.c (original)
+++ trunk/libass/ass_bitmap.c Sun Apr 1 23:59:54 2007
@@ -104,7 +104,7 @@ static void resize_tmp(ass_synth_priv_t*
priv->tmp = malloc((priv->tmp_w + 1) * priv->tmp_h * sizeof(short));
}
-ass_synth_priv_t* ass_synth_init()
+ass_synth_priv_t* ass_synth_init(void)
{
ass_synth_priv_t* priv = calloc(1, sizeof(ass_synth_priv_t));
generate_tables(priv, blur_radius);
Modified: trunk/libass/ass_bitmap.h
==============================================================================
--- trunk/libass/ass_bitmap.h (original)
+++ trunk/libass/ass_bitmap.h Sun Apr 1 23:59:54 2007
@@ -23,7 +23,7 @@
typedef struct ass_synth_priv_s ass_synth_priv_t;
-ass_synth_priv_t* ass_synth_init();
+ass_synth_priv_t* ass_synth_init(void);
void ass_synth_done(ass_synth_priv_t* priv);
typedef struct bitmap_s {
Modified: trunk/libass/ass_mp.c
==============================================================================
--- trunk/libass/ass_mp.c (original)
+++ trunk/libass/ass_mp.c Sun Apr 1 23:59:54 2007
@@ -240,7 +240,7 @@ void ass_configure_fonts(ass_renderer_t*
free(family);
}
-ass_library_t* ass_init() {
+ass_library_t* ass_init(void) {
ass_library_t* priv;
char* path = get_path("fonts");
priv = ass_library_init();
Modified: trunk/libass/ass_mp.h
==============================================================================
--- trunk/libass/ass_mp.h (original)
+++ trunk/libass/ass_mp.h Sun Apr 1 23:59:54 2007
@@ -42,7 +42,7 @@ ass_track_t* ass_read_subdata(ass_librar
void ass_configure(ass_renderer_t* priv, int w, int h);
void ass_configure_fonts(ass_renderer_t* priv);
-ass_library_t* ass_init();
+ass_library_t* ass_init(void);
typedef struct {
ass_image_t* imgs;
Modified: trunk/libass/ass_render.c
==============================================================================
--- trunk/libass/ass_render.c (original)
+++ trunk/libass/ass_render.c Sun Apr 1 23:59:54 2007
@@ -680,7 +680,7 @@ static unsigned interpolate_alpha(long l
return a;
}
-static void reset_render_context();
+static void reset_render_context(void);
/**
* \brief Parse style override tag.
@@ -1293,7 +1293,7 @@ static void get_glyph(int symbol, glyph_
* lines[].asc
* lines[].desc
*/
-static void measure_text()
+static void measure_text(void)
{
int cur_line = 0, max_asc = 0, max_desc = 0;
int i;
Modified: trunk/libmpcodecs/ad_libdv.c
==============================================================================
--- trunk/libmpcodecs/ad_libdv.c (original)
+++ trunk/libmpcodecs/ad_libdv.c Sun Apr 1 23:59:54 2007
@@ -32,7 +32,7 @@ static ad_info_t info =
LIBAD_EXTERN(libdv)
// defined in vd_libdv.c:
-dv_decoder_t* init_global_rawdv_decoder();
+dv_decoder_t* init_global_rawdv_decoder(void);
static int preinit(sh_audio_t *sh_audio)
{
Modified: trunk/libmpcodecs/vd_libdv.c
==============================================================================
--- trunk/libmpcodecs/vd_libdv.c (original)
+++ trunk/libmpcodecs/vd_libdv.c Sun Apr 1 23:59:54 2007
@@ -36,7 +36,7 @@ static int control(sh_video_t *sh,int cm
static dv_decoder_t* global_rawdv_decoder=NULL;
-dv_decoder_t* init_global_rawdv_decoder()
+dv_decoder_t* init_global_rawdv_decoder(void)
{
if(!global_rawdv_decoder){
global_rawdv_decoder=dv_decoder_new(TRUE,TRUE,FALSE);
Modified: trunk/libmpcodecs/vd_xanim.c
==============================================================================
--- trunk/libmpcodecs/vd_xanim.c (original)
+++ trunk/libmpcodecs/vd_xanim.c Sun Apr 1 23:59:54 2007
@@ -356,12 +356,12 @@ void XA_Add_Func_To_Free_Chain(XA_ANIM_H
}
-unsigned long XA_Time_Read()
+unsigned long XA_Time_Read(void)
{
return GetTimer(); //(GetRelativeTime());
}
-void XA_dummy()
+void XA_dummy(void)
{
XA_Print("dummy() called");
}
Modified: trunk/libmpdemux/demux_mpg.c
==============================================================================
--- trunk/libmpdemux/demux_mpg.c (original)
+++ trunk/libmpdemux/demux_mpg.c Sun Apr 1 23:59:54 2007
@@ -576,7 +576,7 @@ static int num_h264_pps=0;
static int num_mp3audio_packets=0;
-static void clear_stats()
+static void clear_stats(void)
{
num_elementary_packets100=0;
num_elementary_packets101=0;
Modified: trunk/libvo/vo_directfb2.c
==============================================================================
--- trunk/libvo/vo_directfb2.c (original)
+++ trunk/libvo/vo_directfb2.c Sun Apr 1 23:59:54 2007
@@ -139,7 +139,7 @@ static int field_parity = -1;
* implementation *
******************************/
-void unlock() {
+void unlock(void) {
if (frame && framelocked) frame->Unlock(frame);
if (primary && primarylocked) primary->Unlock(primary);
}
Modified: trunk/libvo/vo_svga.c
==============================================================================
--- trunk/libvo/vo_svga.c (original)
+++ trunk/libvo/vo_svga.c Sun Apr 1 23:59:54 2007
@@ -109,7 +109,7 @@ LIBVO_EXTERN(svga)
//return number of 1'st free page or -1 if no free one
-static inline int page_find_free(){
+static inline int page_find_free(void){
int i;
for(i=0;i<max_pages;i++)
if(PageStore[i].locks == PAGE_EMPTY) return i;
Modified: trunk/libvo/vo_x11.c
==============================================================================
--- trunk/libvo/vo_x11.c (original)
+++ trunk/libvo/vo_x11.c Sun Apr 1 23:59:54 2007
@@ -93,7 +93,7 @@ static int aspect; // 1<<16
static int old_vo_dwidth = -1;
static int old_vo_dheight = -1;
-static void check_events()
+static void check_events(void)
{
int ret = vo_x11_check_events(mDisplay);
Modified: trunk/libvo/x11_common.c
==============================================================================
--- trunk/libvo/x11_common.c (original)
+++ trunk/libvo/x11_common.c Sun Apr 1 23:59:54 2007
@@ -2287,7 +2287,7 @@ static Atom xv_intern_atom_if_exists( ch
* \brief Try to enable vsync for xv.
* \return Returns -1 if not available, 0 on failure and 1 on success.
*/
-int vo_xv_enable_vsync()
+int vo_xv_enable_vsync(void)
{
Atom xv_atom = xv_intern_atom_if_exists("XV_SYNC_TO_VBLANK");
if (xv_atom == None)
@@ -2343,7 +2343,7 @@ void vo_xv_get_max_img_dim( uint32_t * w
* Outputs the content of |ck_handling| as a readable message.
*
*/
-void vo_xv_print_ck_info()
+void vo_xv_print_ck_info(void)
{
mp_msg( MSGT_VO, MSGL_V, "[xv common] " );
@@ -2411,7 +2411,7 @@ void vo_xv_print_ck_info()
* NOTE: If vo_colorkey has bits set after the first 3 low order bytes
* we don't draw anything as this means it was forced to off.
*/
-int vo_xv_init_colorkey()
+int vo_xv_init_colorkey(void)
{
Atom xv_atom;
int rez;
Modified: trunk/libvo/x11_common.h
==============================================================================
--- trunk/libvo/x11_common.h (original)
+++ trunk/libvo/x11_common.h Sun Apr 1 23:59:54 2007
@@ -74,7 +74,7 @@ extern unsigned int xv_port;
extern int vo_xv_set_eq(uint32_t xv_port, char * name, int value);
extern int vo_xv_get_eq(uint32_t xv_port, char * name, int *value);
-extern int vo_xv_enable_vsync();
+extern int vo_xv_enable_vsync(void);
extern void vo_xv_get_max_img_dim( uint32_t * width, uint32_t * height );
@@ -96,7 +96,7 @@ typedef struct xv_ck_info_s
extern xv_ck_info_t xv_ck_info;
extern unsigned long xv_colorkey;
-extern int vo_xv_init_colorkey();
+extern int vo_xv_init_colorkey(void);
extern void vo_xv_draw_colorkey(int32_t x, int32_t y, int32_t w, int32_t h);
extern void xv_setup_colorkeyhandling(char const * ck_method_str, char const * ck_str);
Modified: trunk/mp_msg.c
==============================================================================
--- trunk/mp_msg.c (original)
+++ trunk/mp_msg.c Sun Apr 1 23:59:54 2007
@@ -11,7 +11,7 @@
#ifdef USE_ICONV
#include <iconv.h>
#include <errno.h>
-extern char* get_term_charset();
+extern char* get_term_charset(void);
#endif
#if defined(FOR_MENCODER)
Modified: trunk/osdep/getch2-win.c
==============================================================================
--- trunk/osdep/getch2-win.c (original)
+++ trunk/osdep/getch2-win.c Sun Apr 1 23:59:54 2007
@@ -157,7 +157,7 @@ static const struct {
{ 0, NULL }
};
-char* get_term_charset()
+char* get_term_charset(void)
{
static char codepage[10];
unsigned i, cpno = GetConsoleOutputCP();
Modified: trunk/osdep/getch2.c
==============================================================================
--- trunk/osdep/getch2.c (original)
+++ trunk/osdep/getch2.c Sun Apr 1 23:59:54 2007
@@ -244,7 +244,7 @@ void getch2_disable(void){
}
#ifdef USE_ICONV
-char* get_term_charset()
+char* get_term_charset(void)
{
char* charset = NULL;
#ifdef USE_LANGINFO
More information about the MPlayer-cvslog
mailing list