Re: (patch) strdupa for GLib - 2nd try
- From: Elliot Lee <sopwith redhat com>
- To: gtk-devel-list redhat com
- Subject: Re: (patch) strdupa for GLib - 2nd try
- Date: Wed, 30 Dec 1998 12:46:27 -0500 (EST)
On Wed, 30 Dec 1998, Jeff Garzik wrote:
> Apologies if you guys are seeing this twice.
>
> The following patch adds strdupa support to GLib - duplicate a string on
> the stack. As Ulrich Drepper noted yesterday, alloca is many, many times
> faster than g_malloc/g_free.
>
> I will commit unless there are objections.
Hmm, do you necessarily need to include alloca.h - the right way on many
systems to get alloca() prototype is by including stdlib.h (as per 'man
alloca' on Linux & Solaris). IRIX 6.4 seems to need alloca.h, so there
doesn't seem to be any rule of thumb...?
-- Elliot
"In film you will find four basic story lines. Man versus man, man
versus nature, nature versus nature, and dog versus vampire."
- Steven Spielberg
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]