Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
faf64aa9
Commit
faf64aa9
authored
Sep 04, 2000
by
Patrik Stridvall
Committed by
Alexandre Julliard
Sep 04, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor API files update.
parent
e3deda37
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
154 additions
and
17 deletions
+154
-17
modules.dat
tools/winapi_check/modules.dat
+6
-5
nativeapi.pm
tools/winapi_check/nativeapi.pm
+56
-5
compobj.api
tools/winapi_check/win16/compobj.api
+0
-1
ntdll.api
tools/winapi_check/win32/ntdll.api
+4
-3
ttydrv.api
tools/winapi_check/win32/ttydrv.api
+36
-0
x11drv.api
tools/winapi_check/win32/x11drv.api
+36
-0
winapi_check
tools/winapi_check/winapi_check
+3
-0
winapi_parser.pm
tools/winapi_check/winapi_parser.pm
+13
-3
No files found.
tools/winapi_check/modules.dat
View file @
faf64aa9
...
@@ -58,7 +58,6 @@ dlls/gdi
...
@@ -58,7 +58,6 @@ dlls/gdi
graphics/metafiledrv
graphics/metafiledrv
graphics/win16drv
graphics/win16drv
graphics
graphics
memory
objects
objects
% dlls/gdi/gdi32.spec
% dlls/gdi/gdi32.spec
...
@@ -91,7 +90,6 @@ dlls/imm32
...
@@ -91,7 +90,6 @@ dlls/imm32
dlls/kernel
dlls/kernel
files
files
if1632
loader/ne
loader/ne
loader
loader
memory
memory
...
@@ -299,6 +297,8 @@ dlls/tapi32
...
@@ -299,6 +297,8 @@ dlls/tapi32
% dlls/ttydrv/ttydrv.spec
% dlls/ttydrv/ttydrv.spec
dlls/ttydrv
% dlls/urlmon/urlmon.spec
% dlls/urlmon/urlmon.spec
dlls/urlmon
dlls/urlmon
...
@@ -314,7 +314,7 @@ objects
...
@@ -314,7 +314,7 @@ objects
% dlls/user/keyboard.spec
% dlls/user/keyboard.spec
memory
dlls/user
windows
windows
% dlls/user/mouse.spec
% dlls/user/mouse.spec
...
@@ -325,7 +325,6 @@ dlls/user
...
@@ -325,7 +325,6 @@ dlls/user
controls
controls
dlls/user
dlls/user
if1632
memory
memory
misc
misc
windows
windows
...
@@ -335,7 +334,6 @@ windows
...
@@ -335,7 +334,6 @@ windows
controls
controls
dlls/user
dlls/user
loader
loader
memory
misc
misc
windows
windows
...
@@ -452,3 +450,6 @@ win32
...
@@ -452,3 +450,6 @@ win32
% dlls/x11drv/x11drv.spec
% dlls/x11drv/x11drv.spec
dlls/x11drv
graphics/x11drv
windows/x11drv
tools/winapi_check/nativeapi.pm
View file @
faf64aa9
...
@@ -50,17 +50,32 @@ sub new {
...
@@ -50,17 +50,32 @@ sub new {
while
(
$again
||
(
defined
(
$_
=
<
IN
>
)))
{
while
(
$again
||
(
defined
(
$_
=
<
IN
>
)))
{
$again
=
0
;
$again
=
0
;
chomp
;
chomp
;
if
(
/(.*)\\$/
)
{
if
(
/^(.*?)\\$/
)
{
my
$line
=
<
IN
>
;
my
$current
=
$1
;
if
(
defined
(
$line
))
{
my
$next
=
<
IN
>
;
$_
=
$1
.
" "
.
$line
;
if
(
defined
(
$next
))
{
# remove trailing whitespace
$current
=~
s/\s+$//
;
# remove leading whitespace
$next
=~
s/^\s+//
;
$_
=
$current
.
" "
.
$next
;
$again
=
1
;
$again
=
1
;
next
;
next
;
}
}
}
}
# remove leading and trailing whitespace
# remove leading and trailing whitespace
s/^\s*(.*?)\s*$/$1/
;
s/^\s*(.*?)\s*$/$1/
;
# skip emty lines
if
(
/^$/
)
{
next
;
}
# skip comments
if
(
/^dnl/
)
{
next
;
}
if
(
/^AC_CHECK_HEADERS\(\s*(.*?)\)\s*$/
)
{
if
(
/^AC_CHECK_HEADERS\(\s*(.*?)\)\s*$/
)
{
my
@arguments
=
split
(
/,/
,
$1
);
my
@arguments
=
split
(
/,/
,
$1
);
foreach
my
$name
(
split
(
/\s+/
,
$arguments
[
0
]))
{
foreach
my
$name
(
split
(
/\s+/
,
$arguments
[
0
]))
{
...
@@ -85,7 +100,13 @@ sub new {
...
@@ -85,7 +100,13 @@ sub new {
open
(
IN
,
"< $config_h_in_file"
);
open
(
IN
,
"< $config_h_in_file"
);
local
$/
=
"\n"
;
local
$/
=
"\n"
;
while
(
<
IN
>
)
{
while
(
<
IN
>
)
{
if
(
/^\#undef\s+(\S+)\s*$/
)
{
# remove leading and trailing whitespace
s/^\s*(.*?)\s*$/$1/
;
# skip emty lines
if
(
/^$/
)
{
next
;
}
if
(
/^\#undef\s+(\S+)$/
)
{
$$conditionals
{
$1
}
++
;
$$conditionals
{
$1
}
++
;
}
}
}
}
...
@@ -112,6 +133,15 @@ sub is_conditional {
...
@@ -112,6 +133,15 @@ sub is_conditional {
return
$$conditionals
{
$name
};
return
$$conditionals
{
$name
};
}
}
sub
found_conditional
{
my
$self
=
shift
;
my
$conditional_found
=
\%
{
$self
->
{
CONDITIONAL_FOUND
}};
my
$name
=
shift
;
$$conditional_found
{
$name
}
++
;
}
sub
is_conditional_header
{
sub
is_conditional_header
{
my
$self
=
shift
;
my
$self
=
shift
;
my
$conditional_headers
=
\%
{
$self
->
{
CONDITIONAL_HEADERS
}};
my
$conditional_headers
=
\%
{
$self
->
{
CONDITIONAL_HEADERS
}};
...
@@ -130,4 +160,25 @@ sub is_conditional_function {
...
@@ -130,4 +160,25 @@ sub is_conditional_function {
return
$$conditional_functions
{
$name
};
return
$$conditional_functions
{
$name
};
}
}
sub
global_report
{
my
$self
=
shift
;
my
$output
=
\
$
{
$self
->
{
OUTPUT
}};
my
$conditional_found
=
\%
{
$self
->
{
CONDITIONAL_FOUND
}};
my
$conditionals
=
\%
{
$self
->
{
CONDITIONALS
}};
my
@messages
;
foreach
my
$name
(
sort
(
keys
(
%
$conditionals
)))
{
if
(
$name
=~
/^const|inline|size_t$/
)
{
next
;
}
if
(
0
&&
!
$$conditional_found
{
$name
})
{
push
@messages
,
"config.h.in: conditional $name not used\n"
;
}
}
foreach
my
$message
(
sort
(
@messages
))
{
$$output
->
write
(
$message
);
}
}
1
;
1
;
tools/winapi_check/win16/compobj.api
View file @
faf64aa9
...
@@ -49,6 +49,5 @@ VOID
...
@@ -49,6 +49,5 @@ VOID
BOOL16
BOOL16
HINSTANCE16
HINSTANCE16
HTASK16
HTASK16
OLESTATUS
INT16
INT16
WORD
WORD
tools/winapi_check/win32/ntdll.api
View file @
faf64aa9
...
@@ -46,6 +46,7 @@ CONTEXT *
...
@@ -46,6 +46,7 @@ CONTEXT *
CONTEXT86 *
CONTEXT86 *
CRITICAL_SECTION *
CRITICAL_SECTION *
DWORD *
DWORD *
EXCEPTION_FRAME *
EXCEPTION_RECORD *
EXCEPTION_RECORD *
HANDLE *
HANDLE *
LPBYTE
LPBYTE
...
@@ -56,13 +57,12 @@ LPRTL_RWLOCK
...
@@ -56,13 +57,12 @@ LPRTL_RWLOCK
LPVOID
LPVOID
LPVOID *
LPVOID *
LPWSTR *
LPWSTR *
OBJECT_ATTRIBUTES *
PACE_HEADER
PACE_HEADER
PACE_HEADER *
PACE_HEADER *
PACL
PACL
PACL *
PACL *
PANSI_STRING
PBOOLEAN
PBOOLEAN
PCHAR
PDWORD
PDWORD
PEXCEPTION_FRAME
PEXCEPTION_FRAME
PEXCEPTION_RECORD
PEXCEPTION_RECORD
...
@@ -90,7 +90,8 @@ PULONG
...
@@ -90,7 +90,8 @@ PULONG
PUNICODE_STRING
PUNICODE_STRING
PVOID
PVOID
PVOID *
PVOID *
PWCHAR
STRING *
UNICODE_STRING *
VOID *
VOID *
struct _TEB *
struct _TEB *
void *
void *
...
...
tools/winapi_check/win32/ttydrv.api
0 → 100644
View file @
faf64aa9
%long
BOOL
CHAR
DWORD
HANDLE
LONG
UINT
WORD
%long # --forbidden
INT16
UINT16
int
%ptr
BYTE *
KEYBOARD_CONFIG *
LPBYTE
LPDIDEVICEOBJECTDATA
LPDWORD
LPMOUSE_EVENT_PROC
LPVOID
struct tagCURSORICONINFO *
struct tagWND *
%str
LPCSTR
LPSTR
%void
void
tools/winapi_check/win32/x11drv.api
0 → 100644
View file @
faf64aa9
%long
BOOL
CHAR
DWORD
HANDLE
LONG
UINT
WORD
%long # --forbidden
INT16
UINT16
int
%ptr
BYTE *
CURSORICONINFO *
KEYBOARD_CONFIG *
LPBYTE
LPDIDEVICEOBJECTDATA
LPDWORD
LPMOUSE_EVENT_PROC
LPVOID
WND *
%str
LPCSTR
LPSTR
%void
void
tools/winapi_check/winapi_check
View file @
faf64aa9
...
@@ -509,6 +509,8 @@ foreach my $file ($options->c_files) {
...
@@ -509,6 +509,8 @@ foreach my $file ($options->c_files) {
my
$found_conditional
=
sub
{
my
$found_conditional
=
sub
{
local
$_
=
shift
;
local
$_
=
shift
;
$nativeapi
->
found_conditional
(
$_
);
if
(
$options
->
config
)
{
if
(
$options
->
config
)
{
if
(
$file_type
ne
"application"
)
{
if
(
$file_type
ne
"application"
)
{
if
(
!
$nativeapi
->
is_conditional
(
$_
))
{
if
(
!
$nativeapi
->
is_conditional
(
$_
))
{
...
@@ -702,4 +704,5 @@ if($options->global) {
...
@@ -702,4 +704,5 @@ if($options->global) {
winapi_global::
check
$options
,
$output
,
$win32api
,
$nativeapi
if
$options
->
win32
;
winapi_global::
check
$options
,
$output
,
$win32api
,
$nativeapi
if
$options
->
win32
;
$modules
->
global_report
;
$modules
->
global_report
;
$nativeapi
->
global_report
;
}
}
tools/winapi_check/winapi_parser.pm
View file @
faf64aa9
...
@@ -279,10 +279,20 @@ sub parse_c_file {
...
@@ -279,10 +279,20 @@ sub parse_c_file {
my
@arguments
=
(
"HDC16"
);
my
@arguments
=
(
"HDC16"
);
&
$function_begin
(
$documentation
,
""
,
$2
,
"WINAPI"
,
$3
,
\
@arguments
);
&
$function_begin
(
$documentation
,
""
,
$2
,
"WINAPI"
,
$3
,
\
@arguments
);
&
$function_end
;
&
$function_end
;
}
elsif
(
/DC_(GET_VAL
_32
)\s*\(\s*(.*?)\s*,\s*(.*?)\s*,.*?\)/s
)
{
}
elsif
(
/DC_(GET_VAL)\s*\(\s*(.*?)\s*,\s*(.*?)\s*,.*?\)/s
)
{
$_
=
$'
;
$again
=
1
;
$_
=
$'
;
$again
=
1
;
my
@arguments
=
(
"HDC"
);
my
$return16
=
$3
.
"16"
;
&
$function_begin
(
$documentation
,
""
,
$2
,
"WINAPI"
,
$3
,
\
@arguments
);
my
$return32
=
$3
;
my
$name16
=
$2
.
"16"
;
my
$name32
=
$2
;
my
@arguments16
=
(
"HDC16"
);
my
@arguments32
=
(
"HDC"
);
if
(
$name16
eq
"COLORREF16"
)
{
$name16
=
"COLORREF"
;
}
&
$function_begin
(
$documentation
,
""
,
$name16
,
"WINAPI"
,
$return16
,
\
@arguments16
);
&
$function_end
;
&
$function_begin
(
$documentation
,
""
,
$name32
,
"WINAPI"
,
$return32
,
\
@arguments32
);
&
$function_end
;
&
$function_end
;
}
elsif
(
/DC_(GET_VAL_EX)\s*\(\s*(.*?)\s*,\s*(.*?)\s*,\s*(.*?)\s*,\s*(.*?)\s*\)/s
)
{
}
elsif
(
/DC_(GET_VAL_EX)\s*\(\s*(.*?)\s*,\s*(.*?)\s*,\s*(.*?)\s*,\s*(.*?)\s*\)/s
)
{
$_
=
$'
;
$again
=
1
;
$_
=
$'
;
$again
=
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment