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
1687a5d1
Commit
1687a5d1
authored
Aug 29, 2006
by
Dan Hipschman
Committed by
Alexandre Julliard
Sep 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Generate an error for "int f(void a)".
parent
7e79e9d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
parser.y
tools/widl/parser.y
+11
-2
No files found.
tools/widl/parser.y
View file @
1687a5d1
...
@@ -106,6 +106,7 @@ static void write_iid(type_t *iface);
...
@@ -106,6 +106,7 @@ static void write_iid(type_t *iface);
static int compute_method_indexes(type_t *iface);
static int compute_method_indexes(type_t *iface);
static char *gen_name(void);
static char *gen_name(void);
static void process_typedefs(var_t *names);
static void process_typedefs(var_t *names);
static void check_arg(var_t *arg);
#define tsENUM 1
#define tsENUM 1
#define tsSTRUCT 2
#define tsSTRUCT 2
...
@@ -319,8 +320,8 @@ m_args: { $$ = NULL; }
...
@@ -319,8 +320,8 @@ m_args: { $$ = NULL; }
no_args: tVOID { $$ = NULL; }
no_args: tVOID { $$ = NULL; }
;
;
args: arg
args: arg
{ check_arg($1); $$ = $1; }
| args ',' arg { LINK($3, $1); $$ = $3; }
| args ',' arg {
check_arg($3);
LINK($3, $1); $$ = $3; }
| no_args
| no_args
;
;
...
@@ -1678,3 +1679,11 @@ static void process_typedefs(var_t *names)
...
@@ -1678,3 +1679,11 @@ static void process_typedefs(var_t *names)
names = next;
names = next;
}
}
}
}
static void check_arg(var_t *arg)
{
type_t *t = arg->type;
if (t->type == 0 && ! is_var_ptr(arg))
yyerror("argument '%s' has void type", arg->name);
}
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