From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rechberger Markus Subject: Re: obstack_alloc & _obstack_newchunk Date: Wed, 23 Feb 2005 23:49:26 +0100 Message-ID: References: Reply-To: Rechberger Markus Mime-Version: 1.0 Content-Transfer-Encoding: 7bit In-Reply-To: Sender: linux-c-programming-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii" To: linux-c-programming@vger.kernel.org hmm what's the advantage of using the obstack_* functions? isn't malloc already enough? never saw it in an application actually so I'm just curious about it.. thanks Markus On Wed, 23 Feb 2005 14:37:17 +0100 (CET), J. wrote: > On Wed, 23 Feb 2005, Mariano Moreyra wrote: > > > Hi J. > > > > You need to init your obstack before using it > > Also, you need to declare this before calling obstack_init() > > > > #define obstack_chunk_alloc malloc > > #define obstack_chunk_free free > > > > So, your code would look like this: > > > ... > > > Thank you for the complete answer.. !! > > Cheers, J. > > - > To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >