Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
a3d14f88
Commit
a3d14f88
authored
Aug 18, 1999
by
Ulrich Weigand
Committed by
Alexandre Julliard
Aug 18, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use typedef to work around egcs problem.
parent
4405f3c3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
build.c
tools/build.c
+10
-7
No files found.
tools/build.c
View file @
a3d14f88
...
@@ -1636,12 +1636,8 @@ static void BuildCallFrom16Func( FILE *outfile, char *profile, char *prefix, int
...
@@ -1636,12 +1636,8 @@ static void BuildCallFrom16Func( FILE *outfile, char *profile, char *prefix, int
ret_type
=
reg_func
?
"void"
:
short_ret
?
"WORD"
:
"LONG"
;
ret_type
=
reg_func
?
"void"
:
short_ret
?
"WORD"
:
"LONG"
;
fprintf
(
outfile
,
"%s%s WINAPI %s_CallFrom16_%s( FARPROC proc, LPBYTE args%s )
\n
{
\n
"
,
fprintf
(
outfile
,
"typedef %s WINAPI (*proc_%s_t)( "
,
local
?
"static "
:
""
,
ret_type
,
prefix
,
profile
,
ret_type
,
profile
);
reg_func
?
", struct _CONTEXT86 *context"
:
""
);
fprintf
(
outfile
,
" %s((%s WINAPI (*)( "
,
reg_func
?
""
:
"return "
,
ret_type
);
args
=
profile
+
7
;
args
=
profile
+
7
;
for
(
i
=
0
;
args
[
i
];
i
++
)
for
(
i
=
0
;
args
[
i
];
i
++
)
{
{
...
@@ -1658,7 +1654,14 @@ static void BuildCallFrom16Func( FILE *outfile, char *profile, char *prefix, int
...
@@ -1658,7 +1654,14 @@ static void BuildCallFrom16Func( FILE *outfile, char *profile, char *prefix, int
fprintf
(
outfile
,
"%sstruct _CONTEXT86 *"
,
i
?
", "
:
""
);
fprintf
(
outfile
,
"%sstruct _CONTEXT86 *"
,
i
?
", "
:
""
);
else
if
(
!
i
)
else
if
(
!
i
)
fprintf
(
outfile
,
"void"
);
fprintf
(
outfile
,
"void"
);
fprintf
(
outfile
,
" )) proc) (
\n
"
);
fprintf
(
outfile
,
" );
\n
"
);
fprintf
(
outfile
,
"%s%s WINAPI %s_CallFrom16_%s( FARPROC proc, LPBYTE args%s )
\n
{
\n
"
,
local
?
"static "
:
""
,
ret_type
,
prefix
,
profile
,
reg_func
?
", struct _CONTEXT86 *context"
:
""
);
fprintf
(
outfile
,
" %s((proc_%s_t) proc) (
\n
"
,
reg_func
?
""
:
"return "
,
profile
);
args
=
profile
+
7
;
args
=
profile
+
7
;
pos
=
!
usecdecl
?
argsize
:
0
;
pos
=
!
usecdecl
?
argsize
:
0
;
for
(
i
=
0
;
args
[
i
];
i
++
)
for
(
i
=
0
;
args
[
i
];
i
++
)
...
...
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