Make divide functions return values via (SCM *) output arguments
authorMark H Weaver <mhw@netris.org>
Sun, 13 Feb 2011 10:47:33 +0000 (05:47 -0500)
committerAndy Wingo <wingo@pobox.com>
Mon, 14 Feb 2011 19:30:30 +0000 (20:30 +0100)
commit5fbf680be9e98d005bbbd6a598443fca76a6918d
treeae29979fa50ef46b747fa59353ac4d1a1e0d92b4
parenta85c1f93f03e1de8f6a52a09b186e885c4c2f216
Make divide functions return values via (SCM *) output arguments

* libguile/numbers.c (scm_euclidean_divide, scm_centered_divide): Change
  API to return two values via output arguments of type (SCM *), instead
  of packing into a values object.

  (scm_i_euclidean_divide, scm_i_centered_divide): New internal wrappers
  that call the above functions and pack the result into a values
  object.

* libguile/numbers.h: Change prototypes to reflect new API.

* doc/ref/api-data.h (Arithmetic): Update manual.
doc/ref/api-data.texi
libguile/numbers.c
libguile/numbers.h