Re: GLib: embedded list implementation?

2007-11-30 Thread muppet
On Nov 30, 2007, at 2:09 PM, Matthew Barnes wrote: What about embedding a GList node at the top of a larger struct, as we do with GObjects? e.g. struct MyNode { GList parent; ... other data ... }; Sure you'd have an unused 'data' pointer in every node, but it might

Re: GLib: embedded list implementation?

2007-11-30 Thread Matthew Barnes
On Fri, 2007-11-30 at 10:41 -0500, Behdad Esfahbod wrote: > > The Linux kernel has a unique, and useful, doubly-linked list > > implementation that I find myself constantly copying into the userspace > > programs that I write. As a frequent user of GLib in my console-based > > and server applic

Re: GLib: embedded list implementation?

2007-11-30 Thread Behdad Esfahbod
On Thu, 2007-11-29 at 10:30 -0500, Jeff Garzik wrote: > Greetings from pre-2000 GLib contributor :) Welcome! > The Linux kernel has a unique, and useful, doubly-linked list > implementation that I find myself constantly copying into the userspace > programs that I write. As a frequent user of

GLib: embedded list implementation?

2007-11-29 Thread Jeff Garzik
Greetings from pre-2000 GLib contributor :) The Linux kernel has a unique, and useful, doubly-linked list implementation that I find myself constantly copying into the userspace programs that I write. As a frequent user of GLib in my console-based and server applications, I thought it would b