home *** CD-ROM | disk | FTP | other *** search
/ RISCWORLD 7 / RISCWORLD_VOL7.iso / Software / Issue6 / SDL.ZIP / !gcc / include / unixlib / h / alloca next >
Encoding:
Text File  |  2006-09-17  |  696 b   |  35 lines

  1. /****************************************************************************
  2.  *
  3.  * $Source: /usr/local/cvsroot/gccsdk/unixlib/source/clib/alloca.h,v $
  4.  * $Date: 2004/10/17 16:24:43 $
  5.  * $Revision: 1.6 $
  6.  * $State: Exp $
  7.  * $Author: joty $
  8.  *
  9.  ***************************************************************************/
  10.  
  11. #ifndef __ALLOCA_H
  12. #define __ALLOCA_H
  13.  
  14. #ifndef __UNIXLIB_FEATURES_H
  15. #include <features.h>
  16. #endif
  17.  
  18. #define __need_size_t
  19. #include <stddef.h>
  20.  
  21. __BEGIN_DECLS
  22.  
  23. #undef alloca
  24.  
  25. /* Allocate a block that will be freed when the calling function exits.  */
  26. extern void *alloca (size_t __size);
  27.  
  28. #ifdef __GNUC__
  29. #define alloca(size) __builtin_alloca (size)
  30. #endif
  31.  
  32. __END_DECLS
  33.  
  34. #endif
  35.