1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +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:
Olaf Barthel
2004-12-26 10:28:57 +00:00
parent d74535f87f
commit ad0880d204
31 changed files with 237 additions and 216 deletions

View File

@@ -1,5 +1,5 @@
/*
* $Id: stdlib_termination_message.c,v 1.1.1.1 2004-07-26 16:32:12 obarthel Exp $
* $Id: stdlib_termination_message.c,v 1.2 2004-12-26 10:28:56 obarthel Exp $
*
* :ts=4
*
@@ -45,18 +45,20 @@
/****************************************************************************/
const char __abnormal_program_termination[] = "Abnormal program termination\n";
/****************************************************************************/
void
__print_termination_message(const char * termination_message)
{
if(NOT __termination_message_printed)
static BOOL termination_message_printed = FALSE;
if(NOT termination_message_printed)
{
__termination_message_printed = TRUE;
termination_message_printed = TRUE;
if(NOT __termination_message_disabled && NOT __no_standard_io)
fputs(termination_message,stderr);
{
fputs((termination_message != NULL) ? termination_message : "Abnormal program termination",stderr);
fputc('\n',stderr);
}
}
}