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
7e79e9d4
Commit
7e79e9d4
authored
Aug 29, 2006
by
Dan Hipschman
Committed by
Alexandre Julliard
Sep 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Print pointers more aesthetically in generated header.
parent
929a7598
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
header.c
tools/widl/header.c
+9
-3
No files found.
tools/widl/header.c
View file @
7e79e9d4
...
...
@@ -199,6 +199,11 @@ static void write_enums(FILE *h, var_t *v)
fprintf
(
h
,
"
\n
"
);
}
int
needs_space_after
(
type_t
*
t
)
{
return
t
->
kind
==
TKIND_ALIAS
||
!
is_ptr
(
t
);
}
void
write_type
(
FILE
*
h
,
type_t
*
t
,
const
var_t
*
v
,
const
char
*
n
)
{
int
c
;
...
...
@@ -259,7 +264,7 @@ void write_type(FILE *h, type_t *t, const var_t *v, const char *n)
case
RPC_FC_FP
:
case
RPC_FC_OP
:
if
(
t
->
ref
)
write_type
(
h
,
t
->
ref
,
NULL
,
t
->
name
);
fprintf
(
h
,
"
*
"
);
fprintf
(
h
,
"
%s*"
,
needs_space_after
(
t
->
ref
)
?
" "
:
"
"
);
break
;
default:
fprintf
(
h
,
"%s"
,
t
->
name
);
...
...
@@ -338,7 +343,7 @@ void write_typedef(type_t *type)
{
fprintf
(
header
,
"typedef "
);
write_type
(
header
,
type
->
orig
,
NULL
,
NULL
);
fprintf
(
header
,
"
%s;
\n
"
,
type
->
name
);
fprintf
(
header
,
"
%s%s;
\n
"
,
needs_space_after
(
type
->
orig
)
?
" "
:
"
"
,
type
->
name
);
}
void
write_expr
(
FILE
*
h
,
const
expr_t
*
e
,
int
brackets
)
...
...
@@ -585,7 +590,8 @@ void write_args(FILE *h, var_t *arg, const char *name, int method, int do_indent
}
else
{
fprintf
(
h
,
" "
);
if
(
needs_space_after
(
arg
->
type
))
fprintf
(
h
,
" "
);
write_name
(
h
,
arg
);
}
write_array
(
h
,
arg
->
array
,
0
);
...
...
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