* mthr_stub.c (__mingwthr_key_dtor): Replace assert(0) with
a diagnostic, guarded by #ifdef DEBUG. (__mingwthr_remove_key_dtor): Likewise.
This commit is contained in:
parent
be5c9e0965
commit
5ce4d1685b
@ -1,3 +1,9 @@
|
|||||||
|
2005-08-10 Danny Smith <dannysmith@users.sourceforge.net>
|
||||||
|
|
||||||
|
* mthr_stub.c (__mingwthr_key_dtor): Replace assert(0) with
|
||||||
|
a diagnostic, guarded by #ifdef DEBUG.
|
||||||
|
(__mingwthr_remove_key_dtor): Likewise.
|
||||||
|
|
||||||
2005-08-08 Danny Smith <dannysmith@users.sourceforge.net>
|
2005-08-08 Danny Smith <dannysmith@users.sourceforge.net>
|
||||||
|
|
||||||
* moldname.def.in (sleep, beep, seterrormode): Remove.
|
* moldname.def.in (sleep, beep, seterrormode): Remove.
|
||||||
|
@ -15,31 +15,30 @@
|
|||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#undef WIN32_LEAN_AND_MEAN
|
#undef WIN32_LEAN_AND_MEAN
|
||||||
#include <assert.h>
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* __mingwthr_register_key_dtor (DWORD key, void (*dtor) (void *))
|
* __mingwthr_register_key_dtor (DWORD key, void (*dtor) (void *))
|
||||||
*
|
*
|
||||||
* Public interface called by C++ exception handling mechanism in
|
* Public interface called by C++ exception handling mechanism in
|
||||||
* libgcc (cf: __gthread_key_create).
|
* libgcc (cf: __gthread_key_create).
|
||||||
*
|
* No-op versions.
|
||||||
* THIS SHOULD NEVER BE CALLED!
|
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int
|
int
|
||||||
__mingwthr_key_dtor (DWORD key, void (*dtor) (void *))
|
__mingwthr_key_dtor (DWORD key, void (*dtor) (void *))
|
||||||
{
|
{
|
||||||
assert (0);
|
#ifdef DEBUG
|
||||||
/* NOTREACHED */
|
printf ("%s: ignoring key: (%ld) / dtor: (%x)\n",
|
||||||
|
__FUNCTION__, key, dtor);
|
||||||
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
__mingwthr_remove_key_dtor (DWORD key )
|
__mingwthr_remove_key_dtor (DWORD key )
|
||||||
{
|
{
|
||||||
assert (0);
|
#ifdef DEBUG
|
||||||
/* NOTREACHED */
|
printf ("%s: ignoring key: (%ld)\n", __FUNCTION__, key );
|
||||||
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user