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
c15f83a2
Commit
c15f83a2
authored
Nov 08, 2019
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Use strmake in get_name.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d5c745e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
header.c
tools/widl/header.c
+9
-11
No files found.
tools/widl/header.c
View file @
c15f83a2
...
...
@@ -180,18 +180,16 @@ static void write_namespace_end(FILE *header, struct namespace *namespace)
const
char
*
get_name
(
const
var_t
*
v
)
{
static
char
buffer
[
256
]
;
static
char
*
buffer
;
free
(
buffer
);
if
(
is_attr
(
v
->
attrs
,
ATTR_PROPGET
))
strcpy
(
buffer
,
"get_"
);
else
if
(
is_attr
(
v
->
attrs
,
ATTR_PROPPUT
))
strcpy
(
buffer
,
"put_"
);
else
if
(
is_attr
(
v
->
attrs
,
ATTR_PROPPUTREF
))
strcpy
(
buffer
,
"putref_"
);
else
buffer
[
0
]
=
0
;
strcat
(
buffer
,
v
->
name
);
return
buffer
;
return
buffer
=
strmake
(
"get_%s"
,
v
->
name
);
if
(
is_attr
(
v
->
attrs
,
ATTR_PROPPUT
))
return
buffer
=
strmake
(
"put_%s"
,
v
->
name
);
if
(
is_attr
(
v
->
attrs
,
ATTR_PROPPUTREF
))
return
buffer
=
strmake
(
"putref_%s"
,
v
->
name
);
buffer
=
NULL
;
return
v
->
name
;
}
static
void
write_fields
(
FILE
*
h
,
var_list_t
*
fields
)
...
...
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