mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-23 19:38:07 +01:00
ruby: filenames: return string array directly
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
parent
777b02a7d7
commit
837426d7be
1 changed files with 5 additions and 1 deletions
|
@ -23,7 +23,11 @@
|
|||
VALUE
|
||||
notmuch_rb_filenames_get (notmuch_filenames_t *fnames)
|
||||
{
|
||||
return Data_Wrap_Notmuch_Object (notmuch_rb_cFileNames, ¬much_rb_filenames_type, fnames);
|
||||
VALUE rb_array = rb_ary_new ();
|
||||
|
||||
for (; notmuch_filenames_valid (fnames); notmuch_filenames_move_to_next (fnames))
|
||||
rb_ary_push (rb_array, rb_str_new2 (notmuch_filenames_get (fnames)));
|
||||
return rb_array;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue