bug - GCompareFunc used inconsistently
- From: Jeff Garzik <jgarzik pobox com>
- To: gtk-devel-list redhat com
- Subject: bug - GCompareFunc used inconsistently
- Date: Sat, 23 Jan 1999 16:01:20 -0500 (EST)
For some modules, GCompareFunc returns a value in the same manner as
strcmp, where equal values result in zero. glist, gmem, gslist, and
gtree do this.
For other modules, GCompareFunc returns a truth value, where equal
values result in one. gcache, ghash, and grel do this.
This has already resulted in one recent bug report, and will probably be
a source of confusion.
Would be the course of action be to define a GEqualFunc type which
returns a gboolean, and change ghash, gcache, and grel accordingly?
Jeff
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]