Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: h0l0gRaM <hgm@saunalahti.fi>
Subject: Added alloca() function to alloca.h
Date: 2000/07/03	[thread overview]
Message-ID: <39605EB9.4666C8C7@saunalahti.fi> (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"



                 reply	other threads:[~2000-07-03  4:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox