Mercurial > mplayer.hg
changeset 30496:26f673ba0675
Remove extern "C" declarations from loader code.
Our loader code is not a general-purpose library and not used from C++.
author | diego |
---|---|
date | Thu, 11 Feb 2010 14:33:57 +0000 |
parents | 286d5295e885 |
children | e6f8fe4a27dc |
files | loader/com.h loader/dmo/DMO_Filter.h loader/drv.h loader/dshow/DS_Filter.h loader/ldt_keeper.c loader/ldt_keeper.h loader/loader.h loader/registry.h loader/wine/basetsd.h loader/wine/ldt.h loader/wine/msacm.h loader/wine/ntdef.h loader/wine/vfw.h loader/wine/winbase.h loader/wine/windef.h loader/wine/windows.h loader/wine/winreg.h loader/wine/winuser.h loader/wineacm.h |
diffstat | 19 files changed, 0 insertions(+), 158 deletions(-) [+] |
line wrap: on
line diff
--- a/loader/com.h Thu Feb 11 10:56:09 2010 +0000 +++ b/loader/com.h Thu Feb 11 14:33:57 2010 +0000 @@ -18,10 +18,6 @@ * Internal functions and structures for COM emulation code. */ -#ifdef __cplusplus -extern "C" { -#endif - #ifndef GUID_TYPE #define GUID_TYPE typedef struct @@ -83,8 +79,4 @@ void STDCALL CoTaskMemFree(void*); #endif -#ifdef __cplusplus -}; -#endif /* __cplusplus */ - #endif /* MPLAYER_COM_H */
--- a/loader/dmo/DMO_Filter.h Thu Feb 11 10:56:09 2010 +0000 +++ b/loader/dmo/DMO_Filter.h Thu Feb 11 14:33:57 2010 +0000 @@ -4,10 +4,6 @@ #include "dmo_guids.h" #include "dmo_interfaces.h" -#if defined(__cplusplus) -extern "C" { -#endif - typedef struct DMO_Filter { int m_iHandle; @@ -40,8 +36,4 @@ */ CMediaBuffer* CMediaBufferCreate(unsigned long maxlen, void* mem, unsigned long len, int copy); -#if defined(__cplusplus) -} -#endif - #endif /* MPLAYER_DMO_FILTER_H */
--- a/loader/drv.h Thu Feb 11 10:56:09 2010 +0000 +++ b/loader/drv.h Thu Feb 11 14:33:57 2010 +0000 @@ -6,10 +6,6 @@ #ifndef MPLAYER_DRV_H #define MPLAYER_DRV_H -#ifdef __cplusplus -extern "C" { -#endif - #include "wine/windef.h" #include "wine/driver.h" @@ -20,8 +16,4 @@ HDRVR DrvOpen(LPARAM lParam2); void DrvClose(HDRVR hdrvr); -#ifdef __cplusplus -} -#endif - #endif /* MPLAYER_DRV_H */
--- a/loader/dshow/DS_Filter.h Thu Feb 11 10:56:09 2010 +0000 +++ b/loader/dshow/DS_Filter.h Thu Feb 11 14:33:57 2010 +0000 @@ -4,10 +4,6 @@ #include "inputpin.h" #include "outputpin.h" -#if defined(__cplusplus) -extern "C" { -#endif - typedef struct { char* frame_pointer; long frame_size; @@ -43,8 +39,4 @@ AM_MEDIA_TYPE* in_fmt, AM_MEDIA_TYPE* out_fmt,SampleProcUserData* pUserData); void DS_Filter_Destroy(DS_Filter* This); -#if defined(__cplusplus) -} -#endif - #endif /* MPLAYER_DS_FILTER_H */
--- a/loader/ldt_keeper.c Thu Feb 11 10:56:09 2010 +0000 +++ b/loader/ldt_keeper.c Thu Feb 11 14:33:57 2010 +0000 @@ -43,19 +43,12 @@ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,47) #define modify_ldt_ldt_s user_desc #endif -/* prototype it here, so we won't depend on kernel headers */ -#ifdef __cplusplus -extern "C" { -#endif /// declare modify_ldt with the _syscall3 macro for older glibcs #if defined(__GLIBC__) && (__GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ == 0)) _syscall3( int, modify_ldt, int, func, void *, ptr, unsigned long, bytecount ); #else int modify_ldt(int func, void *ptr, unsigned long bytecount); #endif -#ifdef __cplusplus -} -#endif #else #if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) #include <machine/segments.h> @@ -69,13 +62,7 @@ /* solaris x86: add missing prototype for sysi86(), but only when sysi86(int, void*) is known to be valid */ #ifdef HAVE_SYSI86_iv -#ifdef __cplusplus -extern "C" { -#endif int sysi86(int, void*); -#ifdef __cplusplus -} -#endif #endif #ifndef NUMSYSLDTS /* SunOS 2.5.1 does not define NUMSYSLDTS */ @@ -127,9 +114,6 @@ * in C++ we use static class for this... */ -#ifdef __cplusplus -extern "C" -#endif void Setup_FS_Segment(void) { unsigned int ldt_desc = LDT_SEL(fs_ldt);
--- a/loader/ldt_keeper.h Thu Feb 11 10:56:09 2010 +0000 +++ b/loader/ldt_keeper.h Thu Feb 11 14:33:57 2010 +0000 @@ -1,11 +1,6 @@ #ifndef MPLAYER_LDT_KEEPER_H #define MPLAYER_LDT_KEEPER_H -#ifdef __cplusplus -extern "C" -{ -#endif - typedef struct { void* fs_seg; char* prev_struct; @@ -14,8 +9,5 @@ void Setup_FS_Segment(void); ldt_fs_t* Setup_LDT_Keeper(void); void Restore_LDT_Keeper(ldt_fs_t* ldt_fs); -#ifdef __cplusplus -} -#endif #endif /* MPLAYER_LDT_KEEPER_H */
--- a/loader/loader.h Thu Feb 11 10:56:09 2010 +0000 +++ b/loader/loader.h Thu Feb 11 14:33:57 2010 +0000 @@ -14,10 +14,6 @@ #ifndef MPLAYER_LOADER_H #define MPLAYER_LOADER_H -#ifdef __cplusplus -extern "C" { -#endif - #include "wine/windef.h" #include "wine/driver.h" #include "wine/mmreg.h" @@ -33,8 +29,4 @@ INT WINAPI LoadStringA( HINSTANCE instance, UINT resource_id, LPSTR buffer, INT buflen ); -#ifdef __cplusplus -} -#endif - #endif /* MPLAYER_LOADER_H */
--- a/loader/registry.h Thu Feb 11 10:56:09 2010 +0000 +++ b/loader/registry.h Thu Feb 11 14:33:57 2010 +0000 @@ -13,10 +13,6 @@ * http://svn.mplayerhq.hu/mplayer/trunk/ */ -#ifdef __cplusplus -extern "C" { -#endif - #include "wine/winbase.h" void free_registry(void); @@ -40,8 +36,5 @@ long __stdcall RegEnumValueA(HKEY hkey, DWORD index, LPSTR value, LPDWORD val_count, LPDWORD reserved, LPDWORD type, LPBYTE data, LPDWORD count); #endif -#ifdef __cplusplus -}; -#endif #endif /* MPLAYER_REGISTRY_H */
--- a/loader/wine/basetsd.h Thu Feb 11 10:56:09 2010 +0000 +++ b/loader/wine/basetsd.h Thu Feb 11 14:33:57 2010 +0000 @@ -13,10 +13,6 @@ #include "config.h" -#ifdef __cplusplus -extern "C" { -#endif /* defined(__cplusplus) */ - /* * Win32 was easy to implement under Unix since most (all?) 32-bit * Unices uses the same type model (ILP32) as Win32, where int, long @@ -165,8 +161,4 @@ typedef INT_PTR SSIZE_T, *PSSIZE_T; typedef UINT_PTR SIZE_T, *PSIZE_T; -#ifdef __cplusplus -} /* extern "C" */ -#endif /* defined(__cplusplus) */ - #endif /* MPLAYER_BASETSD_H */
--- a/loader/wine/ldt.h Thu Feb 11 10:56:09 2010 +0000 +++ b/loader/wine/ldt.h Thu Feb 11 14:33:57 2010 +0000 @@ -26,10 +26,6 @@ int limit_in_pages; /* is the limit in pages or bytes? */ enum seg_type type; /* segment type */ } ldt_entry; -#ifdef __cplusplus -extern "C" -{ -#endif void LDT_BytesToEntry( const unsigned long *buffer, ldt_entry *content ); void LDT_EntryToBytes( unsigned long *buffer, const ldt_entry *content ); int LDT_GetEntry( int entry, ldt_entry *content ); @@ -92,8 +88,5 @@ (!((sel) & 4) || (SELECTOR_TO_ENTRY(sel) < FIRST_LDT_ENTRY_TO_ALLOC)) #define IS_SELECTOR_32BIT(sel) \ (IS_SELECTOR_SYSTEM(sel) || (GET_SEL_FLAGS(sel) & LDT_FLAGS_32BIT)) -#ifdef __cplusplus -} -#endif #endif /* MPLAYER_LDT_H */
--- a/loader/wine/msacm.h Thu Feb 11 10:56:09 2010 +0000 +++ b/loader/wine/msacm.h Thu Feb 11 14:33:57 2010 +0000 @@ -9,10 +9,6 @@ #include "driver.h" #include "mmreg.h" -#ifdef __cplusplus -extern "C" { -#endif /* defined(__cplusplus) */ - //typedef WORD VERSION; /* major (high byte), minor (low byte) */ typedef UINT16 MMVERSION16; @@ -934,8 +930,4 @@ HACMSTREAM has, PACMSTREAMHEADER pash, DWORD fdwUnprepare ); -#ifdef __cplusplus -} /* extern "C" */ -#endif /* defined(__cplusplus) */ - #endif /* MPLAYER_MSACM_H */
--- a/loader/wine/ntdef.h Thu Feb 11 10:56:09 2010 +0000 +++ b/loader/wine/ntdef.h Thu Feb 11 14:33:57 2010 +0000 @@ -6,10 +6,6 @@ #include "pshpack1.h" -#ifdef __cplusplus -extern "C" { -#endif - #define NTAPI __stdcall #ifndef IN @@ -92,10 +88,6 @@ } -#ifdef __cplusplus -} -#endif - #include "poppack.h" #endif /* MPLAYER_NTDEF_H */
--- a/loader/wine/vfw.h Thu Feb 11 10:56:09 2010 +0000 +++ b/loader/wine/vfw.h Thu Feb 11 14:33:57 2010 +0000 @@ -6,10 +6,6 @@ #ifndef MPLAYER_VFW_H #define MPLAYER_VFW_H //#include "pshpack1.h" -#ifdef __cplusplus -extern "C" { -#endif - #include "windef.h" typedef struct __attribute__((__packed__)) @@ -667,7 +663,4 @@ #define AVIERR_USERABORT MAKE_AVIERR(198) #define AVIERR_ERROR MAKE_AVIERR(199) -#ifdef __cplusplus -} -#endif #endif /* MPLAYER_VFW_H */
--- a/loader/wine/winbase.h Thu Feb 11 10:56:09 2010 +0000 +++ b/loader/wine/winbase.h Thu Feb 11 14:33:57 2010 +0000 @@ -7,10 +7,6 @@ #include "pshpack1.h" -#ifdef __cplusplus -extern "C" { -#endif - typedef struct tagCOORD { INT16 x; INT16 y; @@ -1778,8 +1774,4 @@ #define GetCurrentProcess() ((HANDLE)0xffffffff) #define GetCurrentThread() ((HANDLE)0xfffffffe) -#ifdef __cplusplus -} -#endif - #endif /* MPLAYER_WINBASE_H */
--- a/loader/wine/windef.h Thu Feb 11 10:56:09 2010 +0000 +++ b/loader/wine/windef.h Thu Feb 11 14:33:57 2010 +0000 @@ -17,10 +17,6 @@ #define __stdcall #endif -#ifdef __cplusplus -extern "C" { -#endif - /* Misc. constants. */ #ifdef FALSE @@ -633,8 +629,4 @@ ((r16)->left = (INT16)(r32)->left, (r16)->top = (INT16)(r32)->top, \ (r16)->right = (INT16)(r32)->right, (r16)->bottom = (INT16)(r32)->bottom) -#ifdef __cplusplus -} -#endif - #endif /* MPLAYER_WINDEF_H */
--- a/loader/wine/windows.h Thu Feb 11 10:56:09 2010 +0000 +++ b/loader/wine/windows.h Thu Feb 11 14:33:57 2010 +0000 @@ -1,10 +1,6 @@ #ifndef MPLAYER_WINDOWS_H #define MPLAYER_WINDOWS_H -#ifdef __cplusplus -extern "C" { -#endif - #include "windef.h" #include "winbase.h" #include "winuser.h" @@ -31,8 +27,4 @@ #endif /* 0 */ -#ifdef __cplusplus -} -#endif - #endif /* MPLAYER_WINDOWS_H */
--- a/loader/wine/winreg.h Thu Feb 11 10:56:09 2010 +0000 +++ b/loader/wine/winreg.h Thu Feb 11 14:33:57 2010 +0000 @@ -7,10 +7,6 @@ #include "winbase.h" #include "winnt.h" -#ifdef __cplusplus -extern "C" { -#endif /* defined(__cplusplus) */ - /* #define SHELL_ERROR_SUCCESS 0L #define SHELL_ERROR_BADDB 1L @@ -50,8 +46,4 @@ typedef ACCESS_MASK REGSAM; -#ifdef __cplusplus -} /* extern "C" */ -#endif /* defined(__cplusplus) */ - #endif /* MPLAYER_WINREG_H */
--- a/loader/wine/winuser.h Thu Feb 11 10:56:09 2010 +0000 +++ b/loader/wine/winuser.h Thu Feb 11 14:33:57 2010 +0000 @@ -5,10 +5,6 @@ #include <stdarg.h> #endif -#ifdef __cplusplus -extern "C" { -#endif - #include "windef.h" #include "pshpack1.h" @@ -2923,8 +2919,4 @@ #define WC_DIALOG (LPSTR)((DWORD)((WORD)( 0x8002))) -#ifdef __cplusplus -} -#endif - #endif /* MPLAYER_WINUSER_H */
--- a/loader/wineacm.h Thu Feb 11 10:56:09 2010 +0000 +++ b/loader/wineacm.h Thu Feb 11 14:33:57 2010 +0000 @@ -9,11 +9,6 @@ #include "wine/msacmdrv.h" -#ifdef __cplusplus -extern "C" { -#endif /* defined(__cplusplus) */ - - typedef struct WINE_ACMDRIVERID *PWINE_ACMDRIVERID; typedef struct WINE_ACMDRIVER *PWINE_ACMDRIVER; @@ -65,8 +60,4 @@ PWINE_ACMDRIVER MSACM_GetDriver(HACMDRIVER hDriver); PWINE_ACMOBJ MSACM_GetObj(HACMOBJ hObj); -#ifdef __cplusplus -} /* extern "C" */ -#endif /* defined(__cplusplus) */ - #endif /* MPLAYER_WINEACM_H */