Re: browsing a hash table
- From: Olexiy Avramchenko <ath beast stu cn ua>
- To: Emmanuel Saracco <esaracco noos fr>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: browsing a hash table
- Date: Wed, 06 Nov 2002 17:11:54 +0200
Emmanuel Saracco wrote:
hi,
is there another way that g_hash_table_foreach() to browse a hash table?
couldn't it be done with a for or a while loop instead?
There's no public way, because GHashTable structure is private.
You always may cut some lines of code from "glib/ghash.c" (LGPL)
and use for certain Glib version. But do you really want to save
some CPU cycles or some bytes of code ;) ? g_hash_table_foreach()
runs your function in *for* cycles so it wastes no more than ~10 CPU
commands.
Olexiy
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]