From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,4559659e47d55735,start X-Google-Attributes: gid111c93,public From: h0l0gRaM Subject: Added alloca() function to alloca.h Date: 2000/07/03 Message-ID: <39605EB9.4666C8C7@saunalahti.fi>#1/1 X-Deja-AN: 641758876 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: newsmaster@saunalahti.fi X-Trace: tron.sci.fi 962617465 18672 195.197.44.188 (3 Jul 2000 09:44:25 GMT) Organization: SAUNALAHDEN asiakas Mime-Version: 1.0 NNTP-Posting-Date: 3 Jul 2000 09:44:25 GMT Newsgroups: comp.os.linux.alpha 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 #define __need_size_t #include __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"