winapi: Fix the parse_c_declaration() prototype and remove unused variables.

This commit is contained in:
Francois Gouget 2009-04-20 15:08:03 +02:00 committed by Alexandre Julliard
parent f8ae6d6407
commit 0dd5c442c1
1 changed files with 5 additions and 16 deletions

View File

@ -563,16 +563,13 @@ sub parse_c_block($$$$$$$) {
######################################################################## ########################################################################
# parse_c_declaration # parse_c_declaration
sub parse_c_declaration($$$$$$$$$$$$) { sub parse_c_declaration($$$$)
my $self = shift; {
my ($self, $refcurrent, $refline, $refcolumn) = @_;
my $found_declaration = \${$self->{FOUND_DECLARATION}}; my $found_declaration = \${$self->{FOUND_DECLARATION}};
my $found_function = \${$self->{FOUND_FUNCTION}}; my $found_function = \${$self->{FOUND_FUNCTION}};
my $refcurrent = shift;
my $refline = shift;
my $refcolumn = shift;
local $_ = $$refcurrent; local $_ = $$refcurrent;
my $line = $$refline; my $line = $$refline;
my $column = $$refcolumn; my $column = $$refcolumn;
@ -591,18 +588,10 @@ sub parse_c_declaration($$$$$$$$$$$$) {
} }
# Function # Function
my $function = shift; my $function;
my $linkage = shift;
my $calling_convention = shift;
my $return_type = shift;
my $name = shift;
my @arguments = shift;
my @argument_lines = shift;
my @argument_columns = shift;
# Variable # Variable
my $type; my ($linkage, $type, $name);
if(s/^WINE_(?:DEFAULT|DECLARE)_DEBUG_CHANNEL\s*\(\s*(\w+)\s*\)\s*//s) { # FIXME: Wine specific kludge if(s/^WINE_(?:DEFAULT|DECLARE)_DEBUG_CHANNEL\s*\(\s*(\w+)\s*\)\s*//s) { # FIXME: Wine specific kludge
$self->_update_c_position($&, \$line, \$column); $self->_update_c_position($&, \$line, \$column);