[MPlayer-cvslog] r25581 - in trunk: access_mpcontext.h asxparser.h cfg-mencoder.h cfg-mplayer.h command.h cputable.h drivers/3dfx.h drivers/tdfx_vid.h input/input.h input/joystick.h input/lirc.h input/mouse.h libaf/af_hrtf.h libaf/af_resample.h libaf/equalizer.h libao2/audio_out_internal.h libmenu/menu.h libmenu/menu_list.h libmpcodecs/ad.h libmpcodecs/ad_internal.h libmpcodecs/dec_audio.h libmpcodecs/dec_video.h libmpcodecs/pullup.h libmpcodecs/vd.h libmpcodecs/vd_internal.h libmpcodecs/vf.h libmpcodecs/vf_scale.h libmpcodecs/vfcap.h libmpdemux/demux_avs.h libmpdemux/mp3_hdr.h libmpdemux/mpeg_hdr.h libmpdemux/muxer.h libmpdemux/nuppelvideo.h libmpdemux/parse_es.h libvo/jpeg_enc.h libvo/osd_font.h libvo/video_out_internal.h libvo/videodev_mjpeg.h libvo/w32_common.h loader/debug.h loader/qt_comp.h loader/qt_fv.h loader/qtx/qtxsdk/components.h loader/qtx/qtxsdk/select.h m_property.h mp_core.h mpcommon.h osdep/getch2.h osdep/glob.h osdep/keycodes.h osdep/shmem.h parser-mecmd.h stream/frequencies.h stream/netstream.h stream/stream_dvd.h stream/stream_dvd_common.h vidix/AsmMacros.h vidix/cyberblade_regs.h vidix/dhahelperwin/ntverp.h xvmc_render.h

diego subversion at mplayerhq.hu
Tue Jan 1 22:35:58 CET 2008


Author: diego
Date: Tue Jan  1 22:35:58 2008
New Revision: 25581

Log:
Add multiple inclusion guards to all header files that lack them.


Modified:
   trunk/access_mpcontext.h
   trunk/asxparser.h
   trunk/cfg-mencoder.h
   trunk/cfg-mplayer.h
   trunk/command.h
   trunk/cputable.h
   trunk/drivers/3dfx.h
   trunk/drivers/tdfx_vid.h
   trunk/input/input.h
   trunk/input/joystick.h
   trunk/input/lirc.h
   trunk/input/mouse.h
   trunk/libaf/af_hrtf.h
   trunk/libaf/af_resample.h
   trunk/libaf/equalizer.h
   trunk/libao2/audio_out_internal.h
   trunk/libmenu/menu.h
   trunk/libmenu/menu_list.h
   trunk/libmpcodecs/ad.h
   trunk/libmpcodecs/ad_internal.h
   trunk/libmpcodecs/dec_audio.h
   trunk/libmpcodecs/dec_video.h
   trunk/libmpcodecs/pullup.h
   trunk/libmpcodecs/vd.h
   trunk/libmpcodecs/vd_internal.h
   trunk/libmpcodecs/vf.h
   trunk/libmpcodecs/vf_scale.h
   trunk/libmpcodecs/vfcap.h
   trunk/libmpdemux/demux_avs.h
   trunk/libmpdemux/mp3_hdr.h
   trunk/libmpdemux/mpeg_hdr.h
   trunk/libmpdemux/muxer.h
   trunk/libmpdemux/nuppelvideo.h
   trunk/libmpdemux/parse_es.h
   trunk/libvo/jpeg_enc.h
   trunk/libvo/osd_font.h
   trunk/libvo/video_out_internal.h
   trunk/libvo/videodev_mjpeg.h
   trunk/libvo/w32_common.h
   trunk/loader/debug.h
   trunk/loader/qt_comp.h
   trunk/loader/qt_fv.h
   trunk/loader/qtx/qtxsdk/components.h
   trunk/loader/qtx/qtxsdk/select.h
   trunk/m_property.h
   trunk/mp_core.h
   trunk/mpcommon.h
   trunk/osdep/getch2.h
   trunk/osdep/glob.h
   trunk/osdep/keycodes.h
   trunk/osdep/shmem.h
   trunk/parser-mecmd.h
   trunk/stream/frequencies.h
   trunk/stream/netstream.h
   trunk/stream/stream_dvd.h
   trunk/stream/stream_dvd_common.h
   trunk/vidix/AsmMacros.h
   trunk/vidix/cyberblade_regs.h
   trunk/vidix/dhahelperwin/ntverp.h
   trunk/xvmc_render.h

Modified: trunk/access_mpcontext.h
==============================================================================
--- trunk/access_mpcontext.h	(original)
+++ trunk/access_mpcontext.h	Tue Jan  1 22:35:58 2008
@@ -1,3 +1,6 @@
+#ifndef ACCESS_MPCONTEXT_H
+#define ACCESS_MPCONTEXT_H
+
 struct MPContext;
 void *mpctx_get_video_out(struct MPContext *mpctx);
 void *mpctx_get_audio_out(struct MPContext *mpctx);
@@ -6,3 +9,5 @@ void *mpctx_get_playtree_iter(struct MPC
 void *mpctx_get_mixer(struct MPContext *mpctx);
 int mpctx_get_global_sub_size(struct MPContext *mpctx);
 int mpctx_get_osd_function(struct MPContext *mpctx);
+
+#endif /* ACCESS_MPCONTEXT_H */

Modified: trunk/asxparser.h
==============================================================================
--- trunk/asxparser.h	(original)
+++ trunk/asxparser.h	Tue Jan  1 22:35:58 2008
@@ -1,4 +1,5 @@
-
+#ifndef ASXPARSER_H
+#define ASXPARSER_H
 
 typedef struct _ASX_Parser_t ASX_Parser_t;
 
@@ -47,3 +48,5 @@ typedef void (*ASX_FreeFunc)(void* arg);
 
 void
 asx_list_free(void* list_ptr,ASX_FreeFunc free_func);
+
+#endif /* ASXPARSER_H */

Modified: trunk/cfg-mencoder.h
==============================================================================
--- trunk/cfg-mencoder.h	(original)
+++ trunk/cfg-mencoder.h	Tue Jan  1 22:35:58 2008
@@ -1,3 +1,5 @@
+#ifndef CFG_MENCODER_H
+#define CFG_MENCODER_H
 
 /*
  * config for cfgparser
@@ -265,3 +267,5 @@ const m_option_t mencoder_opts[]={
 //	{"h", help_text, CONF_TYPE_PRINT, CONF_NOCFG, 0, 0, NULL},
 	{NULL, NULL, 0, 0, 0, 0, NULL}
 };
+
+#endif /* CFG_MENCODER.H */

Modified: trunk/cfg-mplayer.h
==============================================================================
--- trunk/cfg-mplayer.h	(original)
+++ trunk/cfg-mplayer.h	Tue Jan  1 22:35:58 2008
@@ -1,3 +1,6 @@
+#ifndef CFG_MPLAYER_H
+#define CFG_MPLAYER_H
+
 /*
  * config for cfgparser
  */
@@ -363,3 +366,6 @@ const m_option_t mplayer_opts[]={
 	{"vd", vd_conf, CONF_TYPE_SUBCONFIG, 0, 0, 0, NULL},
 	{NULL, NULL, 0, 0, 0, 0, NULL}
 };
+
+#endif /* CFG_MPLAYER_H */
+

Modified: trunk/command.h
==============================================================================
--- trunk/command.h	(original)
+++ trunk/command.h	Tue Jan  1 22:35:58 2008
@@ -1,3 +1,8 @@
+#ifndef COMMAND_H
+#define COMMAND_H
+
 int run_command(struct MPContext *mpctx, mp_cmd_t *cmd);
 char *property_expand_string(struct MPContext *mpctx, char *str);
 void property_print_help(void);
+
+#endif /* COMMAND_H */

Modified: trunk/cputable.h
==============================================================================
--- trunk/cputable.h	(original)
+++ trunk/cputable.h	Tue Jan  1 22:35:58 2008
@@ -4,6 +4,9 @@
  * Family F codenames owe much thanks to Neil Phillips, author of x86test.
  */
 
+#ifndef CPUTABLE_H
+#define CPUTABLE_H
+
 #define MAX_VENDORS 8 /* Number of CPU Vendors */
 
 //#define N_UNKNOWN "unknown"
@@ -526,3 +529,4 @@ static const struct {
 	{"GenuineTMx86","Transmeta"}
 };	
 
+#endif /* CPUTABLE_H */

Modified: trunk/drivers/3dfx.h
==============================================================================
--- trunk/drivers/3dfx.h	(original)
+++ trunk/drivers/3dfx.h	Tue Jan  1 22:35:58 2008
@@ -20,6 +20,8 @@
  *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
+#ifndef MPLAYER_3DFX_H
+#define MPLAYER_3DFX_H
 
 #define VOODOO_IO_REG_OFFSET     ((unsigned long int)0x0000000)
 #define VOODOO_YUV_REG_OFFSET    ((unsigned long int)0x0080100)
@@ -370,4 +372,4 @@ typedef struct voodoo_yuv_fb_t voodoo_yu
 
 /* ------------------------------------------------------------------------- */
 
-
+#endif /* MPLAYER_3DFX_H */

Modified: trunk/drivers/tdfx_vid.h
==============================================================================
--- trunk/drivers/tdfx_vid.h	(original)
+++ trunk/drivers/tdfx_vid.h	Tue Jan  1 22:35:58 2008
@@ -1,4 +1,5 @@
-
+#ifndef TDFX_VID_H
+#define TDFX_VID_H
 
 #define TDFX_VID_VERSION 1
 
@@ -104,3 +105,4 @@ typedef struct tdfx_vid_overlay_s {
 #define TDFX_VID_OVERLAY_ON _IO ('J', 8)
 #define TDFX_VID_OVERLAY_OFF _IO ('J', 9)
 
+#endif /* TDFX_VID_H */

Modified: trunk/input/input.h
==============================================================================
--- trunk/input/input.h	(original)
+++ trunk/input/input.h	Tue Jan  1 22:35:58 2008
@@ -1,3 +1,6 @@
+#ifndef INPUT_H
+#define INPUT_H
+
 // All command IDs
 #define MP_CMD_SEEK   0
 #define MP_CMD_AUDIO_DELAY 1
@@ -294,3 +297,4 @@ mp_input_uninit(void);
 int
 mp_input_check_interrupt(int time);
 
+#endif /* INPUT_H */

Modified: trunk/input/joystick.h
==============================================================================
--- trunk/input/joystick.h	(original)
+++ trunk/input/joystick.h	Tue Jan  1 22:35:58 2008
@@ -1,3 +1,5 @@
+#ifndef JOYSTICK_H
+#define JOYSTICK_H
 
 #define JOY_BASE   (0x100+128)
 #define JOY_AXIS0_PLUS (JOY_BASE+0)
@@ -37,3 +39,4 @@ int mp_input_joystick_init(char* dev);
 
 int mp_input_joystick_read(int fd);
 
+#endif /* JOYSTICK_H */

Modified: trunk/input/lirc.h
==============================================================================
--- trunk/input/lirc.h	(original)
+++ trunk/input/lirc.h	Tue Jan  1 22:35:58 2008
@@ -1,4 +1,5 @@
-
+#ifndef LIRC_H
+#define LIRC_H
 
 int 
 mp_input_lirc_init(void);
@@ -8,3 +9,5 @@ mp_input_lirc_read(int fd,char* dest, in
 
 void
 mp_input_lirc_close(int fd);
+
+#define /* LIRC_H */

Modified: trunk/input/mouse.h
==============================================================================
--- trunk/input/mouse.h	(original)
+++ trunk/input/mouse.h	Tue Jan  1 22:35:58 2008
@@ -1,4 +1,5 @@
-
+#ifndef MOUSE_H
+#define MOUSE_H
 
 #define MOUSE_BASE ((0x100+256)|MP_NO_REPEAT_KEY)
 #define MOUSE_BTN0 (MOUSE_BASE+0)
@@ -23,3 +24,5 @@
 #define MOUSE_BTN7_DBL (MOUSE_BASE_DBL+7)
 #define MOUSE_BTN8_DBL (MOUSE_BASE_DBL+8)
 #define MOUSE_BTN9_DBL (MOUSE_BASE_DBL+9)
+
+#endif /* MOUSE_H */

Modified: trunk/libaf/af_hrtf.h
==============================================================================
--- trunk/libaf/af_hrtf.h	(original)
+++ trunk/libaf/af_hrtf.h	Tue Jan  1 22:35:58 2008
@@ -1,3 +1,6 @@
+#ifndef AF_HRTF_H
+#define AF_HRTF_H
+
 #define HRTF_MIX_51 0
 #define HRTF_MIX_STEREO 1
 #define HRTF_MIX_MATRIX2CH 2
@@ -486,3 +489,5 @@ float cr_filt[128] = {
    -0.00255615052036616, -0.0017721562881944813,
    -0.0002379619297227554, 0.0007130120121089036
 };
+
+#endif /* AF_HRTF_H */

Modified: trunk/libaf/af_resample.h
==============================================================================
--- trunk/libaf/af_resample.h	(original)
+++ trunk/libaf/af_resample.h	Tue Jan  1 22:35:58 2008
@@ -14,6 +14,9 @@
    only be included by af_resample.c 
 */ 
 
+#ifndef AF_RESAMPLE_H
+#define AF_RESAMPLE_H
+
 #undef L
 #undef SHIFT
 #undef FORMAT
@@ -159,3 +162,5 @@
   s->xi = xi;
   s->i = i;
 #endif /* DN */
+
+#endif /* AF_RESAMPLE_H */

Modified: trunk/libaf/equalizer.h
==============================================================================
--- trunk/libaf/equalizer.h	(original)
+++ trunk/libaf/equalizer.h	Tue Jan  1 22:35:58 2008
@@ -8,6 +8,9 @@
 //=============================================================================
 */
 
+#ifndef EQUALIZER_H
+#define EQUALIZER_H
+
 /* Equalizer plugin header file defines struct used for setting or
    getting the gain of a specific channel and frequency */
 
@@ -31,3 +34,5 @@ nr.    	center frequency
 8	8.000 kHz
 9       16.00 kHz
 */
+
+#endif /* EQUALIZER_H */

Modified: trunk/libao2/audio_out_internal.h
==============================================================================
--- trunk/libao2/audio_out_internal.h	(original)
+++ trunk/libao2/audio_out_internal.h	Tue Jan  1 22:35:58 2008
@@ -1,3 +1,5 @@
+#ifndef AUDIO_OUT_INTERNAL_H
+#define AUDIO_OUT_INTERNAL_H
 
 // prototypes:
 //static ao_info_t info;
@@ -25,3 +27,4 @@ static void audio_resume(void);
 	audio_resume\
 };
 
+#endif /* AUDIO_OUT_INTERNAL_H */

Modified: trunk/libmenu/menu.h
==============================================================================
--- trunk/libmenu/menu.h	(original)
+++ trunk/libmenu/menu.h	Tue Jan  1 22:35:58 2008
@@ -1,3 +1,5 @@
+#ifndef MENU_H
+#define MENU_H
 
 struct menu_priv_s;
 typedef struct  menu_s menu_t;
@@ -89,3 +91,5 @@ void menu_draw_text_full(mp_image_t* mpi
 			 int vspace, int warp, int align, int anchor);
 
 void menu_draw_box(mp_image_t* mpi, unsigned char grey, unsigned char alpha, int x, int y, int w, int h);
+
+#endif /* MENU_H */

Modified: trunk/libmenu/menu_list.h
==============================================================================
--- trunk/libmenu/menu_list.h	(original)
+++ trunk/libmenu/menu_list.h	Tue Jan  1 22:35:58 2008
@@ -1,3 +1,5 @@
+#ifndef MENU_LIST_H
+#define MENU_LIST_H
 
 typedef struct list_entry_s list_entry_t;
 
@@ -80,5 +82,5 @@ extern const menu_list_priv_t menu_list_
   { "ptr-bg", M_ST_OFF(menu_list_priv_t,ptr_bg), CONF_TYPE_INT, M_OPT_RANGE, -1, 255, NULL }, \
   { "ptr-bg-alpha", M_ST_OFF(menu_list_priv_t,ptr_bg_alpha), \
     CONF_TYPE_INT, M_OPT_RANGE, 0, 255, NULL } \
-  
 
+#endif /* MENU_LIST_H */

Modified: trunk/libmpcodecs/ad.h
==============================================================================
--- trunk/libmpcodecs/ad.h	(original)
+++ trunk/libmpcodecs/ad.h	Tue Jan  1 22:35:58 2008
@@ -1,3 +1,5 @@
+#ifndef AD_H
+#define AD_H
 
 #include "mpc_info.h"
 typedef mp_codec_info_t ad_info_t;
@@ -28,3 +30,4 @@ extern ad_functions_t* mpcodecs_ad_drive
 // fallback: use hw mixer in libao
 #define ADCTRL_SET_VOLUME 4 /* set volume (used for mp3lib and liba52) */
 
+#endif /* AD_H */

Modified: trunk/libmpcodecs/ad_internal.h
==============================================================================
--- trunk/libmpcodecs/ad_internal.h	(original)
+++ trunk/libmpcodecs/ad_internal.h	Tue Jan  1 22:35:58 2008
@@ -1,3 +1,5 @@
+#ifndef AD_INTERNAL_H
+#define AD_INTERNAL_H
 
 #include "codec-cfg.h"
 #include "libaf/af_format.h"
@@ -24,3 +26,4 @@ static int decode_audio(sh_audio_t *sh,u
 	decode_audio\
 };
 
+#endif /* AD_INTERNAL_H */

Modified: trunk/libmpcodecs/dec_audio.h
==============================================================================
--- trunk/libmpcodecs/dec_audio.h	(original)
+++ trunk/libmpcodecs/dec_audio.h	Tue Jan  1 22:35:58 2008
@@ -1,3 +1,5 @@
+#ifndef DEC_AUDIO_H
+#define DEC_AUDIO_H
 
 // dec_audio.c:
 extern void afm_help(void);
@@ -9,3 +11,5 @@ extern void uninit_audio(sh_audio_t *sh_
 
 extern int init_audio_filters(sh_audio_t *sh_audio, int in_samplerate,
 		int *out_samplerate, int *out_channels, int *out_format);
+
+#endif /* DEC_AUDIO_H */

Modified: trunk/libmpcodecs/dec_video.h
==============================================================================
--- trunk/libmpcodecs/dec_video.h	(original)
+++ trunk/libmpcodecs/dec_video.h	Tue Jan  1 22:35:58 2008
@@ -1,3 +1,5 @@
+#ifndef DEC_VIDEO_H
+#define DEC_VIDEO_H
 
 // dec_video.c:
 extern void vfm_help(void);
@@ -18,3 +20,5 @@ extern void resync_video_stream(sh_video
 extern int get_current_video_decoder_lag(sh_video_t *sh_video);
 
 extern int divx_quality;
+
+#endif /* DEC_VIDEO_H */

Modified: trunk/libmpcodecs/pullup.h
==============================================================================
--- trunk/libmpcodecs/pullup.h	(original)
+++ trunk/libmpcodecs/pullup.h	Tue Jan  1 22:35:58 2008
@@ -1,4 +1,5 @@
-
+#ifndef PULLUP_H
+#define PULLUP_H
 
 #define PULLUP_CPU_MMX 1
 #define PULLUP_CPU_MMX2 2
@@ -80,4 +81,4 @@ void pullup_preinit_context(struct pullu
 void pullup_init_context(struct pullup_context *c);
 void pullup_free_context(struct pullup_context *c);
 
-
+#endif /* PULLUP_H */

Modified: trunk/libmpcodecs/vd.h
==============================================================================
--- trunk/libmpcodecs/vd.h	(original)
+++ trunk/libmpcodecs/vd.h	Tue Jan  1 22:35:58 2008
@@ -1,3 +1,5 @@
+#ifndef VD_H
+#define VD_H
 
 #include "mp_image.h"
 #include "mpc_info.h"
@@ -32,3 +34,5 @@ mp_image_t* mpcodecs_get_image(sh_video_
 void mpcodecs_draw_slice(sh_video_t *sh, unsigned char** src, int* stride, int w,int h, int x, int y);
 
 #define VDFLAGS_DROPFRAME 3
+
+#endif /* VD_H */

Modified: trunk/libmpcodecs/vd_internal.h
==============================================================================
--- trunk/libmpcodecs/vd_internal.h	(original)
+++ trunk/libmpcodecs/vd_internal.h	Tue Jan  1 22:35:58 2008
@@ -1,3 +1,5 @@
+#ifndef VD_INTERNAL
+#define VD_INTERNAL
 
 #include "codec-cfg.h"
 #include "img_format.h"
@@ -25,3 +27,4 @@ static mp_image_t* decode(sh_video_t *sh
 	decode\
 };
 
+#endif /* VD_INTERNAL */

Modified: trunk/libmpcodecs/vf.h
==============================================================================
--- trunk/libmpcodecs/vf.h	(original)
+++ trunk/libmpcodecs/vf.h	Tue Jan  1 22:35:58 2008
@@ -1,3 +1,5 @@
+#ifndef VF_H
+#define VF_H
 
 struct vf_instance_s;
 struct vf_priv_s;
@@ -120,3 +122,5 @@ void vf_uninit_filter_chain(vf_instance_
 int vf_config_wrapper(struct vf_instance_s* vf,
 		      int width, int height, int d_width, int d_height,
 		      unsigned int flags, unsigned int outfmt);
+
+#endif /* VF_H */

Modified: trunk/libmpcodecs/vf_scale.h
==============================================================================
--- trunk/libmpcodecs/vf_scale.h	(original)
+++ trunk/libmpcodecs/vf_scale.h	Tue Jan  1 22:35:58 2008
@@ -1,4 +1,9 @@
 //GPL
 
+#ifndef VF_SCALE_H
+#define VF_SCALE_H
+
 int get_sws_cpuflags(void);
 struct SwsContext *sws_getContextFromCmdLine(int srcW, int srcH, int srcFormat, int dstW, int dstH, int dstFormat);
+
+#endif /* VF_SCALE_H */

Modified: trunk/libmpcodecs/vfcap.h
==============================================================================
--- trunk/libmpcodecs/vfcap.h	(original)
+++ trunk/libmpcodecs/vfcap.h	Tue Jan  1 22:35:58 2008
@@ -1,5 +1,8 @@
 // VFCAP_* values: they are flags, returned by query_format():
 
+#ifndef VFCAP_H
+#define VFCAP_H
+
 // set, if the given colorspace is supported (with or without conversion)
 #define VFCAP_CSP_SUPPORTED 0x1
 // set, if the given colorspace is supported _without_ conversion
@@ -30,3 +33,5 @@
 #define VFCAP_EOSD 0x2000
 // filter will draw EOSD at screen resolution (without scaling)
 #define VFCAP_EOSD_UNSCALED 0x4000
+
+#endif /* VFCAP_H */

Modified: trunk/libmpdemux/demux_avs.h
==============================================================================
--- trunk/libmpdemux/demux_avs.h	(original)
+++ trunk/libmpdemux/demux_avs.h	Tue Jan  1 22:35:58 2008
@@ -21,6 +21,9 @@
  * Boston, MA 02110-1301 USA.
  */
 
+#ifndef DEMUX_AVS_H
+#define DEMUX_AVS_H
+
 enum { AVISYNTH_INTERFACE_VERSION = 2 };
 
 enum
@@ -162,3 +165,5 @@ static inline int avs_bits_per_pixel(con
       default:           return 0;
     }
 }
+
+#endif /* DEMUX_AVS_H */

Modified: trunk/libmpdemux/mp3_hdr.h
==============================================================================
--- trunk/libmpdemux/mp3_hdr.h	(original)
+++ trunk/libmpdemux/mp3_hdr.h	Tue Jan  1 22:35:58 2008
@@ -1,3 +1,5 @@
+#ifndef MP3_HDR_H
+#define MP3_HDR_H
 
 int mp_get_mp3_header(unsigned char* hbuf,int* chans, int* freq, int* spf, int* mpa_layer, int* br);
 
@@ -9,3 +11,5 @@ static inline int mp_check_mp3_header(un
     if(mp_decode_mp3_header((unsigned char*)(&head))<=0) return 0;
     return 1;
 }
+
+#endif /* MP3_HDR_H */

Modified: trunk/libmpdemux/mpeg_hdr.h
==============================================================================
--- trunk/libmpdemux/mpeg_hdr.h	(original)
+++ trunk/libmpdemux/mpeg_hdr.h	Tue Jan  1 22:35:58 2008
@@ -1,3 +1,5 @@
+#ifndef MPEG_HDR_H
+#define MPEG_HDR_H
 
 typedef struct {
     // video info:
@@ -27,3 +29,5 @@ int mp4_header_process_vol(mp_mpeg_heade
 void mp4_header_process_vop(mp_mpeg_header_t * picture, unsigned char * buffer);
 int h264_parse_sps(mp_mpeg_header_t * picture, unsigned char * buf, int len);
 int mp_vc1_decode_sequence_header(mp_mpeg_header_t * picture, unsigned char * buf, int len);
+
+#endif /* MPEG_HDR_H */

Modified: trunk/libmpdemux/muxer.h
==============================================================================
--- trunk/libmpdemux/muxer.h	(original)
+++ trunk/libmpdemux/muxer.h	Tue Jan  1 22:35:58 2008
@@ -1,3 +1,5 @@
+#ifndef MUXER_H
+#define MUXER_H
 
 #define MUXER_MAX_STREAMS 16
 
@@ -113,3 +115,5 @@ int muxer_init_muxer_mpeg(muxer_t *);
 int muxer_init_muxer_rawvideo(muxer_t *);
 int muxer_init_muxer_lavf(muxer_t *);
 int muxer_init_muxer_rawaudio(muxer_t *);
+
+#endif /* MUXER_H */

Modified: trunk/libmpdemux/nuppelvideo.h
==============================================================================
--- trunk/libmpdemux/nuppelvideo.h	(original)
+++ trunk/libmpdemux/nuppelvideo.h	Tue Jan  1 22:35:58 2008
@@ -1,5 +1,8 @@
 /* nuppelvideo.h  rh */
 
+#ifndef NUPPELVIDEO_H
+#define NUPPELVIDEO_H
+
 #include "libavutil/intfloat_readwrite.h"
 
 typedef struct  __attribute__((packed)) rtfileheader
@@ -156,3 +159,4 @@ typedef struct audbuffertype
    (h)->lavc_maxqdiff = le2me_32((h)->lavc_maxqdiff);		\
   }
 
+#endif /* NUPPELVIDEO_H */

Modified: trunk/libmpdemux/parse_es.h
==============================================================================
--- trunk/libmpdemux/parse_es.h	(original)
+++ trunk/libmpdemux/parse_es.h	Tue Jan  1 22:35:58 2008
@@ -1,3 +1,5 @@
+#ifndef PARSE_ES_H
+#define PARSE_ES_H
 
 #define MAX_VIDEO_PACKET_SIZE (224*1024+4)
 #define VIDEOBUFFER_SIZE 0x100000
@@ -16,3 +18,4 @@ int read_video_packet(demux_stream_t *ds
 // return: next packet code
 int skip_video_packet(demux_stream_t *ds);
 
+#endif /* PARSE_ES_H */

Modified: trunk/libvo/jpeg_enc.h
==============================================================================
--- trunk/libvo/jpeg_enc.h	(original)
+++ trunk/libvo/jpeg_enc.h	Tue Jan  1 22:35:58 2008
@@ -22,6 +22,8 @@
  * http://www.ece.purdue.edu/~bourman/grad-labs/lab8/pdf/lab.pdf
  */
 
+#ifndef JPEG_ENC_H
+#define JPEG_ENC_H
 
 typedef struct {
 	struct MpegEncContext *s;
@@ -43,3 +45,5 @@ int jpeg_enc_frame(jpeg_enc_t *j, unsign
 		unsigned char *u_data, unsigned char *v_data, char *bufr);
 
 void jpeg_enc_uninit(jpeg_enc_t *j);
+
+#endif /* JPEG_ENC_H */

Modified: trunk/libvo/osd_font.h
==============================================================================
--- trunk/libvo/osd_font.h	(original)
+++ trunk/libvo/osd_font.h	Tue Jan  1 22:35:58 2008
@@ -1,3 +1,6 @@
+#ifndef OSD_FONT_H
+#define OSD_FONT_H
+
 const unsigned char osd_font_pfb[] = {
 0x80,0x01,0x02,0x17,0x00,0x00,0x25,0x21,0x50,0x53,0x2d,0x41,0x64,0x6f,0x62,0x65,
 0x46,0x6f,0x6e,0x74,0x2d,0x31,0x2e,0x30,0x3a,0x20,0x4f,0x53,0x44,0x20,0x31,0x2e,
@@ -520,3 +523,5 @@ const unsigned char osd_font_pfb[] = {
 0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,
 0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x0a,
 0x80,0x03,};
+
+#endif /* OSD_FONT_H */

Modified: trunk/libvo/video_out_internal.h
==============================================================================
--- trunk/libvo/video_out_internal.h	(original)
+++ trunk/libvo/video_out_internal.h	Tue Jan  1 22:35:58 2008
@@ -20,6 +20,9 @@
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#ifndef VIDEO_OUT_INTERNAL_H
+#define VIDEO_OUT_INTERNAL_H
+
 /* All video drivers will want this */
 #include "libmpcodecs/vfcap.h"
 #include "libmpcodecs/mp_image.h"
@@ -54,5 +57,4 @@ static int preinit(const char *);
 
 #include "osd.h"
 
-
-
+#endif /* VIDEO_OUT_INTERNAL_H */

Modified: trunk/libvo/videodev_mjpeg.h
==============================================================================
--- trunk/libvo/videodev_mjpeg.h	(original)
+++ trunk/libvo/videodev_mjpeg.h	Tue Jan  1 22:35:58 2008
@@ -3,6 +3,9 @@
    <rainer at johanni.de>
 */
 
+#ifndef VIDEODEV_MJPEG_H
+#define VIDEODEV_MJPEG_H
+
 /* This is identical with the mgavideo internal params struct, 
    please tell me if you change this struct here ! <gz at lysator.liu.se) */
 struct mjpeg_params
@@ -116,3 +119,5 @@ Private IOCTL to set up for displaying M
 #define MJPIOC_QBUF_PLAY      _IOW ('v', BASE_VIDIOCPRIVATE+4,  int)
 #define MJPIOC_SYNC           _IOR ('v', BASE_VIDIOCPRIVATE+5,  struct mjpeg_sync)
 #define MJPIOC_G_STATUS       _IOWR('v', BASE_VIDIOCPRIVATE+6,  struct mjpeg_status)
+
+#endif /* VIDEODEV_MJPEG_H */

Modified: trunk/libvo/w32_common.h
==============================================================================
--- trunk/libvo/w32_common.h	(original)
+++ trunk/libvo/w32_common.h	Tue Jan  1 22:35:58 2008
@@ -1,3 +1,6 @@
+#ifndef W32COMMON_H
+#define W32COMMON_H
+
 extern int vo_depthonscreen;
 extern int vo_screenwidth;
 extern int vo_screenheight;
@@ -17,3 +20,5 @@ extern int vo_w32_check_events(void);
 extern int vo_w32_config(uint32_t, uint32_t, uint32_t);
 extern void destroyRenderingContext(void);
 extern void w32_update_xinerama_info(void);
+
+#endif /* W32COMMON_H */

Modified: trunk/loader/debug.h
==============================================================================
--- trunk/loader/debug.h	(original)
+++ trunk/loader/debug.h	Tue Jan  1 22:35:58 2008
@@ -1,3 +1,6 @@
+#ifndef DEBUG_H
+#define DEBUG_H
+
 #ifdef DEBUG
 #define TRACE printf
 #define dbg_printf printf
@@ -5,3 +8,5 @@
 #define TRACE(...)
 #define dbg_printf(...)
 #endif
+
+#endif /* DEBUG_H */

Modified: trunk/loader/qt_comp.h
==============================================================================
--- trunk/loader/qt_comp.h	(original)
+++ trunk/loader/qt_comp.h	Tue Jan  1 22:35:58 2008
@@ -1,3 +1,5 @@
+#ifndef QT_COMP_H
+#define QT_COMP_H
 
 DECL_COMPONENT(sorenson3,"SMD_ComponentDispatch",1)
 DECL_COMPONENT(sorenson,"SorensonYUV9Dispatcher",1)
@@ -25,3 +27,4 @@ DECL_COMPONENT(mace3d,"Mace3DecompDispat
 
 //DECL_COMPONENT(,"",0)
 
+#endif /* QT_COMP_H */

Modified: trunk/loader/qt_fv.h
==============================================================================
--- trunk/loader/qt_fv.h	(original)
+++ trunk/loader/qt_fv.h	Tue Jan  1 22:35:58 2008
@@ -1,3 +1,6 @@
+#ifndef QT_FV_H
+#define QT_FV_H
+
 typedef struct qt_fv_s {
     unsigned int id;
     char* name;
@@ -1584,3 +1587,5 @@ qt_fv_t qt_fv_list[]={
 { 0x270028, "TENumStyles"},
 { 0x270029, "TEFeatureFlag"},
 { 0,NULL } };
+
+#endif /* QT_FV_H */

Modified: trunk/loader/qtx/qtxsdk/components.h
==============================================================================
--- trunk/loader/qtx/qtxsdk/components.h	(original)
+++ trunk/loader/qtx/qtxsdk/components.h	Tue Jan  1 22:35:58 2008
@@ -1,3 +1,6 @@
+#ifndef COMPONENTS_H
+#define COMPONENTS_H
+
 // Basic types:
 
 typedef char *                          Ptr;
@@ -739,3 +742,4 @@ static inline void dump_CodecDecompressP
 
 }
 
+#endif /* COMPONENTS_H */

Modified: trunk/loader/qtx/qtxsdk/select.h
==============================================================================
--- trunk/loader/qtx/qtxsdk/select.h	(original)
+++ trunk/loader/qtx/qtxsdk/select.h	Tue Jan  1 22:35:58 2008
@@ -1,3 +1,5 @@
+#ifndef SELECT_H
+#define SELECT_H
 
 enum {
     kComponentOpenSelect        = -1,                           /* ComponentInstance for this open */
@@ -66,3 +68,5 @@ enum {
     kImageCodecScheduleFrameSelect             = 0x0208,
     kImageCodecCancelTriggerSelect             = 0x0209
 };
+
+#endif /* SELECT_H */

Modified: trunk/m_property.h
==============================================================================
--- trunk/m_property.h	(original)
+++ trunk/m_property.h	Tue Jan  1 22:35:58 2008
@@ -1,3 +1,5 @@
+#ifndef M_PROPERTY_H
+#define M_PROPERTY_H
 
 /// \defgroup Properties
 ///
@@ -198,3 +200,5 @@ int m_property_bitrate(m_option_t* prop,
 ///@}
 
 ///@}
+
+#endif /* M_PROPERTY_H */

Modified: trunk/mp_core.h
==============================================================================
--- trunk/mp_core.h	(original)
+++ trunk/mp_core.h	Tue Jan  1 22:35:58 2008
@@ -1,3 +1,6 @@
+#ifndef MP_CORE_H
+#define MP_CORE_H
+
 // definitions used internally by the core player code
 
 #define INITED_VO 1
@@ -127,3 +130,5 @@ void exit_player_with_rc(const char* how
 void rm_osd_msg(int id);
 void add_subtitles(char *filename, float fps, int noerr);
 int reinit_video_chain(void);
+
+#endif /* MP_CORE_H */

Modified: trunk/mpcommon.h
==============================================================================
--- trunk/mpcommon.h	(original)
+++ trunk/mpcommon.h	Tue Jan  1 22:35:58 2008
@@ -1,3 +1,6 @@
+#ifndef MPCOMMON_H
+#define MPCOMMON_H
+
 extern double sub_last_pts;
 #ifdef USE_ASS
 extern ass_track_t *ass_track;
@@ -5,3 +8,5 @@ extern ass_track_t *ass_track;
 extern subtitle *vo_sub_last;
 void update_subtitles(sh_video_t *sh_video, demux_stream_t *d_dvdsub, int reset);
 void update_teletext(sh_video_t *sh_video, demuxer_t *demuxer, int reset);
+
+#endif /* MPCOMMON_H */

Modified: trunk/osdep/getch2.h
==============================================================================
--- trunk/osdep/getch2.h	(original)
+++ trunk/osdep/getch2.h	Tue Jan  1 22:35:58 2008
@@ -1,6 +1,9 @@
 /* GyS-TermIO v2.0 (for GySmail v3)          (C) 1999 A'rpi/ESP-team */
 /* a very small replacement of ncurses library */
 
+#ifndef GETCH2_H
+#define GETCH2_H
+
 /* Screen size. Initialized by load_termcap() and get_screen_size() */
 extern int screen_width;
 extern int screen_height;
@@ -24,3 +27,5 @@ extern void getch2(void);
 #ifdef __MINGW32__
 extern int mp_input_win32_slave_cmd_func(int fd,char* dest,int size);
 #endif
+
+#endif /* GETCH2_H */

Modified: trunk/osdep/glob.h
==============================================================================
--- trunk/osdep/glob.h	(original)
+++ trunk/osdep/glob.h	Tue Jan  1 22:35:58 2008
@@ -1,3 +1,6 @@
+#ifndef GLOB_H
+#define GLOB_H
+
 #include "config.h"
 
 typedef struct {
@@ -9,3 +12,5 @@ typedef struct {
 void globfree(glob_t *pglob);
 
 int  glob(const char *pattern, int flags, int (*errfunc)(const char *epath, int eerrno), glob_t *pglob);
+
+#endif /* GLOB_H */

Modified: trunk/osdep/keycodes.h
==============================================================================
--- trunk/osdep/keycodes.h	(original)
+++ trunk/osdep/keycodes.h	Tue Jan  1 22:35:58 2008
@@ -1,5 +1,8 @@
 /*  KEY code definitions for GyS-TermIO v2.0  (C) 1999 A'rpi/ESP-team */
 
+#ifndef KEYCODES_H
+#define KEYCODES_H
+
 #define KEY_ENTER 13
 #define KEY_TAB 9
 
@@ -70,3 +73,5 @@
 /* Special keys */
 #define KEY_INTERN (0x1000)
 #define KEY_CLOSE_WIN (KEY_INTERN+0)
+
+#endif /* KEYCODES_H */

Modified: trunk/osdep/shmem.h
==============================================================================
--- trunk/osdep/shmem.h	(original)
+++ trunk/osdep/shmem.h	Tue Jan  1 22:35:58 2008
@@ -1,4 +1,7 @@
+#ifndef SHMEM_H
+#define SHMEM_H
 
 void* shmem_alloc(int size);
 void shmem_free(void* p,int size);
 
+#endif /* SHMEM_H */

Modified: trunk/parser-mecmd.h
==============================================================================
--- trunk/parser-mecmd.h	(original)
+++ trunk/parser-mecmd.h	Tue Jan  1 22:35:58 2008
@@ -1,3 +1,5 @@
+#ifndef PARSER_MECMD_H
+#define PARSER_MECMD_H
 
 /// \file
 /// \ingroup ConfigParsers MEntry
@@ -29,3 +31,5 @@ m_entry_t*
 m_config_parse_me_command_line(m_config_t *config, int argc, char **argv);
 
 ///@}
+
+#endif /* PARSER_MECMD_H */

Modified: trunk/stream/frequencies.h
==============================================================================
--- trunk/stream/frequencies.h	(original)
+++ trunk/stream/frequencies.h	Tue Jan  1 22:35:58 2008
@@ -5,6 +5,10 @@
  *
  * Frequencies are given in kHz 
  */
+
+#ifndef FREQUENCIES_H
+#define FREQUENCIES_H
+
 #define NTSC_AUDIO_CARRIER	4500
 #define PAL_AUDIO_CARRIER_I	6000
 #define PAL_AUDIO_CARRIER_BGHN	5500
@@ -109,3 +113,5 @@ extern const struct CHANLISTS   chanlist
 extern int                chantab;
 extern const struct CHANLIST *chanlist;
 extern int                chancount;
+
+#endif /* FREQUENCIES_H */

Modified: trunk/stream/netstream.h
==============================================================================
--- trunk/stream/netstream.h	(original)
+++ trunk/stream/netstream.h	Tue Jan  1 22:35:58 2008
@@ -7,6 +7,9 @@
  * Data is always low endian
  */
 
+#ifndef NETSTREAM_H
+#define NETSTREAM_H
+
 typedef struct mp_net_stream_packet_st {
   uint16_t len;
   uint8_t cmd;
@@ -134,3 +137,5 @@ static void net_stream_opened_2_me(mp_ne
   o->start_pos = le2me_64(o->start_pos);
   o->end_pos = le2me_64(o->end_pos);
 }
+
+#endif /* NETSTREAM_H */

Modified: trunk/stream/stream_dvd.h
==============================================================================
--- trunk/stream/stream_dvd.h	(original)
+++ trunk/stream/stream_dvd.h	Tue Jan  1 22:35:58 2008
@@ -1,3 +1,6 @@
+#ifndef STREAM_DVD_H
+#define STREAM_DVD_H
+
 #ifdef USE_DVDREAD_INTERNAL
 #include "dvdread/dvd_reader.h"
 #include "dvdread/ifo_types.h"
@@ -44,3 +47,5 @@ int dvd_lang_from_sid(stream_t *stream, 
 int dvd_aid_from_lang(stream_t *stream, unsigned char* lang);
 int dvd_sid_from_lang(stream_t *stream, unsigned char* lang);
 int dvd_chapter_from_cell(dvd_priv_t *dvd,int title,int cell);
+
+#endif /* STREAM_DVD_H */

Modified: trunk/stream/stream_dvd_common.h
==============================================================================
--- trunk/stream/stream_dvd_common.h	(original)
+++ trunk/stream/stream_dvd_common.h	Tue Jan  1 22:35:58 2008
@@ -1 +1,6 @@
+#ifndef STREAM_DVD_COMMON_H
+#define STREAM_DVD_COMMON_H
+
 int mp_dvdtimetomsec(dvd_time_t *dt);
+
+#endif /* STREAM_DVD_COMMON_H */

Modified: trunk/vidix/AsmMacros.h
==============================================================================
--- trunk/vidix/AsmMacros.h	(original)
+++ trunk/vidix/AsmMacros.h	Tue Jan  1 22:35:58 2008
@@ -63,6 +63,9 @@
  *   Modified for readability by Nick Kurshev
 */
 
+#ifndef ASMMACROS_H
+#define ASMMACROS_H
+
 #if defined(__GNUC__)
 #if defined(__alpha__)
 #include "sysdep/AsmMacros_alpha.h"
@@ -115,3 +118,5 @@ void outl(U16_t, U32_t);
 
 #endif /* _MINIX and _ACK */
 #endif /* __GNUC__ */
+
+#endif /* ASMMACROS_H */

Modified: trunk/vidix/cyberblade_regs.h
==============================================================================
--- trunk/vidix/cyberblade_regs.h	(original)
+++ trunk/vidix/cyberblade_regs.h	Tue Jan  1 22:35:58 2008
@@ -23,6 +23,9 @@
  */
 /* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/trident/trident_regs.h,v 1.22 2002/01/11 13:06:30 alanh Exp $ */
 
+#ifndef CYBERBLADE_REGS_H
+#define CYBERBLADE_REGS_H
+
 #define DEBUG 1
 
 #define NTSC 14.31818
@@ -134,3 +137,4 @@
 
 /* --- */
 
+#endif /* CYBERBLADE_REGS_H */

Modified: trunk/vidix/dhahelperwin/ntverp.h
==============================================================================
--- trunk/vidix/dhahelperwin/ntverp.h	(original)
+++ trunk/vidix/dhahelperwin/ntverp.h	Tue Jan  1 22:35:58 2008
@@ -13,6 +13,9 @@
  * PROGRAMMERS:     Alex Ionescu (alex.ionescu at reactos.org)
  */
 
+#ifndef NTVERP_H
+#define NTVERP_H
+
 //
 // Windows NT Build 3790.1830
 //
@@ -149,3 +152,5 @@
     "ReactOS(R) Operating System"
 #define VER_LEGALTRADEMARKS_STR             \
     "ReactOS(R) is a registered trademark of the ReactOS Foundation."
+
+#define /* NTVERP_H */

Modified: trunk/xvmc_render.h
==============================================================================
--- trunk/xvmc_render.h	(original)
+++ trunk/xvmc_render.h	Tue Jan  1 22:35:58 2008
@@ -1,3 +1,6 @@
+#ifndef XVMC_RENDER_H
+#define XVMC_RENDER_H
+
 #include <X11/Xlib.h>
 #include <X11/Xutil.h>
 #include <X11/Xatom.h>
@@ -48,3 +51,5 @@ typedef   struct{
   void * p_osd_target_surface_render;//pointer to the surface where subpicture is rendered
 
 } xvmc_render_state_t;
+
+#endif /* XVMC_RENDER_H */



More information about the MPlayer-cvslog mailing list