--- data-rep.texi.orig Thu Apr 26 20:15:37 2001
+++ data-rep.texi Thu Apr 26 20:21:20 2001
@@ -1573,7 +1573,8 @@
Continuing the above example, if the global variable @code{image_tag}
-contains a tag returned by @code{scm_newsmob}, here is how we could
+contains a tag returned by @code{scm_make_smob_type}
+@footnote{@code{scm_newsmob} has been deprecated}, here is how we could
construct a smob whose @sc{cdr} contains a pointer to a freshly
allocated @code{struct image}:
@@ -1625,7 +1626,8 @@
and perhaps causing a segmentation fault. Fortunately, this is pretty
simple to do. The function need only verify that its argument is a
non-immediate, whose @sc{car} is the type tag returned by
-@code{scm_newsmob}.
+@code{scm_make_smob_type}. @footnote{@code{scm_newsmob} has been
+deprecated.}
For example, here is a simple function that operates on an image smob,
and checks the type of its argument. We also present an expanded
@@ -1657,7 +1659,7 @@
void
init_image_type ()
@{
- image_tag = scm_newsmob (&image_funs);
+ image_tag = scm_make_smob_type (&image_funs);
scm_make_gsubr ("make-image", 3, 0, 0, make_image);
scm_make_gsubr ("clear-image", 1, 0, 0, clear_image);
@@ -2033,7 +2035,7 @@
void
init_image_type ()
@{
- image_tag = scm_newsmob (&image_funs);
+ image_tag = scm_make_smob_type (&image_funs);
scm_make_gsubr ("clear-image", 1, 0, 0, clear_image);
scm_make_gsubr ("make-image", 3, 0, 0, make_image);
_______________________________________________
Bug-guile mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-guile