Ignore:
Timestamp:
Aug 16, 2003, 6:59:22 PM (22 years ago)
Author:
bird
Message:

binutils v2.14 - offical sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/binutils/libiberty/xatexit.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r608 r609  
    55 * %sccs.include.redist.c%
    66 */
     7
     8
     9/*
     10
     11@deftypefun int xatexit (void (*@var{fn}) (void))
     12
     13Behaves as the standard @code{atexit} function, but with no limit on
     14the number of registered functions.  Returns 0 on success, or @minus{}1 on
     15failure.  If you use @code{xatexit} to register functions, you must use
     16@code{xexit} to terminate your program.
     17
     18@end deftypefun
     19
     20*/
    721
    822/* Adapted from newlib/libc/stdlib/{,at}exit.[ch].
     
    1428#include <stdio.h>
    1529
    16 #ifdef __STDC__
     30#ifdef ANSI_PROTOTYPES
    1731#include <stddef.h>
    1832#else
     
    2034#endif
    2135
     36#if VMS
     37#include <stdlib.h>
     38#include <unixlib.h>
     39#else
    2240/* For systems with larger pointers than ints, this must be declared.  */
    2341PTR malloc PARAMS ((size_t));
     42#endif
    2443
    2544static void xatexit_cleanup PARAMS ((void));
Note: See TracChangeset for help on using the changeset viewer.