From: Michal Rokos Date: 2002-09-10T18:07:09+09:00 Subject: Re: [Fix, NO alloca] Parse.y Hi, On Tue, Sep 10, 2002 at 07:22:09AM +0900, Yukihiro Matsumoto wrote: > In message "[Fix, NO alloca] Parse.y" > on 02/09/09, Michal Rokos writes: > > | there are some places where we don't need to use alloca. > | This is one of these. > > Why do we have to avoid alloca? ALLOCA macro just runs alloca. No NULL check is done (and I've been said that if alloca fails, not allways returns NULL). We run into problems when long we try to alloca big amount of memory. That's why we should use malloc (where we can). Michal -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Michal Rokos Czech Technical University, Prague E-mail:m.rokos@sh.cvut.cz ICQ:36118339 Jabber:majkl@jabber.cz -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-