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
f4356a64
Commit
f4356a64
authored
Dec 12, 2005
by
Robert Shearman
Committed by
Alexandre Julliard
Dec 12, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Don't treat FC_SMALL as FC_SHORT.
FC_SMALL is its own type and is the same size as FC_CHAR, not FC_SHORT.
parent
6066106b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
header.c
tools/widl/header.c
+5
-0
parser.y
tools/widl/parser.y
+1
-1
typegen.c
tools/widl/typegen.c
+7
-0
No files found.
tools/widl/header.c
View file @
f4356a64
...
@@ -221,6 +221,11 @@ void write_type(FILE *h, type_t *t, var_t *v, const char *n)
...
@@ -221,6 +221,11 @@ void write_type(FILE *h, type_t *t, var_t *v, const char *n)
case
RPC_FC_WCHAR
:
case
RPC_FC_WCHAR
:
fprintf
(
h
,
"WCHAR"
);
fprintf
(
h
,
"WCHAR"
);
break
;
break
;
case
RPC_FC_USMALL
:
case
RPC_FC_SMALL
:
if
(
t
->
ref
)
fprintf
(
h
,
t
->
ref
->
name
);
else
fprintf
(
h
,
"small"
);
break
;
case
RPC_FC_USHORT
:
case
RPC_FC_USHORT
:
case
RPC_FC_SHORT
:
case
RPC_FC_SHORT
:
if
(
t
->
ref
)
fprintf
(
h
,
t
->
ref
->
name
);
if
(
t
->
ref
)
fprintf
(
h
,
t
->
ref
->
name
);
...
...
tools/widl/parser.y
View file @
f4356a64
...
@@ -585,7 +585,7 @@ m_int:
...
@@ -585,7 +585,7 @@ m_int:
int_std: tINT { $$ = make_type(RPC_FC_LONG, &std_int); } /* win32 only */
int_std: tINT { $$ = make_type(RPC_FC_LONG, &std_int); } /* win32 only */
| tSHORT m_int { $$ = make_type(RPC_FC_SHORT, NULL); }
| tSHORT m_int { $$ = make_type(RPC_FC_SHORT, NULL); }
| tSMALL { $$ = make_type(RPC_FC_S
HORT
, NULL); }
| tSMALL { $$ = make_type(RPC_FC_S
MALL
, NULL); }
| tLONG m_int { $$ = make_type(RPC_FC_LONG, NULL); }
| tLONG m_int { $$ = make_type(RPC_FC_LONG, NULL); }
| tHYPER m_int { $$ = make_type(RPC_FC_HYPER, NULL); }
| tHYPER m_int { $$ = make_type(RPC_FC_HYPER, NULL); }
| tINT64 { $$ = make_type(RPC_FC_HYPER, &std_int64); }
| tINT64 { $$ = make_type(RPC_FC_HYPER, &std_int64); }
...
...
tools/widl/typegen.c
View file @
f4356a64
...
@@ -71,6 +71,7 @@ static void write_procformatstring_var(FILE *file, int indent, var_t *var)
...
@@ -71,6 +71,7 @@ static void write_procformatstring_var(FILE *file, int indent, var_t *var)
CASE_BASETYPE
(
FC_LONG
);
CASE_BASETYPE
(
FC_LONG
);
CASE_BASETYPE
(
FC_HYPER
);
CASE_BASETYPE
(
FC_HYPER
);
CASE_BASETYPE
(
FC_IGNORE
);
CASE_BASETYPE
(
FC_IGNORE
);
CASE_BASETYPE
(
FC_USMALL
);
CASE_BASETYPE
(
FC_SMALL
);
CASE_BASETYPE
(
FC_SMALL
);
CASE_BASETYPE
(
FC_FLOAT
);
CASE_BASETYPE
(
FC_FLOAT
);
CASE_BASETYPE
(
FC_DOUBLE
);
CASE_BASETYPE
(
FC_DOUBLE
);
...
@@ -162,6 +163,8 @@ unsigned int get_required_buffer_size(type_t *type)
...
@@ -162,6 +163,8 @@ unsigned int get_required_buffer_size(type_t *type)
case
RPC_FC_WCHAR
:
case
RPC_FC_WCHAR
:
case
RPC_FC_USHORT
:
case
RPC_FC_USHORT
:
case
RPC_FC_SHORT
:
case
RPC_FC_SHORT
:
case
RPC_FC_USMALL
:
case
RPC_FC_SMALL
:
case
RPC_FC_ULONG
:
case
RPC_FC_ULONG
:
case
RPC_FC_LONG
:
case
RPC_FC_LONG
:
case
RPC_FC_FLOAT
:
case
RPC_FC_FLOAT
:
...
@@ -198,6 +201,8 @@ void marshall_arguments(FILE *file, int indent, func_t *func)
...
@@ -198,6 +201,8 @@ void marshall_arguments(FILE *file, int indent, func_t *func)
{
{
case
RPC_FC_BYTE
:
case
RPC_FC_BYTE
:
case
RPC_FC_CHAR
:
case
RPC_FC_CHAR
:
case
RPC_FC_SMALL
:
case
RPC_FC_USMALL
:
size
=
1
;
size
=
1
;
alignment
=
0
;
alignment
=
0
;
break
;
break
;
...
@@ -266,6 +271,8 @@ void unmarshall_arguments(FILE *file, int indent, func_t *func)
...
@@ -266,6 +271,8 @@ void unmarshall_arguments(FILE *file, int indent, func_t *func)
{
{
case
RPC_FC_BYTE
:
case
RPC_FC_BYTE
:
case
RPC_FC_CHAR
:
case
RPC_FC_CHAR
:
case
RPC_FC_SMALL
:
case
RPC_FC_USMALL
:
size
=
1
;
size
=
1
;
alignment
=
0
;
alignment
=
0
;
break
;
break
;
...
...
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