Re: GLIB Hash Data



Seems that worked


On 2002.04.25 14:31 "Campbell, Matthew A" wrote:
> > > 
> > > They need to be:
> > > 
> > >     guint     HashFunction (gconstpointer key);
> > >     gboolean  HashCompare  (gconstpointer a, gconstpointer b);
> > Ahh
> > 
> > 
> > I was following the example in the book.  I see, but isn't gboolean
> > #DEFINED as an int?  There is no BOOL in C.
> 
> The more important thing is the difference between "gpointer" and
> "gconstpointer" in the parameters to your functions.
> 
> I had the same difficulty at first, until I re-examined the documentation
> very closely.  (I actually had to look it up three times before the subtle
> difference caught my eye.)
> 
> Hope this helps.
> 
-- 
__________________________

Brooklyn Linux Solutions
__________________________
http://www.mrbrklyn.com - Consulting
http://www.brooklynonline.com - For the love of Brooklyn
http://www.nylxs.com - Leadership Development in Free Software
http://www.nyfairuse.org - The foundation of Democracy
http://www2.mrbrklyn.com/resources - Unpublished Archive or stories and articles from around the net
http://www2.mrbrklyn.com/mp3/dr.mp3 - Imagine my surprise when I saw you...
http://www2.mrbrklyn.com/downtown.html - See the New Downtown Brooklyn....

1-718-382-5752






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]