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
dcfd048e
Commit
dcfd048e
authored
Jun 15, 2009
by
Francois Gouget
Committed by
Alexandre Julliard
Jun 15, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winapi/c_parser: Remove some dead code.
parent
489bd52a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
15 deletions
+1
-15
c_parser.pm
tools/winapi/c_parser.pm
+1
-15
No files found.
tools/winapi/c_parser.pm
View file @
dcfd048e
...
@@ -242,11 +242,6 @@ sub _parse_c_warning($$$$$$) {
...
@@ -242,11 +242,6 @@ sub _parse_c_warning($$$$$$) {
$current
.=
$lines
[
1
]
.
"\n"
if
$lines
[
1
];
$current
.=
$lines
[
1
]
.
"\n"
if
$lines
[
1
];
}
}
if
(
0
)
{
(
my
$package
,
my
$filename
,
my
$line
)
=
caller
(
0
);
$output
->
write
(
"*** caller ***: $filename:$line\n"
);
}
if
(
$current
)
{
if
(
$current
)
{
$output
->
write
(
"$$file:$line."
.
(
$column
+
1
)
.
": $context: $message: \\\n$current"
);
$output
->
write
(
"$$file:$line."
.
(
$column
+
1
)
.
": $context: $message: \\\n$current"
);
}
else
{
}
else
{
...
@@ -854,8 +849,6 @@ sub parse_c_file($$$$) {
...
@@ -854,8 +849,6 @@ sub parse_c_file($$$$) {
if
(
$line
!=
$previous_line
)
{
if
(
$line
!=
$previous_line
)
{
&
$$found_line
(
$line
);
&
$$found_line
(
$line
);
}
elsif
(
0
&&
$column
==
$previous_column
)
{
$self
->
_parse_c_error
(
$_
,
$line
,
$column
,
"file"
,
"no progress"
);
}
else
{
}
else
{
# &$$found_line("$line.$column");
# &$$found_line("$line.$column");
}
}
...
@@ -1098,14 +1091,7 @@ sub parse_c_file($$$$) {
...
@@ -1098,14 +1091,7 @@ sub parse_c_file($$$$) {
}
}
}
elsif
(
s/^;//
)
{
}
elsif
(
s/^;//
)
{
$declaration
.=
$&
;
$declaration
.=
$&
;
if
(
0
&&
$blevel
==
1
&&
if
(
$plevel
==
1
&&
$blevel
==
1
)
{
$declaration
!~
/^typedef/
&&
$declaration
!~
/^(?:const\s+|extern\s+|static\s+|volatile\s+)?(?:interface|struct|union)(?:\s+\w+)?\s*\{/s
&&
$declaration
=~
/^(?:\w+(?:\s*\*)*\s+)*(\w+)\s*\(\s*(?:(?:\w+\s*,\s*)*(\w+))?\s*\)\s*(.*?);$/s
&&
$1
ne
"ICOM_VTABLE"
&&
defined
(
$2
)
&&
$2
ne
"void"
&&
$3
)
# K&R
{
$self
->
_parse_c_warning
(
""
,
$line
,
$column
,
"file"
,
"function $1: warning: function has K&R format"
);
}
elsif
(
$plevel
==
1
&&
$blevel
==
1
)
{
$declaration
=~
s/\s*;$//
;
$declaration
=~
s/\s*;$//
;
if
(
$declaration
&&
!
$self
->
parse_c_declaration
(
\
$declaration
,
\
$declaration_line
,
\
$declaration_column
))
{
if
(
$declaration
&&
!
$self
->
parse_c_declaration
(
\
$declaration
,
\
$declaration_line
,
\
$declaration_column
))
{
return
0
;
return
0
;
...
...
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