1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 11:40:18 +02:00

doc: Use scm_{to,from}_double instead of old API in example.

Fixed <http://bugs.gnu.org/12241>.
Reported by Kurt W. Gochko <kgochko@comcast.net>.

* doc/ref/tour.texi (Writing Guile Extensions): Change example to use
  scm_{to,from}_double instead of the pre-1.8 API.
This commit is contained in:
Ludovic Courtès 2012-09-03 22:35:33 +02:00
parent a8872c78a4
commit 8a84f7fb46

View file

@ -1,7 +1,7 @@
@c -*-texinfo-*- @c -*-texinfo-*-
@c This is part of the GNU Guile Reference Manual. @c This is part of the GNU Guile Reference Manual.
@c Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004, 2006, 2010, 2011 @c Copyright (C) 1996, 1997, 2000, 2001, 2002, 2003, 2004, 2006, 2010, 2011,
@c Free Software Foundation, Inc. @c 2012 Free Software Foundation, Inc.
@c See the file guile.texi for copying conditions. @c See the file guile.texi for copying conditions.
@raisesections @raisesections
@ -149,7 +149,7 @@ that makes the @code{j0} function available to Scheme code.
SCM SCM
j0_wrapper (SCM x) j0_wrapper (SCM x)
@{ @{
return scm_make_real (j0 (scm_num2dbl (x, "j0"))); return scm_from_double (j0 (scm_to_double (x)));
@} @}
void void