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
e36981e1
Commit
e36981e1
authored
Jun 14, 2007
by
Dan Hipschman
Committed by
Alexandre Julliard
Jun 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Factor the output functions.
parent
e4679b0c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
33 deletions
+21
-33
client.c
tools/widl/client.c
+2
-8
proxy.c
tools/widl/proxy.c
+2
-8
server.c
tools/widl/server.c
+2
-8
typegen.c
tools/widl/typegen.c
+13
-9
typegen.h
tools/widl/typegen.h
+2
-0
No files found.
tools/widl/client.c
View file @
e36981e1
...
...
@@ -44,18 +44,12 @@
static
FILE
*
client
;
static
int
indent
=
0
;
static
int
print_client
(
const
char
*
format
,
...
)
static
void
print_client
(
const
char
*
format
,
...
)
{
va_list
va
;
int
i
,
r
;
va_start
(
va
,
format
);
if
(
format
[
0
]
!=
'\n'
)
for
(
i
=
0
;
i
<
indent
;
i
++
)
fprintf
(
client
,
" "
);
r
=
vfprintf
(
client
,
format
,
va
);
print
(
client
,
indent
,
format
,
va
);
va_end
(
va
);
return
r
;
}
...
...
tools/widl/proxy.c
View file @
e36981e1
...
...
@@ -51,18 +51,12 @@ static int indent = 0;
/* FIXME: support generation of stubless proxies */
static
int
print_proxy
(
const
char
*
format
,
...
)
static
void
print_proxy
(
const
char
*
format
,
...
)
{
va_list
va
;
int
i
,
r
;
va_start
(
va
,
format
);
if
(
format
[
0
]
!=
'\n'
)
for
(
i
=
0
;
i
<
indent
;
i
++
)
fprintf
(
proxy
,
" "
);
r
=
vfprintf
(
proxy
,
format
,
va
);
print
(
proxy
,
indent
,
format
,
va
);
va_end
(
va
);
return
r
;
}
static
void
write_stubdescproto
(
void
)
...
...
tools/widl/server.c
View file @
e36981e1
...
...
@@ -46,18 +46,12 @@ static FILE* server;
static
int
indent
=
0
;
static
int
print_server
(
const
char
*
format
,
...)
static
void
print_server
(
const
char
*
format
,
...)
{
va_list
va
;
int
i
,
r
;
va_start
(
va
,
format
);
if
(
format
[
0
]
!=
'\n'
)
for
(
i
=
0
;
i
<
indent
;
i
++
)
fprintf
(
server
,
" "
);
r
=
vfprintf
(
server
,
format
,
va
);
print
(
server
,
indent
,
format
,
va
);
va_end
(
va
);
return
r
;
}
...
...
tools/widl/typegen.c
View file @
e36981e1
...
...
@@ -254,19 +254,23 @@ static int compare_expr(const expr_t *a, const expr_t *b)
} \
while (0)
static
int
print_file
(
FILE
*
file
,
int
indent
,
const
char
*
format
,
...)
static
void
print_file
(
FILE
*
file
,
int
indent
,
const
char
*
format
,
...)
{
va_list
va
;
int
i
,
r
;
if
(
!
file
)
return
0
;
va_start
(
va
,
format
);
for
(
i
=
0
;
i
<
indent
;
i
++
)
fprintf
(
file
,
" "
);
r
=
vfprintf
(
file
,
format
,
va
);
print
(
file
,
indent
,
format
,
va
);
va_end
(
va
);
return
r
;
}
void
print
(
FILE
*
file
,
int
indent
,
const
char
*
format
,
va_list
va
)
{
if
(
file
)
{
if
(
format
[
0
]
!=
'\n'
)
while
(
0
<
indent
--
)
fprintf
(
file
,
" "
);
vfprintf
(
file
,
format
,
va
);
}
}
static
void
write_formatdesc
(
FILE
*
f
,
int
indent
,
const
char
*
str
)
...
...
tools/widl/typegen.h
View file @
e36981e1
...
...
@@ -19,6 +19,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdarg.h>
enum
pass
{
...
...
@@ -53,3 +54,4 @@ void write_endpoints( FILE *f, const char *prefix, const str_list_t *list );
size_t
type_memsize
(
const
type_t
*
t
,
unsigned
int
*
align
);
int
decl_indirect
(
const
type_t
*
t
);
void
write_parameters_init
(
const
func_t
*
func
);
void
print
(
FILE
*
file
,
int
indent
,
const
char
*
format
,
va_list
ap
);
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