Re: GLIB Hash Data
- From: Ruben I Safir <ruben mrbrklyn com>
- To: Matthew Campbell Relizon com
- Cc: ruben mrbrklyn com, Gtk-List <gtk-list gnome org>
- Subject: Re: GLIB Hash Data
- Date: Thu, 25 Apr 2002 14:45:21 -0400
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]