mirror of
https://github.com/mpv-player/mpv
synced 2024-12-12 01:46:16 +00:00
e7db4ccf1a
patch replaces '()' for the correct '(void)' in function declarations/prototypes which have no parameters. The '()' syntax tell thats there is a variable list of arguments, so that the compiler cannot check this. The extra CFLAG '-Wstrict-declarations' shows those cases. Comments about a similar patch applied to ffmpeg: That in C++ these mean the same, but in ANSI C the semantics are different; function() is an (obsolete) K&R C style forward declaration, it basically means that the function can have any number and any types of parameters, effectively completely preventing the compiler from doing any sort of type checking. -- Erik Slagter Defining functions with unspecified arguments is allowed but bad. With arguments unspecified the compiler can't report an error/warning if the function is called with incorrect arguments. -- Måns Rullgård git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17567 b3059339-0415-0410-9bf9-f77b7e298cf2
65 lines
1.2 KiB
C
65 lines
1.2 KiB
C
|
|
#ifndef __MPLAYER_MAIN
|
|
#define __MPLAYER_MAIN
|
|
|
|
#include "libvo/sub.h"
|
|
#include "subreader.h"
|
|
|
|
extern int use_gui;
|
|
extern char* current_module;
|
|
|
|
extern char * dvd_device;
|
|
extern char * cdrom_device;
|
|
|
|
extern char ** audio_fm_list;
|
|
extern char ** video_fm_list;
|
|
extern char ** video_driver_list;
|
|
extern char ** audio_driver_list;
|
|
extern char * video_driver;
|
|
extern char * audio_driver;
|
|
extern float audio_delay;
|
|
|
|
extern int osd_level;
|
|
extern int osd_visible;
|
|
|
|
extern char * font_name;
|
|
extern float font_factor;
|
|
extern float movie_aspect;
|
|
extern float force_fps;
|
|
|
|
//extern char **sub_name;
|
|
extern float sub_delay;
|
|
extern float sub_fps;
|
|
extern int sub_auto;
|
|
extern int sub_pos;
|
|
extern int sub_unicode;
|
|
extern char * sub_cp;
|
|
extern sub_data* subdata; //currently used subtitles
|
|
extern subtitle* vo_sub;
|
|
extern int suboverlap_enabled;
|
|
|
|
extern char * filename;
|
|
|
|
extern int stream_cache_size;
|
|
extern int force_ni;
|
|
extern int index_mode;
|
|
extern int autosync;
|
|
|
|
// libmpcodecs:
|
|
extern int fullscreen;
|
|
extern int flip;
|
|
|
|
extern int frame_dropping;
|
|
|
|
extern int auto_quality;
|
|
|
|
extern int audio_id;
|
|
extern int video_id;
|
|
extern int dvdsub_id;
|
|
extern int vobsub_id;
|
|
|
|
extern void exit_player(char* how);
|
|
extern void update_set_of_subtitles(void);
|
|
|
|
#endif
|