Possible function (or macro) addition?
- From: Seth Alves <alves hungry com>
- To: gtk-list redhat com
- Subject: Possible function (or macro) addition?
- Date: 05 Jan 1999 22:36:23 -0800
posting for a friend...
----------------------------------------------------------------------
 From: Jason Evans <jasone@canonware.com>
 Subject: Possible function (or macro) addition?
 Hi, I'm using glib as part of a project I'm working on, and was starting
 to use the g_ptr_array* functions when I ran into a problem.  There
 doesn't seem to be a way of finding out the array size, other than looking
 inside the GPtrArray structure at the len field.  As near as I can tell
 from glib's design, the intention is to have structures regarded as
 opaque.  Does it make sense to add a function or macro, such as:
 
 #define g_ptr_array_get_size(array) (array)->len
 
 or should I just look inside the GPtrArray structure?
 
 The same question probably applies to a number of the other data
 structures in glib.
 
 Thanks,
 Jason
 
 Jason Evans <jasone@canonware.com>
 http://www.canonware.com/~jasone
 Home phone: (650) 856-8204
 Work phone: (415) 808-8742
 "I once knew a happy medium.  Her name was Zohar." - James Foster
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]