- API files update.

- Minor bug fixes.
This commit is contained in:
Patrik Stridvall 2003-08-08 21:04:17 +00:00 committed by Alexandre Julliard
parent c0a3cb13e0
commit c5f834ce6a
11 changed files with 597 additions and 86 deletions

View File

@ -53,7 +53,7 @@ sub file_type {
m%^(?:libtest|rc|server|tests|tools)/% && return ""; m%^(?:libtest|rc|server|tests|tools)/% && return "";
m%^(?:programs|debugger|miscemu)/% && return "wineapp"; m%^(?:programs|debugger|miscemu)/% && return "wineapp";
m%^(?:library|tsx11|unicode)/% && return "library"; m%^(?:libs)/% && return "library";
m%^windows/x11drv/wineclipsrv\.c$% && return "application"; m%^windows/x11drv/wineclipsrv\.c$% && return "application";
return "winelib"; return "winelib";
@ -78,7 +78,7 @@ sub file_skip {
$_ = file_absolutize($_); $_ = file_absolutize($_);
m%^(?:libtest|programs|rc|server|tests|tools)/% && return 1; m%^(?:libtest|programs|rc|server|tests|tools)/% && return 1;
m%^(?:debugger|miscemu|tsx11|server|unicode)/% && return 1; m%^(?:debugger|miscemu|libs|server)/% && return 1;
m%^dlls/wineps/data/% && return 1; m%^dlls/wineps/data/% && return 1;
m%^windows/x11drv/wineclipsrv\.c$% && return 1; m%^windows/x11drv/wineclipsrv\.c$% && return 1;
m%^dlls/winmm/wineoss/midipatch\.c$% && return 1; m%^dlls/winmm/wineoss/midipatch\.c$% && return 1;

View File

@ -2,24 +2,33 @@
%long %long
BOOL
DWORD DWORD
HRESULT HRESULT
INT
LONG LONG
UINT UINT
ULONG ULONG
%ptr %ptr
LPAVICOMPRESSOPTIONS *
LPAVIFILEINFOA LPAVIFILEINFOA
LPAVISTREAMINFOA
LPBITMAPINFOHEADER
LPCLSID LPCLSID
LPLONG
LPVOID
PAVIFILE PAVIFILE
PAVIFILE * PAVIFILE *
PAVISTREAM PAVISTREAM
PAVISTREAM * PAVISTREAM *
PGETFRAME
%str %str
LPCSTR LPCSTR
LPSTR
%void %void
@ -114,6 +123,55 @@ HTASK16
INT16 INT16
WORD WORD
%%ctl3d.dll
%long
DWORD
HBRUSH
LONG
LPARAM
%void
void
%word
BOOL16
HDC16
HINSTANCE16
HWND16
INT16
UINT16
WORD
WPARAM16
%%ctl3dv2.dll
%long
DWORD
HBRUSH
LONG
LPARAM
LRESULT
%void
void
%word
BOOL16
HDC16
HINSTANCE16
HWND16
INT16
UINT16
WORD
WPARAM16
%%ddeml.dll %%ddeml.dll
%long %long
@ -218,16 +276,13 @@ LPBYTE
LPCVOID LPCVOID
LPDEVMODEA LPDEVMODEA
LPDWORD LPDWORD
LPENUMLOGFONT16
LPFONTINFO16 LPFONTINFO16
LPGLYPHMETRICS16 LPGLYPHMETRICS16
LPINT16 LPINT16
LPKERNINGPAIR16 LPKERNINGPAIR16
LPLOGFONT16 LPLOGFONT16
LPNEWTEXTMETRIC16
LPOUTLINETEXTMETRIC16 LPOUTLINETEXTMETRIC16
LPPALETTEENTRY LPPALETTEENTRY
LPPDEVICE
LPPOINT16 LPPOINT16
LPRASTERIZER_STATUS LPRASTERIZER_STATUS
LPRECT16 LPRECT16
@ -294,6 +349,7 @@ BOOL
DWORD DWORD
HANDLE HANDLE
HINSTANCE HINSTANCE
HKEY
HMODULE HMODULE
INT INT
LONG LONG
@ -350,7 +406,6 @@ HANDLE16
HFILE16 HFILE16
HGLOBAL16 HGLOBAL16
HINSTANCE16 HINSTANCE16
HKEY
HLOCAL16 HLOCAL16
HMODULE16 HMODULE16
HQUEUE16 HQUEUE16
@ -411,7 +466,6 @@ LPVOID
%str %str
LPCSTR
LPSTR LPSTR
%void %void
@ -621,13 +675,29 @@ WORD
DWORD DWORD
HRESULT HRESULT
ULONG
%longlong
ULARGE_INTEGER
%ptr %ptr
IDataObject *
IDataObject **
ILockBytes16 *
LPDROPTARGET LPDROPTARGET
LPLOCKBYTES16 *
LPMONIKER * LPMONIKER *
LPRUNNINGOBJECTTABLE * LPRUNNINGOBJECTTABLE *
LPVOID LPVOID
LPVOID *
REFIID
REFCLSID
STATSTG16 *
ULONG *
void *
void **
%str %str
@ -639,6 +709,7 @@ void
%word %word
BOOL16
HGLOBAL16 HGLOBAL16
HICON16 HICON16
HWND16 HWND16
@ -766,21 +837,26 @@ OLE_SERVER_USE
BOOL BOOL
DWORD DWORD
HKEY
LPARAM LPARAM
WPARAM
int int
%ptr %ptr
HINF16 * HINF16 *
LPBYTE LPBYTE
LPDEVICE_INFO16
LPDWORD LPDWORD
LPEXPANDVTBL LPEXPANDVTBL
LPHKEY16
LPLOGDISKDESC LPLOGDISKDESC
LPLPDEVICE_INFO16 LPLPDEVICE_INFO16
LPVIRTNODE LPVIRTNODE
LPVOID LPVOID
PHKEY PHKEY
VIFPROC VIFPROC
VOID *
%str %str
@ -795,7 +871,7 @@ void
HINF16 HINF16
HINSTANCE16 HINSTANCE16
HKEY HKEY16
HWND16 HWND16
INT16 INT16
LOGDISKID16 LOGDISKID16
@ -803,7 +879,6 @@ RETERR16
UINT16 UINT16
VHSTR VHSTR
WORD WORD
WPARAM
%%shell.dll %%shell.dll
@ -811,6 +886,7 @@ WPARAM
BOOL BOOL
DWORD DWORD
HKEY
LPARAM LPARAM
LRESULT LRESULT
@ -841,7 +917,6 @@ HDROP16
HGLOBAL16 HGLOBAL16
HICON16 HICON16
HINSTANCE16 HINSTANCE16
HKEY
HWND16 HWND16
INT16 INT16
UINT16 UINT16
@ -881,6 +956,7 @@ LARGE_INTEGER
%ptr %ptr
IID * IID *
ILockBytes16 *
IStorage16 * IStorage16 *
IStorage16 ** IStorage16 **
IStream16 * IStream16 *
@ -894,6 +970,10 @@ ULARGE_INTEGER *
ULONG * ULONG *
void * void *
%segptr
SEGPTR
%str %str
LPCOLESTR16 LPCOLESTR16
@ -1010,7 +1090,6 @@ BOOL
COLORREF COLORREF
DWORD DWORD
HHOOK HHOOK
INT
LONG LONG
LPARAM LPARAM
LRESULT LRESULT

View File

@ -3,6 +3,7 @@
%long %long
ACCESS_MASK ACCESS_MASK
ACL_INFORMATION_CLASS
ALG_ID ALG_ID
BOOL BOOL
BYTE BYTE
@ -128,10 +129,13 @@ INT
LONG LONG
UINT UINT
ULONG ULONG
int
%ptr %ptr
AVISAVECALLBACK
CLSID * CLSID *
LONG *
LPAVICOMPRESSOPTIONS * LPAVICOMPRESSOPTIONS *
LPAVICOMPRESSOPTIONS LPAVICOMPRESSOPTIONS
LPAVIFILEINFOA LPAVIFILEINFOA
@ -378,14 +382,17 @@ void
BOOL BOOL
DWORD DWORD
HANDLE HANDLE
HCERTSTORE
%ptr %ptr
BYTE * BYTE *
DWORD * DWORD *
GUID * GUID *
PCCERT_CONTEXT
SIP_ADD_NEWPROVIDER * SIP_ADD_NEWPROVIDER *
SIP_DISPATCH_INFO * SIP_DISPATCH_INFO *
void *
%str %str
@ -396,16 +403,55 @@ LPSTR
LPCWSTR LPCWSTR
%%ctl3d32.dll
%long
BOOL
DWORD
HBRUSH
HDC
HINSTANCE
HWND
LONG
LPARAM
LRESULT
UINT
WORD
WPARAM
int
%void
void
%%d3d8.dll %%d3d8.dll
%long %long
BOOL
HRESULT
UINT
%ptr
IDirect3D8 *
LPVOID
%void
void
%%d3d9.dll
%long
HRESULT HRESULT
UINT UINT
%ptr %ptr
IDirect3D8 * IDirect3D9 *
%%dciman32.dll %%dciman32.dll
@ -459,6 +505,19 @@ LPVOID *
REFCLSID REFCLSID
REFIID REFIID
%%devenum.dll
%long
HRESULT
%ptr
REFCLSID
REFIID
LPVOID *
%%dinput.dll %%dinput.dll
%long %long
@ -470,6 +529,7 @@ HRESULT
%ptr %ptr
LPDIRECTINPUTA * LPDIRECTINPUTA *
LPDIRECTINPUTW *
LPUNKNOWN LPUNKNOWN
LPVOID * LPVOID *
REFCLSID REFCLSID
@ -490,6 +550,102 @@ LPVOID *
REFCLSID REFCLSID
REFIID REFIID
%%dmband.dll
%long
HRESULT
%ptr
LPVOID *
REFCLSID
REFIID
%%dmcompos.dll
%long
HRESULT
%ptr
LPVOID *
REFCLSID
REFIID
%%dmime.dll
%long
HRESULT
%ptr
LPVOID *
REFCLSID
REFIID
%%dmloader.dll
%long
HRESULT
%ptr
LPVOID *
REFCLSID
REFIID
%%dmscript.dll
%long
HRESULT
%ptr
LPVOID *
REFCLSID
REFIID
%%dmstyle.dll
%long
HRESULT
%ptr
LPVOID *
REFCLSID
REFIID
%%dmsynth.dll
%long
HRESULT
%ptr
LPVOID *
REFCLSID
REFIID
%%dmusic.dll
%long
HRESULT
%ptr
LPVOID *
REFCLSID
REFIID
%%dplayx.dll %%dplayx.dll
%long %long
@ -511,6 +667,18 @@ LPVOID *
REFCLSID REFCLSID
REFIID REFIID
%%dpnhpast.dll
%long
HRESULT
%ptr
LPVOID
REFCLSID
REFIID
%%dsound.dll %%dsound.dll
%long %long
@ -526,11 +694,11 @@ LPDIRECTSOUND8 *
LPDIRECTSOUNDCAPTURE * LPDIRECTSOUNDCAPTURE *
LPDSENUMCALLBACKA LPDSENUMCALLBACKA
LPDSENUMCALLBACKW LPDSENUMCALLBACKW
LPGUID
LPUNKNOWN LPUNKNOWN
LPVOID LPVOID
LPVOID * LPVOID *
REFCLSID REFCLSID
REFGUID
REFIID REFIID
%%gdi32.dll %%gdi32.dll
@ -559,6 +727,7 @@ INT
LONG LONG
LPARAM LPARAM
UINT UINT
ULONG
WORD WORD
%long --extension %long --extension
@ -647,6 +816,7 @@ RGBQUAD *
RGNDATA * RGNDATA *
TEXTMETRICA * TEXTMETRICA *
TEXTMETRICW * TEXTMETRICW *
TRIVERTEX *
WORD * WORD *
XFORM * XFORM *
void * void *
@ -811,6 +981,51 @@ LPSTR
LPCWSTR LPCWSTR
LPWSTR LPWSTR
%%iphlpapi.dll
%long
BOOL
DWORD
IPAddr
IPMask
UINT
ULONG
%ptr
HANDLE *
LPDWORD
LPOVERLAPPED
OVERLAPPED *
PDWORD
PFIXED_INFO
PHANDLE
PIP_ADAPTER_INDEX_MAP
PIP_ADAPTER_INFO
PIP_INTERFACE_INFO
PIP_PER_ADAPTER_INFO
PIP_UNIDIRECTIONAL_ADAPTER_ADDRESS
PMIB_ICMP
PMIB_IFROW
PMIB_IFTABLE
PMIB_IPADDRTABLE
PMIB_IPFORWARDROW
PMIB_IPFORWARDTABLE
PMIB_IPNETROW
PMIB_IPNETTABLE
PMIB_IPSTATS
PMIB_TCPROW
PMIB_TCPSTATS
PMIB_TCPTABLE
PMIB_UDPSTATS
PMIB_UDPTABLE
PULONG
%wstr
LPWSTR
%%joystick.drv %%joystick.drv
%long %long
@ -857,6 +1072,7 @@ unsigned char
BOOL16 BOOL16
HANDLE16 HANDLE16
HFILE16
HGLOBAL16 HGLOBAL16
HINSTANCE16 HINSTANCE16
HLOCAL16 HLOCAL16
@ -869,6 +1085,7 @@ UINT16
%long --pointer %long --pointer
LONG_PTR
ULONG_PTR ULONG_PTR
%longlong %longlong
@ -907,6 +1124,8 @@ FINDEX_SEARCH_OPS
GET_FILEEX_INFO_LEVELS GET_FILEEX_INFO_LEVELS
HANDLE * HANDLE *
INPUT_RECORD * INPUT_RECORD *
LANGUAGEGROUP_ENUMPROCA
LANGUAGEGROUP_ENUMPROCW
LARGE_INTEGER * LARGE_INTEGER *
LOCALE_ENUMPROCA LOCALE_ENUMPROCA
LOCALE_ENUMPROCW LOCALE_ENUMPROCW
@ -930,6 +1149,7 @@ LPFILETIME
LPINPUT_RECORD LPINPUT_RECORD
LPLDT_ENTRY LPLDT_ENTRY
LPMEMORYSTATUS LPMEMORYSTATUS
LPMEMORYSTATUSEX
LPMODULEENTRY32 LPMODULEENTRY32
LPOSVERSIONINFOEXA LPOSVERSIONINFOEXA
LPOSVERSIONINFOEXW LPOSVERSIONINFOEXW
@ -1020,16 +1240,14 @@ LPWSTR
HFILE HFILE
INT INT
LONG LONG
UINT WORD
%ptr %ptr
LPOFSTRUCT LPOFSTRUCT
LPVOID
%str %str
LPCSTR
LPSTR LPSTR
%void %void
@ -1038,7 +1256,6 @@ void
%wstr %wstr
LPCWSTR
LPWSTR LPWSTR
%%mapi32.dll %%mapi32.dll
@ -1236,6 +1453,29 @@ LONG
UINT UINT
WORD WORD
%%msdmo.dll
%long
DWORD
HRESULT
unsigned long
%ptr
DMO_MEDIA_TYPE **
DMO_MEDIA_TYPE *
DMO_PARTIAL_MEDIATYPE *
IEnumDMO **
REFCLSID
REFGUID
WCHAR *
unsigned long *
%wstr
LPCWSTR
%%msg711.acm %%msg711.acm
%long %long
@ -1253,14 +1493,11 @@ UINT
BOOL BOOL
HDC HDC
UINT UINT
ULONG
int int
%ptr %ptr
BLENDFUNCTION BLENDFUNCTION
TRIVERTEX *
void *
%void %void
@ -1288,6 +1525,16 @@ LRESULT
LPARAM LPARAM
UINT UINT
%%msnet32
%long
LONG
%ptr
LPVOID
%%msvcrt.dll %%msvcrt.dll
%double %double
@ -1296,7 +1543,9 @@ double
%long %long
DWORD
INT INT
LCID
LONG LONG
MSVCRT_clock_t MSVCRT_clock_t
MSVCRT_complex MSVCRT_complex
@ -1337,22 +1586,20 @@ PEXCEPTION_FRAME
PEXCEPTION_FRAME * PEXCEPTION_FRAME *
PEXCEPTION_POINTERS PEXCEPTION_POINTERS
PEXCEPTION_RECORD PEXCEPTION_RECORD
WCHAR **
WORD ** WORD **
_HEAPINFO * _HEAPINFO *
_INITTERMFUN * _INITTERMFUN *
_JUMP_BUFFER * _JUMP_BUFFER *
__non_rtti_object *
_onexit_t _onexit_t
_onexit_t ** _onexit_t **
_se_translator_function _se_translator_function
bad_cast *
bad_typeid *
char * char *
char ** char **
char *** char ***
cxx_exception_type * cxx_exception_type *
exception *
int * int *
struct MSVCRT_lconv *
struct MSVCRT_tm * struct MSVCRT_tm *
struct _diskfree_t * struct _diskfree_t *
struct _finddata_t * struct _finddata_t *
@ -1385,6 +1632,16 @@ MSVCRT_ldiv_t
VOID VOID
void void
%%msvcrtd.dll
%long
int
%ptr
void *
%%msvcrt20.dll %%msvcrt20.dll
%long %long
@ -1416,6 +1673,7 @@ HPALETTE
HWND HWND
INT INT
LONG LONG
LPARAM
LRESULT LRESULT
UINT UINT
WORD WORD
@ -1428,6 +1686,8 @@ LONG *
LPBITMAPINFO LPBITMAPINFO
LPBITMAPINFOHEADER LPBITMAPINFOHEADER
LPDWORD LPDWORD
LPOPENFILENAMEA
LPOPENFILENAMEW
LPVOID LPVOID
PCOMPVARS PCOMPVARS
@ -1444,6 +1704,25 @@ void
LPCWSTR LPCWSTR
%%mswsock.dll
%long
DWORD
HANDLE
SOCKET
%ptr
LPDWORD
LPOVERLAPPED
LPTRANSMIT_FILE_BUFFERS
PVOID
%void
void
%%netapi32.dll %%netapi32.dll
%long %long
@ -1483,6 +1762,7 @@ BOOL
BOOLEAN BOOLEAN
BYTE BYTE
CCHAR CCHAR
CHAR
DWORD DWORD
FILE_INFORMATION_CLASS FILE_INFORMATION_CLASS
FS_INFORMATION_CLASS FS_INFORMATION_CLASS
@ -1492,6 +1772,7 @@ HMODULE
INT INT
KEY_INFORMATION_CLASS KEY_INFORMATION_CLASS
KEY_VALUE_INFORMATION_CLASS KEY_VALUE_INFORMATION_CLASS
LCID
LONG LONG
MEMORY_INFORMATION_CLASS MEMORY_INFORMATION_CLASS
NTSTATUS NTSTATUS
@ -1514,6 +1795,10 @@ long
unsigned int unsigned int
unsigned long unsigned long
%long --pointer
ULONG_PTR
%long --extension %long --extension
obj_handle_t obj_handle_t
@ -1525,17 +1810,29 @@ ULONGLONG
%ptr %ptr
BOOLEAN *
CONTEXT * CONTEXT *
CONTEXT86 * CONTEXT86 *
CLIENT_ID *
CURDIR *
DOS_PATHNAME_TYPE
DWORD * DWORD *
EXCEPTION_FRAME * EXCEPTION_FRAME *
EXCEPTION_RECORD * EXCEPTION_RECORD *
GENERIC_MAPPING *
HANDLE * HANDLE *
HANDLERPROC HANDLERPROC
HMODULE *
IO_STATUS_BLOCK *
IMAGE_NT_HEADERS * IMAGE_NT_HEADERS *
IMAGE_RESOURCE_DIRECTORY **
IMAGE_RESOURCE_DATA_ENTRY *
IMAGE_RESOURCE_DATA_ENTRY **
IMAGE_SECTION_HEADER ** IMAGE_SECTION_HEADER **
INT * INT *
LARGE_INTEGER * LARGE_INTEGER *
LCID *
LDR_RESOURCE_INFO *
LPBYTE LPBYTE
LPCVOID LPCVOID
LPCVOID * LPCVOID *
@ -1546,15 +1843,23 @@ LPTIME_ZONE_INFORMATION
LPVOID LPVOID
LPVOID * LPVOID *
LPWSTR * LPWSTR *
LUID *
LUID_AND_ATTRIBUTES *
MESSAGE_RESOURCE_ENTRY **
OBJECT_ATTRIBUTES * OBJECT_ATTRIBUTES *
OEM_STRING *
PACCESS_MASK
PACE_HEADER PACE_HEADER
PACE_HEADER * PACE_HEADER *
PACL PACL
PACL * PACL *
PANSI_STRING PANSI_STRING
PBOOLEAN PBOOLEAN
PBYTE
PCANSI_STRING PCANSI_STRING
PCHAR
PCRTL_BITMAP PCRTL_BITMAP
PCSZ
PDWORD PDWORD
PEXCEPTION_FRAME PEXCEPTION_FRAME
PEXCEPTION_RECORD PEXCEPTION_RECORD
@ -1566,10 +1871,13 @@ PIMAGE_SECTION_HEADER
PIO_APC_ROUTINE PIO_APC_ROUTINE
PIO_STATUS_BLOCK PIO_STATUS_BLOCK
PLARGE_INTEGER PLARGE_INTEGER
PLDR_MODULE *
PLPCMESSAGE PLPCMESSAGE
PLPCSECTIONINFO PLPCSECTIONINFO
PLPCSECTIONMAPINFO PLPCSECTIONMAPINFO
PLUID PLUID
PLUID_AND_ATTRIBUTES
PNTAPCFUNC
POBJDIR_INFORMATION POBJDIR_INFORMATION
POBJECT_ATTRIBUTES POBJECT_ATTRIBUTES
PPRIVILEGE_SET PPRIVILEGE_SET
@ -1582,6 +1890,7 @@ PSID
PSID * PSID *
PSID_IDENTIFIER_AUTHORITY PSID_IDENTIFIER_AUTHORITY
PSTRING PSTRING
PSYSTEM_MODULE_INFORMATION
PTIMERAPCROUTINE PTIMERAPCROUTINE
PTIME_FIELDS PTIME_FIELDS
PTOKEN_PRIVILEGES PTOKEN_PRIVILEGES
@ -1589,17 +1898,22 @@ PULONG
PUNICODE_STRING PUNICODE_STRING
PVOID PVOID
PVOID * PVOID *
PWSTR *
RTL_CRITICAL_SECTION * RTL_CRITICAL_SECTION *
SIZE_T *
STRING * STRING *
TIME_ZONE_INFORMATION * TIME_ZONE_INFORMATION *
UINT * UINT *
ULONG * ULONG *
ULONGLONG * ULONGLONG *
USHORT *
UNICODE_STRING * UNICODE_STRING *
VOID * VOID *
WCHAR **
struct _TEB * struct _TEB *
union cptable * union cptable *
void * void *
void **
wine_signal_handler wine_signal_handler
%ptr --extension %ptr --extension
@ -1624,6 +1938,8 @@ void
LPCWSTR LPCWSTR
LPWSTR LPWSTR
PCWSTR
PWSTR
%%odbc32.dll %%odbc32.dll
@ -1665,6 +1981,7 @@ DWORD
HACCEL HACCEL
HANDLE HANDLE
HGLOBAL HGLOBAL
HICON
HINSTANCE HINSTANCE
HMENU HMENU
HOLEMENU HOLEMENU
@ -1704,6 +2021,7 @@ IUnknown **
LPBC LPBC
LPBC * LPBC *
LPCLSID LPCLSID
LPCRECT
LPDATAADVISEHOLDER * LPDATAADVISEHOLDER *
LPDATAOBJECT LPDATAOBJECT
LPDROPTARGET LPDROPTARGET
@ -1741,6 +2059,7 @@ LPVOID
LPVOID * LPVOID *
MULTI_QI * MULTI_QI *
OLECHAR * OLECHAR *
PROPVARIANT *
PSECURITY_DESCRIPTOR PSECURITY_DESCRIPTOR
REFCLSID REFCLSID
REFGUID REFGUID
@ -1776,7 +2095,6 @@ double
BOOL BOOL
BYTE BYTE
CALLCONV CALLCONV
CHAR
DISPID DISPID
DWORD DWORD
FLOAT FLOAT
@ -1802,21 +2120,25 @@ int
short short
signed char signed char
unsigned int unsigned int
unsigned long
%ptr %ptr
BSTR * BSTR *
BYTE * BYTE *
CHAR *
COLORREF * COLORREF *
CY * CY *
DATE * DATE *
DECIMAL *
DISPID * DISPID *
DISPPARAMS * DISPPARAMS *
EXCEPINFO * EXCEPINFO *
FLOAT * FLOAT *
ICreateTypeLib ** ICreateTypeLib **
IID *
INTERFACEDATA * INTERFACEDATA *
IRecordInfo *
IRecordInfo **
ITypeInfo * ITypeInfo *
ITypeInfo ** ITypeInfo **
ITypeLib * ITypeLib *
@ -1860,8 +2182,12 @@ VOID *
double * double *
int * int *
short * short *
signed char *
void * void *
void ** void **
unsigned char *
unsigned long *
%str %str
@ -2019,7 +2345,6 @@ GLdouble *
GLfloat * GLfloat *
GLint * GLint *
GLshort * GLshort *
GLstring
GLubyte * GLubyte *
GLuint * GLuint *
GLushort * GLushort *
@ -2027,6 +2352,7 @@ GLvoid *
GLvoid ** GLvoid **
LPGLYPHMETRICSFLOAT LPGLYPHMETRICSFLOAT
LPLAYERPLANEDESCRIPTOR LPLAYERPLANEDESCRIPTOR
char *
void * void *
%str %str
@ -2065,6 +2391,31 @@ LPSTR
LPWSTR LPWSTR
%%qcap.dll
%long
HRESULT
%ptr
REFCLSID
REFIID
LPVOID *
%%quartz.dll
%long
DWORD
HRESULT
%ptr
REFCLSID
REFIID
LPVOID *
%%rasapi32.dll %%rasapi32.dll
%long %long
@ -2090,6 +2441,7 @@ LPRASDIALPARAMSA
LPRASENTRYA LPRASENTRYA
LPRASENTRYW LPRASENTRYW
LPRASENTRYNAMEA LPRASENTRYNAMEA
LPRASENTRYNAMEW
LPVOID LPVOID
%str %str
@ -2114,6 +2466,7 @@ DLLVERSIONINFO *
%long %long
DWORD
HMODULE HMODULE
HRESULT HRESULT
RPC_BINDING_HANDLE RPC_BINDING_HANDLE
@ -2211,9 +2564,11 @@ BOOL
DWORD DWORD
HDEVINFO HDEVINFO
HINF HINF
HINSTANCE
HKEY HKEY
HSPFILEQ HSPFILEQ
HWND HWND
INT
LONG LONG
UINT UINT
@ -2248,9 +2603,8 @@ void *
%str %str
LPCSTR LPCSTR
LPSTR
PCSTR PCSTR
PCWSTR
PWSTR
%void %void
@ -2259,12 +2613,15 @@ void
%wstr %wstr
LPCWSTR LPCWSTR
PCWSTR
PWSTR
%%shdocvw.dll %%shdocvw.dll
%long %long
BOOL BOOL
DWORD
HRESULT HRESULT
%ptr %ptr
@ -2312,6 +2669,7 @@ POINT
%ptr %ptr
CABINETSTATE *
CLSID * CLSID *
DLLVERSIONINFO * DLLVERSIONINFO *
DWORD * DWORD *
@ -2344,9 +2702,10 @@ LPFNCREATEINSTANCE
LPFNFMCALLBACK LPFNFMCALLBACK
LPITEMIDLIST LPITEMIDLIST
LPITEMIDLIST * LPITEMIDLIST *
LPITEMIDLIST **
LPLONG
LPMALLOC * LPMALLOC *
LPMEASUREITEMSTRUCT LPMEASUREITEMSTRUCT
LPNOTIFYREGISTER
LPPOINT LPPOINT
LPSCROLLSAMPLES LPSCROLLSAMPLES
LPSECURITY_ATTRIBUTES LPSECURITY_ATTRIBUTES
@ -2402,6 +2761,7 @@ ASSOCKEY
ASSOCSTR ASSOCSTR
BOOL BOOL
COLORREF COLORREF
DISPID
DWORD DWORD
HANDLE HANDLE
HDC HDC
@ -2430,6 +2790,7 @@ URLIS
WCHAR WCHAR
WORD WORD
WPARAM WPARAM
char
int int
%longlong %longlong
@ -2446,11 +2807,14 @@ HICON *
HKEY * HKEY *
HWND * HWND *
IBindCtx * IBindCtx *
IConnectionPoint *
IConnectionPoint ** IConnectionPoint **
IDispatch **
IFACE_INDEX_TBL * IFACE_INDEX_TBL *
IID * IID *
INT * INT *
IPropertyBag * IPropertyBag *
IShellFolder *
IStream * IStream *
IStream ** IStream **
ITEMIDLIST * ITEMIDLIST *
@ -2466,11 +2830,11 @@ LPCSTR *
LPCVOID LPCVOID
LPCWSTR * LPCWSTR *
LPDWORD LPDWORD
LPDWORD *
LPINT LPINT
LPITEMIDLIST LPITEMIDLIST
LPOPENFILENAMEW LPOPENFILENAMEW
LPPAGESETUPDLGW LPPAGESETUPDLGW
LPPOLICYDATA
LPPRINTDLGW LPPRINTDLGW
LPSECURITY_ATTRIBUTES LPSECURITY_ATTRIBUTES
LPSHELLEXECUTEINFOW LPSHELLEXECUTEINFOW
@ -2486,6 +2850,7 @@ LPWORD
LPWSTR * LPWSTR *
OLECMD * OLECMD *
OLECMDTEXT * OLECMDTEXT *
PHKEY
PHUSKEY PHUSKEY
PLONG PLONG
PSECURITY_DESCRIPTOR PSECURITY_DESCRIPTOR
@ -2674,6 +3039,7 @@ pTW_IDENTITY
BOOL BOOL
DWORD DWORD
HRESULT HRESULT
QUERYOPTION
long long
%ptr %ptr
@ -2688,7 +3054,9 @@ IEnumFORMATETC *
IMoniker * IMoniker *
IMoniker ** IMoniker **
LPBC LPBC
LPBINDSTATUSCALLBACK
LPWSTR * LPWSTR *
LPUNKNOWN
LPVOID LPVOID
LPVOID * LPVOID *
REFCLSID REFCLSID
@ -2820,7 +3188,6 @@ LPSCROLLINFO
LPSECURITY_ATTRIBUTES LPSECURITY_ATTRIBUTES
LPTPMPARAMS LPTPMPARAMS
LPVOID LPVOID
LPWINE_CLIPFORMAT
LPWORD LPWORD
MENUITEMINFOA * MENUITEMINFOA *
MENUITEMINFOW * MENUITEMINFOW *
@ -2842,7 +3209,7 @@ PROPENUMPROCW
PSECURITY_DESCRIPTOR PSECURITY_DESCRIPTOR
PSECURITY_INFORMATION PSECURITY_INFORMATION
PSECURITY_QUALITY_OF_SERVICE PSECURITY_QUALITY_OF_SERVICE
PUINT PUINT_PTR
PVOID PVOID
PWINDOWINFO PWINDOWINFO
RECT * RECT *
@ -2860,7 +3227,6 @@ WNDCLASSEXW *
WNDCLASSW * WNDCLASSW *
WNDENUMPROC WNDENUMPROC
WNDPROC WNDPROC
char *
va_list va_list
%ptr --extension %ptr --extension
@ -2956,7 +3322,6 @@ WORD
BOOL BOOL
BYTE BYTE
DWORD DWORD
HANDLE
UINT UINT
int int
@ -3068,12 +3433,15 @@ LPCWSTR
%%wininet.dll %%wininet.dll
%double
FILETIME
GROUPID
%long %long
BOOL BOOL
DWORD DWORD
FILETIME
GROUPID
HANDLE HANDLE
HINTERNET HINTERNET
HRESULT HRESULT
@ -3096,6 +3464,7 @@ LPINTERNET_CACHE_ENTRY_INFOW
LPURL_COMPONENTSA LPURL_COMPONENTSA
LPURL_COMPONENTSW LPURL_COMPONENTSW
LPVOID LPVOID
LPVOID *
LPWIN32_FIND_DATAA LPWIN32_FIND_DATAA
LPWIN32_FIND_DATAW LPWIN32_FIND_DATAW
@ -3375,7 +3744,11 @@ UINT
INT * INT *
LPDWORD LPDWORD
LPGUID
LPINT LPINT
LPSERVICE_ASYNC_INFO
LPSERVICE_INFOA
LPSERVICE_INFOW
LPVOID LPVOID
char * char *
struct netent * struct netent *
@ -3383,11 +3756,16 @@ struct netent *
%str %str
LPCSTR LPCSTR
LPSTR
%void %void
void void
%wstr
LPWSTR
%%x11drv.dll %%x11drv.dll
%long %long
@ -3397,6 +3775,7 @@ CHAR
COLORREF COLORREF
DWORD DWORD
HANDLE HANDLE
HANDLE16
HBITMAP HBITMAP
HBRUSH HBRUSH
HDC HDC
@ -3425,9 +3804,11 @@ DEVICEFONTENUMPROC
DEVMODEA * DEVMODEA *
DWORD * DWORD *
HANDLE * HANDLE *
HANDLE16 *
INT * INT *
LPBYTE LPBYTE
LPCVOID LPCVOID
LPDEVMODEW
LPINT LPINT
LPLOGFONTW LPLOGFONTW
LPPALETTEENTRY LPPALETTEENTRY

View File

@ -257,7 +257,7 @@ sub parse_spec_file {
s/^\s*(.*?)\s*$/$1/; s/^\s*(.*?)\s*$/$1/;
if(s/^(.*?)\s*\#\s*(.*)\s*$/$1/) { if(s/^(.*?)\s*\#\s*(.*)\s*$/$1/) {
my $comment = $2; my $comment = $2;
if ($comment =~ /^Wine/) { # FIXME: Kludge if ($comment =~ /^Wine/i) { # FIXME: Kludge
$wine_extension = 1; $wine_extension = 1;
} }
} }
@ -271,7 +271,7 @@ sub parse_spec_file {
my $ordinal; my $ordinal;
if(/^(\d+|@)\s+ if(/^(\d+|@)\s+
(pascal|pascal16|stdcall|cdecl|varargs)\s+ (pascal|pascal16|stdcall|cdecl|varargs)\s+
((?:(?:-noimport|-noname|-norelay|-i386|-ret64|-register|-interrupt)\s+)*)(\S+)\s*\(\s*(.*?)\s*\)\s*(\S*)$/x) ((?:(?:-noimport|-noname|-norelay|-i386|-ret64|-register|-interrupt|-private)\s+)*)(\S+)\s*\(\s*(.*?)\s*\)\s*(\S*)$/x)
{ {
my $calling_convention = $2; my $calling_convention = $2;
my $flags = $3; my $flags = $3;
@ -283,6 +283,8 @@ sub parse_spec_file {
$flags =~ s/\s+/ /g; $flags =~ s/\s+/ /g;
$internal_name = $external_name if !$internal_name;
if($flags =~ /-noname/) { if($flags =~ /-noname/) {
# $external_name = "@"; # $external_name = "@";
} }
@ -294,7 +296,7 @@ sub parse_spec_file {
} }
if ($internal_name =~ /^(.*?)\.(.*?)$/) { if ($internal_name =~ /^(.*?)\.(.*?)$/) {
my $forward_module = $1; my $forward_module = lc($1);
my $forward_name = $2; my $forward_name = $2;
if (0) { if (0) {
@ -378,7 +380,7 @@ sub parse_spec_file {
} }
} }
} }
} elsif(/^(\d+|@)\s+stub(?:\s+(-noimport|-noname|-norelay|-i386|-ret64))?\s+(\S+)$/) { } elsif(/^(\d+|@)\s+stub(?:\s+(-noimport|-noname|-norelay|-i386|-ret64|-private))?\s+(\S+)$/) {
$ordinal = $1; $ordinal = $1;
my $flags = $2; my $flags = $2;
@ -427,25 +429,14 @@ sub parse_spec_file {
} else { # if($$function_external_module{$external_name} !~ /$module/) { } else { # if($$function_external_module{$external_name} !~ /$module/) {
$$function_external_module{$external_name} .= " & $module"; $$function_external_module{$external_name} .= " & $module";
} }
} elsif(/^(\d+|@)\s+forward(?:\s+(?:-noimport|-norelay|-i386|-ret64))?\s+(\S+)\s+(\S+)\.(\S+)$/) { } elsif(/^(\d+|@)\s+extern(?:\s+(?:-noimport|-norelay|-i386|-ret64))?\s+(\S+)\s*(\S*)$/) {
$ordinal = $1;
my $external_name = $2;
my $forward_module = lc($3);
my $forward_name = $4;
if ($external_name ne "@") {
$$module_external_calling_convention{$module}{$external_name} = "forward";
} else {
$$module_external_calling_convention{$module}{"\@$ordinal"} = "forward";
}
$$function_forward{$module}{$external_name} = [$forward_module, $forward_name];
} elsif(/^(\d+|@)\s+extern\s+(\S+)\s*(\S*)$/) {
$ordinal = $1; $ordinal = $1;
my $external_name = $2; my $external_name = $2;
my $internal_name = $3; my $internal_name = $3;
$internal_name = $external_name if !$internal_name;
if ($external_name ne "@") { if ($external_name ne "@") {
$$module_external_calling_convention{$module}{$external_name} = "extern"; $$module_external_calling_convention{$module}{$external_name} = "extern";
} else { } else {
@ -928,17 +919,13 @@ sub function_wine_extension {
sub is_function_stub { sub is_function_stub {
my $self = shift; my $self = shift;
my $module_external_calling_convention = \%{$self->{MODULE_EXTERNAL_CALLING_CONVENTION}}; my $module_external_calling_convention = \%{$self->{MODULE_EXTERNAL_CALLING_CONVENTION}};
my $modules = \%{$self->{MODULES}};
my $module = shift; my $module = shift;
my $name = shift; my $name = shift;
foreach my $module (keys(%$modules)) { if($$module_external_calling_convention{$module}{$name} eq "stub") {
if($$module_external_calling_convention{$module}{$name} eq "stub") { return 1;
return 1;
}
} }
return 0; return 0;
} }

View File

@ -46,8 +46,12 @@ dlls/crypt32
% dlls/ctl3d/ctl3d.spec % dlls/ctl3d/ctl3d.spec
dlls/ctl3d
% dlls/ctl3d/ctl3d32.spec % dlls/ctl3d/ctl3d32.spec
dlls/ctl3d
% dlls/ctl3d/ctl3dv2.spec % dlls/ctl3d/ctl3dv2.spec
dlls/ctl3d dlls/ctl3d
@ -64,6 +68,10 @@ dlls/d3d8
dlls/d3d9 dlls/d3d9
% dlls/d3dim/d3dim.spec
dlls/d3dim
% dlls/d3dx8/d3dx8.spec % dlls/d3dx8/d3dx8.spec
dlls/d3dx8 dlls/d3dx8
@ -240,6 +248,10 @@ dlls/msvcrt20
dlls/msvcrtd dlls/msvcrtd
% dlls/mswsock/mswsock.spec
dlls/mswsock
% dlls/kernel/stress.spec % dlls/kernel/stress.spec
dlls/kernel dlls/kernel
@ -306,6 +318,8 @@ dlls/msacm/winemp3
% dlls/msnet32/msnet32.spec % dlls/msnet32/msnet32.spec
dlls/msnet32
% dlls/msvideo/msvfw32.spec % dlls/msvideo/msvfw32.spec
dlls/msvideo dlls/msvideo

View File

@ -54,6 +54,9 @@ sub new {
$configure_ac_file =~ s/^\.\///; $configure_ac_file =~ s/^\.\///;
$config_h_in_file =~ s/^\.\///; $config_h_in_file =~ s/^\.\///;
$$conditional_headers{"config.h"}++;
$output->progress("$api_file"); $output->progress("$api_file");
open(IN, "< $api_file"); open(IN, "< $api_file");
@ -101,16 +104,28 @@ sub new {
# skip comments # skip comments
if(/^dnl/) { next; } if(/^dnl/) { next; }
if(/^AC_CHECK_HEADERS\(\s*([^,\)]*)(?:,|\))?/) { if(/AC_CHECK_HEADERS\(\s*([^,\)]*)(?:,|\))?/) {
foreach my $name (split(/\s+/, $1)) { my $headers = $1;
$headers =~ s/^\s*\[\s*(.*?)\s*\]\s*$/$1/;
foreach my $name (split(/\s+/, $headers)) {
$$conditional_headers{$name}++; $$conditional_headers{$name}++;
} }
} elsif(/^AC_CHECK_FUNCS\(\s*([^,\)]*)(?:,|\))?/) { } elsif(/AC_CHECK_FUNCS\(\s*([^,\)]*)(?:,|\))?/) {
foreach my $name (split(/\s+/, $1)) { my $funcs = $1;
$funcs =~ s/^\s*\[\s*(.*?)\s*\]\s*$/$1/;
foreach my $name (split(/\s+/, $funcs)) {
$$conditional_functions{$name}++; $$conditional_functions{$name}++;
} }
} elsif(/^AC_FUNC_ALLOCA/) { } elsif(/AC_FUNC_ALLOCA/) {
$$conditional_headers{"alloca.h"}++; $$conditional_headers{"alloca.h"}++;
} elsif (/AC_DEFINE\(\s*HAVE_(.*?)_H/) {
my $name = lc($1);
$name =~ s/_/\//;
$name .= ".h";
next if $name =~ m%correct/%;
$$conditional_headers{$name}++;
} }
} }

View File

@ -79,27 +79,42 @@ sub begin_if {
local $_ = shift; local $_ = shift;
while(!/^$/) { while(!/^$/) {
if(/^0\s*\&\&/) { if(/^0\s*\&\&/s) {
$_ = "0"; $_ = "0";
} elsif(/^1\s*\|\|/) { } elsif(/^1\s*\|\|/s) {
$_ = "1"; $_ = "1";
} }
if(/^(!)?defined\s*\(\s*(.+?)\s*\)\s*((\&\&|\|\|)\s*)?/){ if (/^(!\s*)?defined\s*\(\s*(\w+)\s*\)\s*(?:(\&\&|\|\|)\s*)?/s ||
/^(!\s*)?defined\s*(\w+)\s*(?:(\&\&|\|\|)\s*)?/s)
{
$_ = $'; $_ = $';
if(defined($1) && $1 eq "!") {
$self->undefine($2); my $sign = $1;
push @$stack, $2; my $var = $2;
if (defined($sign) && $sign eq "!") {
$self->undefine($var);
push @$stack, $var;
} else { } else {
$self->define($2); $self->define($var);
push @$stack, $2; push @$stack, $var;
} }
} elsif(/^(\w+)\s*(<|<=|==|!=|>=|>)\s*(\w+)\s*((\&\&|\|\|)\s*)?/) { } elsif (/^(!\s*)?(\w+)\s*(?:(<|<=|==|!=|>=|>|\+|\-|\*\/)\s*(\w+)\s*)?(?:(\&\&|\|\|)\s*)?/s) {
$_ = $';
} elsif(/^(!)?(\w+)\s*$/) {
$_ = $';
} elsif(/^\(|\)/) {
$_ = $'; $_ = $';
my $sign = $1;
my $var = $2;
if (defined($sign) && $sign eq "!") {
$self->undefine($var);
push @$stack, $var;
} else {
$self->define($var);
push @$stack, $var;
}
} elsif(/^(!\s*)?\(/s) {
$_ = "";
} else { } else {
print "*** Can't parse '#$directive $_' ***\n"; print "*** Can't parse '#$directive $_' ***\n";
$_ = ""; $_ = "";

View File

@ -538,9 +538,14 @@ foreach my $file (@c_files) {
} else { } else {
$include = "$header"; $include = "$header";
} }
} elsif($header =~ /^(?:\.\.\/kernel\/(kernel_private\.h))$/) { # FIXME: Kludge
my $header2 = $1;
$include = "dlls/kernel/$header2";
} elsif($header =~ /^(?:ntdll_misc\.h)$/) { # FIXME: Kludge
$include = "dlls/ntdll/$header";
} elsif($header =~ /^(?:controls\.h|message\.h)$/) { # FIXME: Kludge } elsif($header =~ /^(?:controls\.h|message\.h)$/) { # FIXME: Kludge
$include = "dlls/user/$header"; $include = "dlls/user/$header";
} elsif($header =~ /^(?:ts_xlib\.h|winproc\.h|x11font\.h|)$/) { # FIXME: Kludge } elsif($header =~ /^(?:ts_xlib\.h|winproc\.h|x11drv\.h|x11font\.h)$/) { # FIXME: Kludge
$include = "dlls/x11drv/$header"; $include = "dlls/x11drv/$header";
} elsif($check_local && $header ne "config.h") { } elsif($check_local && $header ne "config.h") {
$output->write("$file: #include \"$header\": file not found\n"); $output->write("$file: #include \"$header\": file not found\n");
@ -613,14 +618,26 @@ foreach my $file (@c_files) {
$include2info{$name}{used}++; $include2info{$name}{used}++;
} }
} }
} elsif($header =~ /^(?:\.\.\/kernel\/(kernel_private\.h))$/) { # FIXME: Kludge
my $header2 = $1;
$include2info{"dlls/kernel/$header2"}{used}++;
foreach my $name (keys(%{$include2info{"dlls/kernel/$header2"}{includes}})) {
$include2info{$name}{used}++;
}
} elsif($header =~ /^(?:ntdll_misc\.h)$/) { # FIXME: Kludge
$include2info{"dlls/ntdll/$header"}{used}++;
foreach my $name (keys(%{$include2info{"dlls/ntdll/$header"}{includes}})) {
$include2info{$name}{used}++;
}
} elsif($header =~ /^(?:controls\.h|message\.h)$/) { # FIXME: Kludge } elsif($header =~ /^(?:controls\.h|message\.h)$/) { # FIXME: Kludge
$include2info{"dlls/user/$header"}{used}++; $include2info{"dlls/user/$header"}{used}++;
foreach my $name (keys(%{$include2info{"dlls/user/$header"}{includes}})) { foreach my $name (keys(%{$include2info{"dlls/user/$header"}{includes}})) {
$include2info{$name}{used}++; $include2info{$name}{used}++;
} }
} elsif($header =~ /^(?:ts_xlib\.h|winproc\.h|x11font\.h|)$/) { # FIXME: Kludge } elsif($header =~ /^(?:ts_xlib\.h|winproc\.h|x11drv\.h|x11font\.h)$/) { # FIXME: Kludge
$include2info{"dlls/x11drv/$header"}{used}++; $include2info{"dlls/x11drv/$header"}{used}++;
foreach my $name (keys(%{$include2info{"dlls/user/$header"}{includes}})) { foreach my $name (keys(%{$include2info{"dlls/x11drv/$header"}{includes}})) {
$include2info{$name}{used}++; $include2info{$name}{used}++;
} }
} elsif(-e "$wine_dir/include/$header") { } elsif(-e "$wine_dir/include/$header") {

View File

@ -87,7 +87,7 @@ sub check_documentation {
my $ordinal2 = $7; my $ordinal2 = $7;
if ($winapi->function_wine_extension(lc($module2), $external_name2)) { if ($winapi->function_wine_extension(lc($module2), $external_name2)) {
$output->write("documentation: $external_name2 (\U$module2\E.$ordinal2) is a Wine extension \\\n$documentation\n"); # $output->write("documentation: $external_name2 (\U$module2\E.$ordinal2) is a Wine extension \\\n$documentation\n");
} }
if(length($1) != 1 || length($2) < 1 || if(length($1) != 1 || length($2) < 1 ||
@ -108,6 +108,7 @@ sub check_documentation {
} }
if((($options->documentation_name && !$found_name) || if((($options->documentation_name && !$found_name) ||
($options->documentation_ordinal && !$found_ordinal)) && ($options->documentation_ordinal && !$found_ordinal)) &&
!$winapi->is_function_stub($module, $external_name) &&
!$winapi->function_wine_extension($module, $external_name)) !$winapi->function_wine_extension($module, $external_name))
{ {
$documentation_error = 1; $documentation_error = 1;
@ -202,7 +203,7 @@ sub check_documentation {
for my $argument_documentation (@$refargument_documentations) { for my $argument_documentation (@$refargument_documentations) {
$n++; $n++;
if($argument_documentation ne "") { if($argument_documentation ne "") {
if($argument_documentation !~ /^\/\*\s+\[(?:in|out|in\/out|\?\?\?)\].*?\*\/$/s) { if($argument_documentation !~ /^\/\*\s+\[(?:in|out|in\/out|\?\?\?|I|O|I\/O)\].*?\*\/$/s) {
$output->write("argument $n documentation: \\\n$argument_documentation\n"); $output->write("argument $n documentation: \\\n$argument_documentation\n");
} }
} }

View File

@ -38,6 +38,7 @@ sub check_modules {
if(!$winapi->is_module($module)) { next; } if(!$winapi->is_module($module)) { next; }
my $functions = $$module2functions{$module}; my $functions = $$module2functions{$module};
foreach my $internal_name ($winapi->all_internal_functions_in_module($module)) { foreach my $internal_name ($winapi->all_internal_functions_in_module($module)) {
next if $internal_name =~ /\./;
my $function = $functions->{$internal_name}; my $function = $functions->{$internal_name};
if(!defined($function) && !$nativeapi->is_function($internal_name) && if(!defined($function) && !$nativeapi->is_function($internal_name) &&
!($module eq "user" && $internal_name =~ !($module eq "user" && $internal_name =~

View File

@ -221,7 +221,8 @@ sub parse_c_file {
# remove preprocessor directives # remove preprocessor directives
if(s/^\s*\#/\#/s) { if(s/^\s*\#/\#/s) {
if(/^\#.*?\\$/s) { if(/^(\#.*?)\\$/s) {
$_ = "$1\n";
$lookahead = 1; $lookahead = 1;
next; next;
} elsif(s/^\#\s*(\w+)((?:\s+(.*?))?\s*)$//s) { } elsif(s/^\#\s*(\w+)((?:\s+(.*?))?\s*)$//s) {
@ -533,7 +534,7 @@ sub parse_c_file {
((?:const\s+|enum\s+|long\s+|signed\s+|short\s+|struct\s+|union\s+|unsigned\s+)*?) ((?:const\s+|enum\s+|long\s+|signed\s+|short\s+|struct\s+|union\s+|unsigned\s+)*?)
(\w+) (\w+)
(?:\s+const)? (?:\s+const)?
((?:\s*\*+\s*|\s+)\w+\s*(?:\[[^\]]*\])? ((?:\s*\*+\s*|\s+)\w+\s*(?:\[[^\]]*\])*
(?:\s*,\s*(?:\s*\*+\s*|\s+)\w+\s*(?:\[[^\]]*\])?)*) (?:\s*,\s*(?:\s*\*+\s*|\s+)\w+\s*(?:\[[^\]]*\])?)*)
\s*;/sx) \s*;/sx)
{ {