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: string.h,v 1.5 2004-11-17 19:07:26 obarthel Exp $
* $Id: string.h,v 1.6 2004-12-26 10:28:57 obarthel Exp $
*
* :ts=4
*
@ -106,11 +106,9 @@ extern char * rindex(const char *s, int c);
extern char * strdup(const char *s);
/* This is the version for use with memory debugging; do not call
it directly! */
#ifdef __MEM_DEBUG
extern char * __strdup(const char *s,const char *file,int line);
#ifdef __MEM_DEBUG
#define strdup(s) __strdup((s),__FILE__,__LINE__)
#endif /* __MEM_DEBUG */