* fhandler_console.cc (keytable): Add support for keypad 5 key, which MS seems

to think is equivalent to VK_CLEAR.
* debug.cc (thread_stub): Eliminate initialization of reent stuff.
* init.cc (dll_entry): Move it here.
This commit is contained in:
Christopher Faylor 2000-04-15 03:52:24 +00:00
parent 405713cfb3
commit eed11cf2bb
4 changed files with 14 additions and 10 deletions

View File

@ -1,3 +1,10 @@
Fri Apr 14 23:51:15 2000 Christopher Faylor <cgf@cygnus.com>
* fhandler_console.cc (keytable): Add support for keypad 5 key, which
MS seems to think is equivalent to VK_CLEAR.
* debug.cc (thread_stub): Eliminate initialization of reent stuff.
* init.cc (dll_entry): Move it here.
Thu Apr 13 18:32:26 2000 Christopher Faylor <cgf@cygnus.com>
* dcrt0.cc (insert_file): Avoid freeing previously allocated argument

View File

@ -83,16 +83,6 @@ thread_stub (VOID *arg)
/* Give up our slot in the start_buf array */
InterlockedExchange (&((thread_start *) arg)->notavail, 0);
#ifdef _MT_SAFE
/* marco@ddi.nl: Needed for the reent's of this local dll thread
I assume that the local threads are using the reent structure of
the main thread
*/
if ( !TlsSetValue(user_data->threadinterface->reent_index,
&user_data->threadinterface->reents) )
api_fatal(" Sig proc MT init failed\n");
#endif
/* Initialize this threads ability to respond to things like
SIGSEGV or SIGFPE. */
init_exceptions (&except_entry);

View File

@ -1255,6 +1255,7 @@ static struct {
{VK_F11, {"\033[23~", NULL, NULL, NULL}},
{VK_F12, {"\033[24~", NULL, NULL, NULL}},
{VK_NUMPAD5, {"\033[G", NULL, NULL, NULL}},
{VK_CLEAR, {"\033[G", NULL, NULL, NULL}},
{'6', {NULL, NULL, "\036", NULL}},
{0, {"", NULL, NULL, NULL}}
};

View File

@ -26,6 +26,12 @@ WINAPI dll_entry (HANDLE h, DWORD reason, void *static_load)
dynamically_loaded = (static_load == NULL);
break;
case DLL_THREAD_ATTACH:
if (user_data->initial_sp)
{
if ( !TlsSetValue(user_data->threadinterface->reent_index,
&user_data->threadinterface->reents))
api_fatal("Sig proc MT init failed\n");
}
break;
case DLL_PROCESS_DETACH:
break;