mirror of
https://github.com/adtools/clib2.git
synced 2026-05-08 22:24:58 +00:00
- Changed the definition of alloca() for GCC, which now defaults
to the built-in function. - Updated the stdio.h, stdlib.h, string.h and unistd.h header files to declare function prototypes for the __MEM_DEBUG versions of the library functions only if that preprocessor symbol is defined. - If a SIGINT signal is caught and processed by the default signal handler, the localized "*** BREAK" string will be printed rather than the built-in one. git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@14786 87f5fb63-7c3d-0410-a384-fd976d0f7a62
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: signal_raise.c,v 1.1.1.1 2004-07-26 16:31:05 obarthel Exp $
|
||||
* $Id: signal_raise.c,v 1.2 2004-12-26 10:28:56 obarthel Exp $
|
||||
*
|
||||
* :ts=4
|
||||
*
|
||||
@@ -68,12 +68,16 @@ raise(int sig)
|
||||
|
||||
if(handler == SIG_DFL)
|
||||
{
|
||||
char break_string[80];
|
||||
|
||||
SHOWMSG("this is the default handler");
|
||||
|
||||
/* Don't trigger a recursion. */
|
||||
__check_abort_enabled = FALSE;
|
||||
|
||||
__print_termination_message((sig == SIGINT) ? "*** BREAK\n" : __abnormal_program_termination);
|
||||
Fault(ERROR_BREAK,NULL,break_string,(LONG)sizeof(break_string));
|
||||
|
||||
__print_termination_message((sig == SIGINT) ? break_string : NULL);
|
||||
|
||||
SHOWMSG("bye, bye...");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user