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
75e02e93
Commit
75e02e93
authored
Sep 28, 2004
by
Filip Navara
Committed by
Alexandre Julliard
Sep 28, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Force default [in] attribute on all parameters where explicit [in]
or [out] attributes aren't specified. - Force default [out] attribute on return values.
parent
ae5a4368
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
parser.y
tools/widl/parser.y
+19
-0
No files found.
tools/widl/parser.y
View file @
75e02e93
...
@@ -280,19 +280,31 @@ args: arg
...
@@ -280,19 +280,31 @@ args: arg
arg: attributes type pident array { $$ = $3;
arg: attributes type pident array { $$ = $3;
set_type($$, $2, $4);
set_type($$, $2, $4);
$$->attrs = $1;
$$->attrs = $1;
if (!is_attr($$->attrs, ATTR_OUT) &&
!is_attr($$->attrs, ATTR_IN)) {
attr_t *a = make_attr(ATTR_IN);
LINK(a, $$->attrs); $$->attrs = a;
}
}
}
| type pident array { $$ = $2;
| type pident array { $$ = $2;
set_type($$, $1, $3);
set_type($$, $1, $3);
$$->attrs = make_attr(ATTR_IN);
}
}
| attributes type pident '(' m_args ')' { $$ = $3;
| attributes type pident '(' m_args ')' { $$ = $3;
$$->ptr_level--;
$$->ptr_level--;
set_type($$, $2, NULL);
set_type($$, $2, NULL);
$$->attrs = $1;
$$->attrs = $1;
$$->args = $5;
$$->args = $5;
if (!is_attr($$->attrs, ATTR_OUT) &&
!is_attr($$->attrs, ATTR_IN)) {
attr_t *a = make_attr(ATTR_IN);
LINK(a, $$->attrs); $$->attrs = a;
}
}
}
| type pident '(' m_args ')' { $$ = $2;
| type pident '(' m_args ')' { $$ = $2;
$$->ptr_level--;
$$->ptr_level--;
set_type($$, $1, NULL);
set_type($$, $1, NULL);
$$->attrs = make_attr(ATTR_IN);
$$->args = $4;
$$->args = $4;
}
}
;
;
...
@@ -489,6 +501,13 @@ funcdef:
...
@@ -489,6 +501,13 @@ funcdef:
'(' m_args ')' { set_type($4, $2, NULL);
'(' m_args ')' { set_type($4, $2, NULL);
$4->attrs = $1;
$4->attrs = $1;
$$ = make_func($4, $6);
$$ = make_func($4, $6);
if (is_attr($4->attrs, ATTR_IN)) {
yyerror("Inapplicatable attribute");
}
if (!is_attr($4->attrs, ATTR_OUT)) {
attr_t *a = make_attr(ATTR_OUT);
LINK(a, $4->attrs); $4->attrs = a;
}
}
}
;
;
...
...
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