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
1f18f61b
Commit
1f18f61b
authored
May 16, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed missing call to make_c_identifier.
parent
53268a54
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
spec16.c
tools/winebuild/spec16.c
+8
-8
No files found.
tools/winebuild/spec16.c
View file @
1f18f61b
...
...
@@ -326,13 +326,13 @@ static int BuildModule16( FILE *outfile, int max_code_offset,
* by the interrupt is removed by the 16-bit call stub.)
*
*/
static
void
BuildCallFrom16Func
(
FILE
*
outfile
,
c
har
*
profile
,
char
*
prefix
,
int
local
)
static
void
BuildCallFrom16Func
(
FILE
*
outfile
,
c
onst
char
*
profile
,
const
char
*
prefix
)
{
int
i
,
pos
,
argsize
=
0
;
int
short_ret
=
0
;
int
reg_func
=
0
;
int
usecdecl
=
0
;
char
*
args
=
profile
+
7
;
c
onst
c
har
*
args
=
profile
+
7
;
char
*
ret_type
;
/* Parse function type */
...
...
@@ -389,8 +389,8 @@ static void BuildCallFrom16Func( FILE *outfile, char *profile, char *prefix, int
fprintf
(
outfile
,
"void"
);
fprintf
(
outfile
,
" );
\n
"
);
fprintf
(
outfile
,
"
%s%s __stdcall
%s_CallFrom16_%s( proc_%s_t proc, unsigned char *args%s )
\n
"
,
local
?
"static "
:
""
,
ret_type
,
prefix
,
profile
,
profile
,
fprintf
(
outfile
,
"
static %s __stdcall __wine_
%s_CallFrom16_%s( proc_%s_t proc, unsigned char *args%s )
\n
"
,
ret_type
,
make_c_identifier
(
prefix
)
,
profile
,
profile
,
reg_func
?
", void *context"
:
""
);
fprintf
(
outfile
,
"{
\n
%sproc(
\n
"
,
reg_func
?
""
:
"return "
);
...
...
@@ -457,9 +457,9 @@ static void BuildCallFrom16Func( FILE *outfile, char *profile, char *prefix, int
* routines by yourself.
*
*/
static
void
BuildCallTo16Func
(
FILE
*
outfile
,
c
har
*
profile
,
char
*
prefix
)
static
void
BuildCallTo16Func
(
FILE
*
outfile
,
c
onst
char
*
profile
,
const
char
*
prefix
)
{
char
*
args
=
profile
+
5
;
c
onst
c
har
*
args
=
profile
+
5
;
int
i
,
argsize
=
0
,
short_ret
=
0
;
if
(
!
strncmp
(
"word_"
,
profile
,
5
))
short_ret
=
1
;
...
...
@@ -689,7 +689,7 @@ void BuildSpec16File( FILE *outfile )
char
profile
[
101
];
strcpy
(
profile
,
get_function_name
(
typelist
[
i
]
));
BuildCallFrom16Func
(
outfile
,
profile
,
DLLName
,
TRUE
);
BuildCallFrom16Func
(
outfile
,
profile
,
DLLName
);
}
#endif
...
...
@@ -785,7 +785,7 @@ void BuildSpec16File( FILE *outfile )
if
(
typelist
[
i
]
->
type
==
TYPE_PASCAL_16
)
arg_types
[
0
]
|=
ARG_RET16
;
#ifdef __i386__
fprintf
(
outfile
,
" { 0x68, %s_CallFrom16_%s, 0x9a, __wine_call_from_16_%s,
\n
"
,
fprintf
(
outfile
,
" { 0x68,
__wine_
%s_CallFrom16_%s, 0x9a, __wine_call_from_16_%s,
\n
"
,
make_c_identifier
(
DLLName
),
profile
,
(
typelist
[
i
]
->
flags
&
(
FLAG_REGISTER
|
FLAG_INTERRUPT
))
?
"regs"
:
typelist
[
i
]
->
type
==
TYPE_PASCAL_16
?
"word"
:
"long"
);
...
...
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