mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-17 19:20:01 +08:00
gen-num-limits.cc (signal_adapter): Overloaded to match signal_func with an unspecified argument list.
* src/gen-num-limits.cc (signal_adapter): Overloaded to match signal_func with an unspecified argument list. From-SVN: r40546
This commit is contained in:
parent
110c3568a2
commit
e52ba67a25
@ -1,3 +1,8 @@
|
||||
2001-03-16 Alexandre Oliva <aoliva@redhat.com>
|
||||
|
||||
* src/gen-num-limits.cc (signal_adapter): Overloaded to match
|
||||
signal_func with an unspecified argument list.
|
||||
|
||||
2001-03-15 Benjamin Kosnik <bkoz@redhat.com>
|
||||
|
||||
* tests_flags.in (CXXFLAGS): Link libstdc++ before libsupc++.
|
||||
|
@ -114,8 +114,16 @@ template <typename signal_handler_type, typename signal_number_type>
|
||||
inline void (*signal_adapter (signal_handler_type
|
||||
(*signal_func)(signal_number_type,
|
||||
signal_handler_type),
|
||||
signal_number_type arg,
|
||||
void (*handler)(int)))(int)
|
||||
signal_number_type arg,
|
||||
void (*handler)(int)))(int)
|
||||
{
|
||||
return (void (*)(int))(*signal_func)(arg, (signal_handler_type)handler);
|
||||
}
|
||||
|
||||
template <typename signal_handler_type, typename signal_number_type>
|
||||
inline void (*signal_adapter (signal_handler_type (*signal_func)(...),
|
||||
signal_number_type arg,
|
||||
void (*handler)(int)))(int)
|
||||
{
|
||||
return (void (*)(int))(*signal_func)(arg, (signal_handler_type)handler);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user