mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-01 20:30:28 +02:00
* gc.c: remove set_debug_cell_accesses! when
SCM_DEBUG_CELL_ACCESSES is not defined. Scheme source code should use (if (defined? 'set-debug-cell-accesses!) .. ) to switch on debugging conditionally.
This commit is contained in:
parent
54733c952d
commit
009c34a2da
2 changed files with 7 additions and 19 deletions
|
@ -1,3 +1,10 @@
|
|||
2004-03-20 Han-Wen Nienhuys <hanwen@xs4all.nl>
|
||||
|
||||
* gc.c: remove set_debug_cell_accesses! when
|
||||
SCM_DEBUG_CELL_ACCESSES is not defined. Scheme source code should
|
||||
use (if (defined? 'set-debug-cell-accesses!) .. ) to switch on
|
||||
debugging conditionally.
|
||||
|
||||
2004-03-21 Kevin Ryde <user42@zip.com.au>
|
||||
|
||||
* stime.c (scm_gmtime): Use gmtime_r when available, for thread safety.
|
||||
|
|
|
@ -207,26 +207,7 @@ SCM_DEFINE (scm_set_debug_cell_accesses_x, "set-debug-cell-accesses!", 1, 0, 0,
|
|||
return SCM_UNSPECIFIED;
|
||||
}
|
||||
#undef FUNC_NAME
|
||||
#else
|
||||
|
||||
/*
|
||||
Provide a stub, so people can use their Scheme code on non-debug
|
||||
versions of GUILE as well.
|
||||
*/
|
||||
SCM_DEFINE (scm_set_debug_cell_accesses_x, "set-debug-cell-accesses!", 1, 0, 0,
|
||||
(SCM flag),
|
||||
"This function is used to turn on checking for a debug version of GUILE. This version does not support this functionality\n")
|
||||
#define FUNC_NAME s_scm_set_debug_cell_accesses_x
|
||||
{
|
||||
|
||||
/*
|
||||
do nothing
|
||||
*/
|
||||
fprintf (stderr, "\nWARNING: GUILE was not compiled with SCM_DEBUG_CELL_ACCESSES");
|
||||
scm_remember_upto_here (flag);
|
||||
return SCM_UNSPECIFIED;
|
||||
}
|
||||
#undef FUNC_NAME
|
||||
|
||||
#endif /* SCM_DEBUG_CELL_ACCESSES == 1 */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue