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
85e87ae8
Commit
85e87ae8
authored
Dec 10, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Dec 10, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: iid_is should take expressions, not just identifiers.
parent
72d9569c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
17 deletions
+23
-17
parser.y
tools/widl/parser.y
+1
-1
proxy.c
tools/widl/proxy.c
+8
-4
typegen.c
tools/widl/typegen.c
+14
-12
No files found.
tools/widl/parser.y
View file @
85e87ae8
...
@@ -470,7 +470,7 @@ attribute: { $$ = NULL; }
...
@@ -470,7 +470,7 @@ attribute: { $$ = NULL; }
| tHIDDEN { $$ = make_attr(ATTR_HIDDEN); }
| tHIDDEN { $$ = make_attr(ATTR_HIDDEN); }
| tID '(' expr_const ')' { $$ = make_attrp(ATTR_ID, $3); }
| tID '(' expr_const ')' { $$ = make_attrp(ATTR_ID, $3); }
| tIDEMPOTENT { $$ = make_attr(ATTR_IDEMPOTENT); }
| tIDEMPOTENT { $$ = make_attr(ATTR_IDEMPOTENT); }
| tIIDIS '('
ident
')' { $$ = make_attrp(ATTR_IIDIS, $3); }
| tIIDIS '('
expr
')' { $$ = make_attrp(ATTR_IIDIS, $3); }
| tIMMEDIATEBIND { $$ = make_attr(ATTR_IMMEDIATEBIND); }
| tIMMEDIATEBIND { $$ = make_attr(ATTR_IMMEDIATEBIND); }
| tIMPLICITHANDLE '(' tHANDLET aIDENTIFIER ')' { $$ = make_attrp(ATTR_IMPLICIT_HANDLE, $4); }
| tIMPLICITHANDLE '(' tHANDLET aIDENTIFIER ')' { $$ = make_attrp(ATTR_IMPLICIT_HANDLE, $4); }
| tIN { $$ = make_attr(ATTR_IN); }
| tIN { $$ = make_attr(ATTR_IN); }
...
...
tools/widl/proxy.c
View file @
85e87ae8
...
@@ -188,7 +188,7 @@ static void proxy_check_pointers( const var_list_t *args )
...
@@ -188,7 +188,7 @@ static void proxy_check_pointers( const var_list_t *args )
static
void
free_variable
(
const
var_t
*
arg
)
static
void
free_variable
(
const
var_t
*
arg
)
{
{
unsigned
int
type_offset
=
arg
->
type
->
typestring_offset
;
unsigned
int
type_offset
=
arg
->
type
->
typestring_offset
;
var_t
*
constraint
;
expr_t
*
iid
;
type_t
*
type
=
arg
->
type
;
type_t
*
type
=
arg
->
type
;
expr_t
*
size
=
get_size_is_expr
(
type
,
arg
->
name
);
expr_t
*
size
=
get_size_is_expr
(
type
,
arg
->
name
);
...
@@ -219,9 +219,13 @@ static void free_variable( const var_t *arg )
...
@@ -219,9 +219,13 @@ static void free_variable( const var_t *arg )
case
RPC_FC_FP
:
case
RPC_FC_FP
:
case
RPC_FC_IP
:
case
RPC_FC_IP
:
constraint
=
get_attrp
(
arg
->
attrs
,
ATTR_IIDIS
);
iid
=
get_attrp
(
arg
->
attrs
,
ATTR_IIDIS
);
if
(
constraint
)
if
(
iid
)
print_proxy
(
"_StubMsg.MaxCount = (unsigned long) ( %s );
\n
"
,
constraint
->
name
);
{
print_proxy
(
"_StubMsg.MaxCount = (unsigned long) "
);
write_expr
(
proxy
,
iid
,
1
);
print_proxy
(
";
\n\n
"
);
}
print_proxy
(
"NdrClearOutParameters( &_StubMsg, "
);
print_proxy
(
"NdrClearOutParameters( &_StubMsg, "
);
fprintf
(
proxy
,
"&__MIDL_TypeFormatString.Format[%u], "
,
type_offset
);
fprintf
(
proxy
,
"&__MIDL_TypeFormatString.Format[%u], "
,
type_offset
);
fprintf
(
proxy
,
"(void*)%s );
\n
"
,
arg
->
name
);
fprintf
(
proxy
,
"(void*)%s );
\n
"
,
arg
->
name
);
...
...
tools/widl/typegen.c
View file @
85e87ae8
...
@@ -1972,20 +1972,14 @@ static size_t write_ip_tfs(FILE *file, const attr_list_t *attrs, type_t *type,
...
@@ -1972,20 +1972,14 @@ static size_t write_ip_tfs(FILE *file, const attr_list_t *attrs, type_t *type,
{
{
size_t
i
;
size_t
i
;
size_t
start_offset
=
*
typeformat_offset
;
size_t
start_offset
=
*
typeformat_offset
;
const
va
r_t
*
iid
=
get_attrp
(
attrs
,
ATTR_IIDIS
);
exp
r_t
*
iid
=
get_attrp
(
attrs
,
ATTR_IIDIS
);
if
(
iid
)
if
(
iid
)
{
{
expr_t
expr
;
expr
.
type
=
EXPR_IDENTIFIER
;
expr
.
ref
=
NULL
;
expr
.
u
.
sval
=
iid
->
name
;
expr
.
is_const
=
FALSE
;
print_file
(
file
,
2
,
"0x2f, /* FC_IP */
\n
"
);
print_file
(
file
,
2
,
"0x2f, /* FC_IP */
\n
"
);
print_file
(
file
,
2
,
"0x5c, /* FC_PAD */
\n
"
);
print_file
(
file
,
2
,
"0x5c, /* FC_PAD */
\n
"
);
*
typeformat_offset
*
typeformat_offset
+=
write_conf_or_var_desc
(
file
,
NULL
,
0
,
type
,
&
expr
)
+
2
;
+=
write_conf_or_var_desc
(
file
,
NULL
,
0
,
type
,
iid
)
+
2
;
}
}
else
else
{
{
...
@@ -2839,9 +2833,13 @@ void write_remoting_arguments(FILE *file, int indent, const func_t *func,
...
@@ -2839,9 +2833,13 @@ void write_remoting_arguments(FILE *file, int indent, const func_t *func,
}
}
else
else
{
{
const
va
r_t
*
iid
;
exp
r_t
*
iid
;
if
((
iid
=
get_attrp
(
var
->
attrs
,
ATTR_IIDIS
)))
if
((
iid
=
get_attrp
(
var
->
attrs
,
ATTR_IIDIS
)))
print_file
(
file
,
indent
,
"_StubMsg.MaxCount = (unsigned long)%s;
\n
"
,
iid
->
name
);
{
print_file
(
file
,
indent
,
"_StubMsg.MaxCount = (unsigned long) "
);
write_expr
(
file
,
iid
,
1
);
fprintf
(
file
,
";
\n\n
"
);
}
print_phase_function
(
file
,
indent
,
"Pointer"
,
phase
,
var
,
start_offset
);
print_phase_function
(
file
,
indent
,
"Pointer"
,
phase
,
var
,
start_offset
);
}
}
break
;
break
;
...
@@ -2862,11 +2860,15 @@ void write_remoting_arguments(FILE *file, int indent, const func_t *func,
...
@@ -2862,11 +2860,15 @@ void write_remoting_arguments(FILE *file, int indent, const func_t *func,
}
}
else
else
{
{
const
va
r_t
*
iid
;
exp
r_t
*
iid
;
expr_t
*
sx
=
get_size_is_expr
(
type
,
var
->
name
);
expr_t
*
sx
=
get_size_is_expr
(
type
,
var
->
name
);
if
((
iid
=
get_attrp
(
var
->
attrs
,
ATTR_IIDIS
)))
if
((
iid
=
get_attrp
(
var
->
attrs
,
ATTR_IIDIS
)))
print_file
(
file
,
indent
,
"_StubMsg.MaxCount = (unsigned long)%s;
\n
"
,
iid
->
name
);
{
print_file
(
file
,
indent
,
"_StubMsg.MaxCount = (unsigned long) "
);
write_expr
(
file
,
iid
,
1
);
fprintf
(
file
,
";
\n\n
"
);
}
else
if
(
sx
)
else
if
(
sx
)
{
{
print_file
(
file
,
indent
,
"_StubMsg.MaxCount = (unsigned long) "
);
print_file
(
file
,
indent
,
"_StubMsg.MaxCount = (unsigned long) "
);
...
...
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