From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8055158949c56618 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-19 13:31:17 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!nntp-relay.ihug.net!ihug.co.nz!west.cox.net!cox.net!newsfeed1.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail From: "Eric G. Miller" Subject: Re: Storage Pools and alloca User-Agent: Pan/0.13.0 (The whole remains beautiful (Debian GNU/Linux)) Message-ID: Newsgroups: comp.lang.ada References: <0P_q9.20625$nb.4430@nwrddc02.gnilink.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Date: Sat, 19 Oct 2002 20:30:27 GMT NNTP-Posting-Host: 216.119.10.71 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 1035059427 216.119.10.71 (Sat, 19 Oct 2002 13:30:27 PDT) NNTP-Posting-Date: Sat, 19 Oct 2002 13:30:27 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.lang.ada:29954 Date: 2002-10-19T20:30:27+00:00 List-Id: In , Frank J. Lhota wrote: > > "Eric G. Miller" wrote in message > news:pan.2002.10.16.07.36.41.561696@jps-nospam.net... >> Errm, but "alloca" is not a standard C memory mechanism -- even if it is >> available on a number of platforms. And "pragma" in C is almost 100% >> platform/compiler specific... > > The "alloca" function falls into the category of a 90% standard function; > although it is not required, nearly all platforms provide it. There are a > number of functions like this in C; the very useful "strdup" function was > not officially part of the standard until 1999. AFAIK, strdup is *not* part of the C99 standard (BSD, SVID, etc...). I don't know why it isn't (it's a trivial but useful function). C99 VLA's possibly meet many of the alloca use cases.