Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
48066301
Commit
48066301
authored
Oct 05, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for the propget/propput function attributes.
parent
c579fa62
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
1 deletion
+12
-1
header.c
tools/widl/header.c
+4
-0
parser.l
tools/widl/parser.l
+2
-0
parser.y
tools/widl/parser.y
+4
-1
widltypes.h
tools/widl/widltypes.h
+2
-0
No files found.
tools/widl/header.c
View file @
48066301
...
...
@@ -90,6 +90,10 @@ static void write_pident(FILE *h, var_t *v)
void
write_name
(
FILE
*
h
,
var_t
*
v
)
{
if
(
is_attr
(
v
->
attrs
,
ATTR_PROPGET
))
fprintf
(
h
,
"get_"
);
else
if
(
is_attr
(
v
->
attrs
,
ATTR_PROPPUT
))
fprintf
(
h
,
"put_"
);
fprintf
(
h
,
"%s"
,
v
->
name
);
}
...
...
tools/widl/parser.l
View file @
48066301
...
...
@@ -262,6 +262,8 @@ static struct keyword {
{"pointer_default", tPOINTERDEFAULT},
/* ... */
{"properties", tPROPERTIES},
{"propget", tPROPGET},
{"propput", tPROPPUT},
/* ... */
{"public", tPUBLIC},
/* ... */
...
...
tools/widl/parser.y
View file @
48066301
...
...
@@ -156,6 +156,7 @@ static type_t std_uhyper = { "MIDL_uhyper" };
%token tOUT
%token tPOINTERDEFAULT
%token tPROPERTIES
%token tPROPGET tPROPPUT
%token tPUBLIC
%token tREADONLY tREF
%token tRETVAL
...
...
@@ -359,6 +360,8 @@ attribute:
| tOLEAUTOMATION { $$ = make_attr(ATTR_OLEAUTOMATION); }
| tOUT { $$ = make_attr(ATTR_OUT); }
| tPOINTERDEFAULT '(' pointer_type ')' { $$ = make_attrv(ATTR_POINTERDEFAULT, $3); }
| tPROPGET { $$ = make_attr(ATTR_PROPGET); }
| tPROPPUT { $$ = make_attr(ATTR_PROPPUT); }
| tPUBLIC { $$ = make_attr(ATTR_PUBLIC); }
| tREADONLY { $$ = make_attr(ATTR_READONLY); }
| tRETVAL { $$ = make_attr(ATTR_RETVAL); }
...
...
@@ -502,7 +505,7 @@ funcdef:
$4->attrs = $1;
$$ = make_func($4, $6);
if (is_attr($4->attrs, ATTR_IN)) {
yyerror("Inapplica
ta
ble attribute");
yyerror("Inapplicable attribute");
}
if (!is_attr($4->attrs, ATTR_OUT)) {
attr_t *a = make_attr(ATTR_OUT);
...
...
tools/widl/widltypes.h
View file @
48066301
...
...
@@ -83,6 +83,8 @@ enum attr_type
ATTR_OUT
,
ATTR_POINTERDEFAULT
,
ATTR_POINTERTYPE
,
ATTR_PROPGET
,
ATTR_PROPPUT
,
ATTR_PUBLIC
,
ATTR_READONLY
,
ATTR_RETVAL
,
...
...
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