bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

doc/data-rep.texi: scm_newsmob() is deprecated


From: uebayasi
Subject: doc/data-rep.texi: scm_newsmob() is deprecated
Date: Thu, 26 Apr 2001 20:20:53 +0900 (JST)

--- 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}
address@hidden@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
address@hidden
address@hidden @address@hidden 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);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]