Changeset 609 for branches/GNU/src/binutils/libiberty/xatexit.c
- Timestamp:
- Aug 16, 2003, 6:59:22 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/binutils/libiberty/xatexit.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r608 r609 5 5 * %sccs.include.redist.c% 6 6 */ 7 8 9 /* 10 11 @deftypefun int xatexit (void (*@var{fn}) (void)) 12 13 Behaves as the standard @code{atexit} function, but with no limit on 14 the number of registered functions. Returns 0 on success, or @minus{}1 on 15 failure. If you use @code{xatexit} to register functions, you must use 16 @code{xexit} to terminate your program. 17 18 @end deftypefun 19 20 */ 7 21 8 22 /* Adapted from newlib/libc/stdlib/{,at}exit.[ch]. … … 14 28 #include <stdio.h> 15 29 16 #ifdef __STDC__30 #ifdef ANSI_PROTOTYPES 17 31 #include <stddef.h> 18 32 #else … … 20 34 #endif 21 35 36 #if VMS 37 #include <stdlib.h> 38 #include <unixlib.h> 39 #else 22 40 /* For systems with larger pointers than ints, this must be declared. */ 23 41 PTR malloc PARAMS ((size_t)); 42 #endif 24 43 25 44 static void xatexit_cleanup PARAMS ((void)); -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.