* Added alloca() function to alloca.h
@ 2000-07-03 4:00 h0l0gRaM
0 siblings, 0 replies; only message in thread
From: h0l0gRaM @ 2000-07-03 4:00 UTC (permalink / raw)
As the header says ,I added alloca() function to alloca.h file.
This gives alloca() function for ccc/cxx ,as the GCC has this builtin
feature.
and heres my /usr/include/alloca.h
----------------------------------
#ifndef _ALLOCA_H
#define _ALLOCA_H 1
#include <features.h>
#define __need_size_t
#include <stddef.h>
__BEGIN_DECLS
/* Remove any previous definitions. */
#undef alloca
/* Allocate a block that will be freed when the calling function exits.
*/
extern __ptr_t alloca __P ((size_t __size));
#ifdef __GNUC__
# define alloca(size) __builtin_alloca (size)
#endif /* GCC. */
/* define for Compaq compiler */
#ifdef __CCC__
# pragma intrinsic (alloca)
#endif /* CCC ,h0l0gRaM */
__END_DECLS
#endif /* alloca.h */
---------------------
of course ,FSF's GPL text is missing ,don't delete it ;)
Thanks to Takeyasu Wakabayashi from Toyama University for helping with
this.
--
Saturday night in Toledo Ohio,
Is like being nowhere at all,
All through the day how the hours rush by,
You sit in the park and you watch the grass die.
-- John Denver, "Saturday Night in Toledo Ohio"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-07-03 4:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-07-03 4:00 Added alloca() function to alloca.h h0l0gRaM
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox