/[gnats]/gnats/libiberty/strsignal.c
ViewVC logotype

Diff of /gnats/libiberty/strsignal.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by jsm, Tue Oct 26 07:10:16 1999 UTC revision 1.3 by pdm, Mon Dec 10 23:03:26 2001 UTC
# Line 17  Line 17 
17     ignore any declaration in the system header files, and always     ignore any declaration in the system header files, and always
18     declare it ourselves.  With luck, this will always work.  */     declare it ourselves.  With luck, this will always work.  */
19  #define sys_siglist no_such_symbol  #define sys_siglist no_such_symbol
20    #define sys_nsig sys_nsig__no_such_symbol
21    
22  #include <stdio.h>  #include <stdio.h>
23  #include <signal.h>  #include <signal.h>
24    
25  /*  Routines imported from standard C runtime libraries. */  /*  Routines imported from standard C runtime libraries. */
26    
27  #ifdef __STDC__  #ifdef HAVE_STDLIB_H
28  #include <stddef.h>  #include <stdlib.h>
29  extern void *malloc (size_t size);                              /* 4.10.3.3 */  #else
30  extern void *memset (void *s, int c, size_t n);                 /* 4.11.6.1 */  extern PTR malloc ();
31  #else   /* !__STDC__ */  #endif
32  extern char *malloc ();         /* Standard memory allocater */  
33  extern char *memset ();  #ifdef HAVE_STRING_H
34  #endif  /* __STDC__ */  #include <string.h>
35    #else
36    extern PTR memset ();
37    #endif
38    
39  /* Undefine the macro we used to hide the definition of sys_siglist  /* Undefine the macro we used to hide the definition of sys_siglist
40     found in the system header files.  */     found in the system header files.  */
41  #undef sys_siglist  #undef sys_siglist
42    #undef sys_nsig
43    
44  #ifndef NULL  #ifndef NULL
45  #  ifdef __STDC__  #  ifdef __STDC__

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26