mirror of
https://git.planet-casio.com/Vhex-Kernel-Core/fxlibc.git
synced 2024-12-28 04:23:38 +01:00
alloca: provide <alloca.h>
This commit is contained in:
parent
7c4de3e295
commit
1da9d10226
2 changed files with 24 additions and 0 deletions
3
STATUS
3
STATUS
|
@ -225,6 +225,9 @@ TEST: Function/symbol/macro needs to be tested
|
|||
|
||||
7.25 <wctype.h> TODO (not a priority)
|
||||
|
||||
(EXT) <alloca.h>
|
||||
(EXT) alloca -
|
||||
|
||||
# Supporting locales
|
||||
|
||||
What if we wanted to support more locales?
|
||||
|
|
21
include/alloca.h
Normal file
21
include/alloca.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
#ifndef __ALLOCA_H__
|
||||
# define __ALLOCA_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#undef alloca
|
||||
|
||||
/* Allocate a block of memory on the stack. */
|
||||
extern void *alloca(size_t __size);
|
||||
|
||||
#define alloca(size) __builtin_alloca(size)
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /*__ALLOCA_H__*/
|
Loading…
Reference in a new issue