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
7257b707
Commit
7257b707
authored
Aug 08, 2005
by
Vincent Béron
Committed by
Alexandre Julliard
Aug 08, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove WINE_PACKED recognition.
Update various winapi parser regular expressions to let it understand some Wine constructs.
parent
eca5bd48
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
winapi_parser.pm
tools/winapi/winapi_parser.pm
+12
-7
No files found.
tools/winapi/winapi_parser.pm
View file @
7257b707
...
...
@@ -358,7 +358,9 @@ sub parse_c_file($$) {
&
$function_end
(
$statements_line
,
$statements
);
$statements
=
undef
;
}
elsif
(
$in_type
)
{
if
(
/^\s*(?:WINE_PACKED\s+)?((?:(?:FAR\s*)?\*\s*(?:RESTRICTED_POINTER\s+)?)?\w+\s*(?:\s*,\s*(?:(?:FAR\s*)?\*+\s*(?:RESTRICTED_POINTER\s+)?)?\w+)*\s*);/s
)
{
if
(
/^\
s
*
((?:(?:
FAR
\
s
*
)?
\*\
s
*
(?:
RESTRICTED_POINTER
\
s
+
)?)?
(?:
\
w
+|
WS
\
(
\
w
+\
))
\
s
*
(?:
\
s
*
,
\
s
*
(?:(?:
FAR
\
s
*
)?
\*+\
s
*
(?:
RESTRICTED_POINTER
\
s
+
)?)?(?:
\
w
+|
WS
\
(
\
w
+\
)))
*\
s
*
);
/
sx
)
{
my
@parts
=
split
(
/\s*,\s*/
,
$1
);
&
$type_end
([
@parts
]);
}
elsif
(
/;/s
)
{
...
...
@@ -430,14 +432,17 @@ sub parse_c_file($$) {
$argument_name
=
"..."
;
}
elsif
(
$argument
=~
/^
((?:
struct
\
s
+|
union
\
s
+|
enum
\
s
+|
register
\
s
+|
(?:
signed
\
s
+|
unsigned
\
s
+
)
(?:
short
\
s
+
(?
=
int
)
|
long
\
s
+
(?
=
int
))?)?
\
w
+|
ElfW
\
(
\
w
+\
))
\
s
*
(?:
short
\
s
+
(?
=
int
)
|
long
\
s
+
(?
=
int
))?)?
(?:
\
w
+|
ElfW
\
(
\
w
+\
)
|
WS
\
(
\
w
+\
)
))
\
s
*
((?:
__RPC_FAR
|
const
|
CONST
)?
\
s
*
(?:
\*\
s
*
(?:
__RPC_FAR
|
const
|
CONST
)?
\
s
*
?)
*
)
\
s
*
(
?:
WINE_UNUSED
\
s
+
)?(
\
w
*
)
\
s
*
(?:
\
[
\
]
|\
s
+
OPTIONAL
|\
s
+
WINE_UNUSED
)?
$
/
x
)
(
\
w
*
)
\
s
*
(
\
[
\
])?(?:
\
s
+
OPTIONAL
)?
$
/
x
)
{
$argument_type
=
$1
;
if
(
$2
)
{
$argument_type
.=
" $2"
;
}
if
(
$4
)
{
$argument_type
.=
"$4"
;
}
$argument_name
=
$3
;
}
elsif
(
$argument
=~
/^
((?:
struct
\
s
+|
union
\
s
+|
enum
\
s
+|
register
\
s
+|
(?:
signed
\
s
+|
unsigned
\
s
+
)
...
...
@@ -551,10 +556,10 @@ sub parse_c_file($$) {
}
&
$type_begin
(
$type
);
}
elsif
(
/
typedef
\
s
+
((?:
const
\
s
+|
enum
\
s
+|
long
\
s
+|
signed
\
s
+|
short
\
s
+|
struct
\
s
+|
union
\
s
+|
unsigned
\
s
+
)
*
?)
((?:
const
\
s
+|
CONST
\
s
+|
enum
\
s
+|
long
\
s
+|
signed
\
s
+|
short
\
s
+|
struct
\
s
+|
union
\
s
+|
unsigned
\
s
+
)
*
?)
(
\
w
+
)
(?:
\
s
+
const
)?
((?:
\
s
*
(?:(?:
FAR
|
__RPC_FAR
|
TW_HUGE
)?
\
s
*
)?
\*+\
s
*|\
s
+
)
\
w
+\
s
*
(?:
\
[[
^\
]]
*\
])
*
((?:
\
s
*
(?:(?:
FAR
|
__RPC_FAR
|
TW_HUGE
)?
\
s
*
)?
\*+\
s
*|\
s
+
)
(?:
volatile
\
s
+|
DECLSPEC_ALIGN
\
(
\
d
+\
)
\
s
+
)?
\
w
+\
s
*
(?:
\
[[
^\
]]
*\
])
*
(?:
\
s
*
,
\
s
*
(?:
\
s
*
(?:(?:
FAR
|
__RPC_FAR
|
TW_HUGE
)?
\
s
*
)?
\*+\
s
*|\
s
+
)
\
w
+\
s
*
(?:
\
[[
^\
]]
*\
])?)
*
)
\
s
*
;
/
sx
)
{
...
...
@@ -580,9 +585,9 @@ sub parse_c_file($$) {
&
$type_end
([
@names
]);
}
elsif
(
/
typedef
\
s
+
(?:(?:
const
\
s
+|
enum
\
s
+|
long
\
s
+|
signed
\
s
+|
short
\
s
+|
struct
\
s
+|
union
\
s
+|
unsigned
\
s
+
)
*
?)
(
\
w
+
(?:
\
s
*\*+\
s
*
)?)
\
s
+
(
\
w
+
(?:
\
s
*\*+\
s
*
)?)
\
s
*
(?:(
\
w
+
)
\
s
*
)?
\
((?:(
\
w
+
)
\
s
*
)?
\
s
*
\*\
s
*
(
\
w
+
)
\
s
*\
)
\
s
*
\
((?:(
\
w
+
)
\
s
*
)?
\
s
*
(?:
\*\
s
*
(
\
w
+
)
|
_ATL_CATMAPFUNC
)
\
s
*\
)
\
s
*
(?:
\
(([
^\
)]
*
)
\
)
|\
[([
^\
]]
*
)
\
])
\
s
*
;
/
sx
)
{
$_
=
$'
;
$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