Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!mailrus!uunet!cs.utexas.edu!romp!auschs!awdprime!toysrus!dcm From: dcm@toysrus.uucp (dcm) Newsgroups: comp.unix.aix Subject: Re: changing the console; alloca missing from 9021? Message-ID: <3048@awdprime.UUCP> Date: 4 Aug 90 17:06:50 GMT References: <61875@bu.edu.bu.edu> <1990Aug3.170532.11038@ibmpa> Sender: news@awdprime.UUCP Reply-To: dcm@austin.ibm.com (Craig Miller) Organization: IBM AWD, Austin, TX Lines: 27 In article <1990Aug3.170532.11038@ibmpa> jsalter@slo.UUCP (James Salter) writes: > >One of the mysteries of AIXv3.1 is the following: > > To access the alloca() function, you need to add the following > line to the beginning of your SOURCE code: > > #pragma alloca > > This will make the alloca() routine available for use. Jim, you sound like this is cruel & unusual. I personally think if you use alloca, you get what you deserve (unportable code). But we should discourage it. And the compiler usually needs to help anyway... I don't consider #pragma alloca cruel or unusual at all. Let's make people think about it before they use it (heck, C went ~15 years without it anyway). Craig "we don't need no stinking fsck on our filesystem" "jfs = jeff's filesystem" -------- Craig Miller, contractor @ IBM AWD, Austin UUCP: ..!uunet!cs.utexas.edu!ibmaus!auschs!toysrus.austin.ibm.com!dcm "Bo knows uucp."