1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-28 16:00:22 +02:00

(foo-options 'full) displays options doc in correct order

* libguile/options.c (get_documented_option_setting): Reverse options
  interface list before returning, so that they are in the original
  order.
This commit is contained in:
Andy Wingo 2010-10-01 10:07:47 +02:00
parent 4272304761
commit edca9d6ef4

View file

@ -148,7 +148,7 @@ get_documented_option_setting (const scm_t_option options[])
ls = scm_cons (SCM_PACK (options[i].name), ls); ls = scm_cons (SCM_PACK (options[i].name), ls);
ans = scm_cons (ls, ans); ans = scm_cons (ls, ans);
} }
return ans; return scm_reverse_x (ans, SCM_UNDEFINED);
} }