After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 585852 - Support function returning an strv
Support function returning an strv
Status: RESOLVED FIXED
Product: gjs
Classification: Bindings
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gjs-maint
gjs-maint
Depends on:
Blocks:
 
 
Reported: 2009-06-15 13:42 UTC by Johan Bilien
Modified: 2009-06-16 11:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed patch (3.65 KB, patch)
2009-06-15 13:43 UTC, Johan Bilien
committed Details | Review
new version with non-zero-terminated support (4.14 KB, patch)
2009-06-15 17:08 UTC, Johan Bilien
rejected Details | Review

Description Johan Bilien 2009-06-15 13:42:55 UTC
like g_get_system_config_dirs ()
Comment 1 Johan Bilien 2009-06-15 13:43:41 UTC
Created attachment 136631 [details] [review]
proposed patch
Comment 2 Johan Bilien 2009-06-15 17:08:05 UTC
Created attachment 136648 [details] [review]
new version with non-zero-terminated support

So it provides the same features as that of bug# 584568
Comment 3 Havoc Pennington 2009-06-16 11:37:56 UTC
Unlikely to matter in anything real world, but may as well do:

list = g_slist_prepend(list, foo);

list = g_slist_reverse(list)

just in case someone has a big array.

g_type_info_get_array_length can't be right 


OK otherwise
Comment 4 Johan Bilien 2009-06-16 11:47:08 UTC
Thanks, pushed the original patch (without the array length non-sense) and the list optimization