mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-29 14:30:34 +02:00
* gc.c (scm_gc_sweep): Make it compile even when deprecated
features are excluded.
This commit is contained in:
parent
bac0e23263
commit
646052c0dc
2 changed files with 14 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2002-01-10 Dirk Herrmann <D.Herrmann@tu-bs.de>
|
||||
|
||||
* gc.c (scm_gc_sweep): Make it compile even when deprecated
|
||||
features are excluded.
|
||||
|
||||
2002-01-10 Dirk Herrmann <D.Herrmann@tu-bs.de>
|
||||
|
||||
* num2integral.i.c (NUM2INTEGRAL): Fixed signedness problem.
|
||||
|
|
|
@ -1709,6 +1709,7 @@ scm_gc_sweep ()
|
|||
|
||||
if (mm != 0)
|
||||
{
|
||||
#if SCM_ENABLE_DEPRECATED == 1
|
||||
scm_c_issue_deprecation_warning
|
||||
("Returning non-0 from a port free function is "
|
||||
"deprecated. Use scm_gc_free et al instead.");
|
||||
|
@ -1716,8 +1717,11 @@ scm_gc_sweep ()
|
|||
("(You just returned non-0 while freeing a %s.)",
|
||||
SCM_PTOBNAME (k));
|
||||
m += mm;
|
||||
#else
|
||||
abort ();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
SCM_SETSTREAM (scmptr, 0);
|
||||
scm_remove_from_port_table (scmptr);
|
||||
scm_gc_ports_collected++;
|
||||
|
@ -1755,6 +1759,7 @@ scm_gc_sweep ()
|
|||
mm = scm_smobs[k].free (scmptr);
|
||||
if (mm != 0)
|
||||
{
|
||||
#if SCM_ENABLE_DEPRECATED == 1
|
||||
scm_c_issue_deprecation_warning
|
||||
("Returning non-0 from a smob free function is "
|
||||
"deprecated. Use scm_gc_free et al instead.");
|
||||
|
@ -1762,6 +1767,9 @@ scm_gc_sweep ()
|
|||
("(You just returned non-0 while freeing a %s.)",
|
||||
SCM_SMOBNAME (k));
|
||||
m += mm;
|
||||
#else
|
||||
abort();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue