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
a7b0a1cd
Commit
a7b0a1cd
authored
Sep 08, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 09, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Generate proper prototypes for function declarations without arguments.
parent
8de9fea5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
header.c
tools/widl/header.c
+6
-1
No files found.
tools/widl/header.c
View file @
a7b0a1cd
...
...
@@ -346,9 +346,14 @@ static void write_type_v(FILE *h, type_t *t, int is_field, int declonly, const c
if
(
name
)
fprintf
(
h
,
"%s%s"
,
needs_space_after
(
t
)
?
" "
:
""
,
name
);
if
(
type_get_type_detect_alias
(
pt
)
==
TYPE_FUNCTION
)
{
const
var_list_t
*
args
=
type_function_get_args
(
pt
);
if
(
ptr_level
)
fputc
(
')'
,
h
);
fputc
(
'('
,
h
);
write_args
(
h
,
type_function_get_args
(
pt
),
NULL
,
0
,
FALSE
);
if
(
args
)
write_args
(
h
,
args
,
NULL
,
0
,
FALSE
);
else
fprintf
(
h
,
"void"
);
fputc
(
')'
,
h
);
}
else
write_type_right
(
h
,
t
,
is_field
);
...
...
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