You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425
  1. #ifndef _ALLOCA_H
  2. #define _ALLOCA_H
  3. /**
  4. * @file
  5. *
  6. * Temporary memory allocation
  7. *
  8. */
  9. #include <stdint.h>
  10. /**
  11. * Allocate temporary memory from the stack
  12. *
  13. * @v size Size to allocate
  14. * @ret ptr Allocated memory
  15. *
  16. * This memory will be freed automatically when the containing
  17. * function returns. There are several caveats regarding use of
  18. * alloca(); use it only if you already know what they are.
  19. */
  20. #define alloca(size) __builtin_alloca ( size )
  21. #endif /* _ALLOCA_H */