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
9c708060
Commit
9c708060
authored
Aug 29, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use __wine_unimplemented_stub from crt0 for 16-bit spec files too.
parent
40dae543
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
spec16.c
tools/winebuild/spec16.c
+6
-10
No files found.
tools/winebuild/spec16.c
View file @
9c708060
...
...
@@ -363,15 +363,10 @@ static void output_stub_funcs( FILE *outfile, const DLLSPEC *spec )
ORDDEF
*
odp
=
spec
->
ordinals
[
i
];
if
(
!
odp
||
odp
->
type
!=
TYPE_STUB
)
continue
;
fprintf
(
outfile
,
"#ifdef __GNUC__
\n
"
);
fprintf
(
outfile
,
"static void __wine_unimplemented( const char *func ) __attribute__((noreturn));
\n
"
);
fprintf
(
outfile
,
"#endif
\n
"
);
fprintf
(
outfile
,
"static void __wine_unimplemented( const char *func )
\n
{
\n
"
);
fprintf
(
outfile
,
" extern void __stdcall RaiseException( unsigned int, unsigned int, unsigned int, const void ** );
\n
"
);
fprintf
(
outfile
,
" const void *args[2];
\n
"
);
fprintf
(
outfile
,
" args[0] =
\"
%s
\"
;
\n
"
,
spec
->
file_name
);
fprintf
(
outfile
,
" args[1] = func;
\n
"
);
fprintf
(
outfile
,
" for (;;) RaiseException( 0x%08x, %d, 2, args );
\n
}
\n\n
"
,
EXCEPTION_WINE_STUB
,
EH_NONCONTINUABLE
);
fprintf
(
outfile
,
"extern void __wine_spec_unimplemented_stub( const char *module, const char *func ) __attribute__((noreturn));
\n
"
);
fprintf
(
outfile
,
"#else
\n
"
);
fprintf
(
outfile
,
"extern void __wine_spec_unimplemented_stub( const char *module, const char *func );
\n
"
);
fprintf
(
outfile
,
"#endif
\n\n
"
);
break
;
}
for
(
i
=
0
;
i
<=
spec
->
limit
;
i
++
)
...
...
@@ -382,7 +377,7 @@ static void output_stub_funcs( FILE *outfile, const DLLSPEC *spec )
strcpy
(
odp
->
link_name
,
"__wine_stub_"
);
strcat
(
odp
->
link_name
,
odp
->
name
);
for
(
p
=
odp
->
link_name
;
*
p
;
p
++
)
if
(
!
isalnum
(
*
p
))
*
p
=
'_'
;
fprintf
(
outfile
,
"static void %s(void) { __wine_
unimplemented(
\"
%s
\"
); }
\n
"
,
fprintf
(
outfile
,
"static void %s(void) { __wine_
spec_unimplemented_stub(__wine_spec16_file_name,
\"
%s
\"
); }
\n
"
,
odp
->
link_name
,
odp
->
name
);
}
}
...
...
@@ -414,6 +409,7 @@ void BuildSpec16File( FILE *outfile, DLLSPEC *spec )
/* File header */
output_file_header
(
outfile
);
fprintf
(
outfile
,
"static const char __wine_spec16_file_name[] =
\"
%s
\"
;
\n
"
,
spec
->
file_name
);
fprintf
(
outfile
,
"extern unsigned short __wine_call_from_16_word();
\n
"
);
fprintf
(
outfile
,
"extern unsigned int __wine_call_from_16_long();
\n
"
);
fprintf
(
outfile
,
"extern void __wine_call_from_16_regs();
\n
"
);
...
...
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