fix compile errors with --disable-deprecated.
+2003-04-20 Dirk Herrmann <D.Herrmann@tu-bs.de>
+
+ * libguile.h: Removed uses of DEBUG_EXTENSIONS to fix compile
+ errors with --disable-deprecated.
+
2003-04-07 Rob Browning <rlb@defaultvalue.org>
* pre-inst-guile-env.in: new script -- can be used to run commands
#include "libguile/version.h"
#include "libguile/vports.h"
#include "libguile/weaks.h"
-#ifdef DEBUG_EXTENSIONS
#include "libguile/backtrace.h"
#include "libguile/debug.h"
#include "libguile/stacks.h"
-#endif
#include "libguile/threads.h"
#include "libguile/inline.h"
#include "libguile/deprecated.h"
+2003-04-20 Dirk Herrmann <D.Herrmann@tu-bs.de>
+
+ * continuations.c, continuations.h, eval.c, eval.h, extensions.c,
+ gsubr.c, guile.c, init.c, read.c, root.c, root.h, stackchk.h,
+ throw.c: Removed uses of DEBUG_EXTENSIONS and DYNAMIC_LINKING to
+ fix compile errors with --disable-deprecated.
+
2003-04-17 Rob Browning <rlb@defaultvalue.org>
* numbers.c (scm_integer_expt): fix case where we were declaring
#include <string.h>
+#include "libguile/debug.h"
#include "libguile/root.h"
#include "libguile/stackchk.h"
#include "libguile/smob.h"
#include "libguile/dynwind.h"
#include "libguile/values.h"
-#ifdef DEBUG_EXTENSIONS
-#include "libguile/debug.h"
-#endif
-
#include "libguile/validate.h"
#include "libguile/continuations.h"
continuation->throw_value = SCM_EOL;
continuation->base = src = rootcont->base;
continuation->seq = rootcont->seq;
-#ifdef DEBUG_EXTENSIONS
continuation->dframe = scm_last_debug_frame;
-#endif
SCM_NEWSMOB (cont, scm_tc16_continuation, continuation);
SCM_EXIT_A_SECTION;
memcpy (dst, continuation->stack,
sizeof (SCM_STACKITEM) * continuation->num_stack_items);
-#ifdef DEBUG_EXTENSIONS
scm_last_debug_frame = continuation->dframe;
-#endif
continuation->throw_value = val;
#ifdef __ia64__
size_t num_stack_items; /* size of the saved stack. */
unsigned long seq; /* dynamic root identifier. */
-#ifdef DEBUG_EXTENSIONS
/* the most recently created debug frame on the live stack, before
it was saved. */
struct scm_t_debug_frame *dframe;
-#endif
+
SCM_STACKITEM stack[1]; /* copied stack of size num_stack_items. */
} scm_t_contregs;
SCM scm_f_apply;
-#ifdef DEBUG_EXTENSIONS
SCM_GLOBAL_SYMBOL (scm_sym_enter_frame, "enter-frame");
SCM_GLOBAL_SYMBOL (scm_sym_apply_frame, "apply-frame");
SCM_GLOBAL_SYMBOL (scm_sym_exit_frame, "exit-frame");
SCM_GLOBAL_SYMBOL (scm_sym_trace, "trace");
-#endif
/* Check that the body denoted by XORIG is valid and rewrite it into
unmemocopy (SCM x, SCM env)
{
SCM ls, z;
-#ifdef DEBUG_EXTENSIONS
SCM p;
-#endif
if (!SCM_CONSP (x))
return x;
-#ifdef DEBUG_EXTENSIONS
p = scm_whash_lookup (scm_source_whash, x);
-#endif
switch (SCM_ITAG7 (SCM_CAR (x)))
{
case SCM_BIT8(SCM_IM_AND):
x = SCM_CDR (x);
}
SCM_SETCDR (z, x);
-#ifdef DEBUG_EXTENSIONS
if (!SCM_FALSEP (p))
scm_whash_insert (scm_source_whash, ls, p);
-#endif
return ls;
}
SCM
SCM_APPLY (SCM proc, SCM arg1, SCM args)
{
-#ifdef DEBUG_EXTENSIONS
#ifdef DEVAL
scm_t_debug_frame debug;
scm_t_debug_info debug_vect_body;
#else
if (SCM_DEBUGGINGP)
return scm_dapply (proc, arg1, args);
-#endif
#endif
SCM_ASRTGO (SCM_NIMP (proc), badproc);
/* At this point, scm_deval and scm_dapply are generated.
*/
-#ifdef DEBUG_EXTENSIONS
# define DEVAL
# include "eval.c"
-#endif
#define SCM_EVALIM(x, env) (SCM_ILOCP (x) \
? *scm_ilookup ((x), env) \
: SCM_EVALIM2(x))
-#ifdef DEBUG_EXTENSIONS
#define SCM_XEVAL(x, env) (SCM_IMP (x) \
? SCM_EVALIM2(x) \
: (*scm_ceval_ptr) ((x), (env)))
: (SCM_SYMBOLP (SCM_CAR (x)) \
? *scm_lookupcar (x, env, 1) \
: (*scm_ceval_ptr) (SCM_CAR (x), env)))
-#else
-#define SCM_XEVAL(x, env) (SCM_IMP (x) \
- ? SCM_EVALIM2(x) \
- : scm_ceval ((x), (env)))
-#define SCM_XEVALCAR(x, env) EVALCAR (x, env)
-#endif /* DEBUG_EXTENSIONS */
typedef SCM (*scm_t_trampoline_0) (SCM proc);
typedef SCM (*scm_t_trampoline_1) (SCM proc, SCM arg1);
}
}
-#if defined (DYNAMIC_LINKING)
/* Dynamically link the library. */
-
scm_dynamic_call (init, scm_dynamic_link (lib));
-#endif
}
void
SCM_SET_GSUBR_PROC (cclo, subr);
SCM_SET_GSUBR_TYPE (cclo,
SCM_MAKINUM (SCM_GSUBR_MAKTYPE (req, opt, rst)));
-#ifdef DEBUG_EXTENSIONS
if (SCM_REC_PROCNAMES_P)
scm_set_procedure_property_x (cclo, scm_sym_name, sym);
-#endif
if (define)
scm_define (sym, cclo);
return cclo;
#ifdef HAVE_CONFIG_H
#include <libguile/scmconfig.h>
#endif
-#ifdef DYNAMIC_LINKING
#include <guile-ltdl.h>
-#endif
#ifdef HAVE_WINSOCK2_H
#include <winsock2.h>
int
main (int argc, char **argv)
{
-#if defined (DYNAMIC_LINKING) && !defined (__MINGW32__)
+#if !defined (__MINGW32__)
/* libtool automagically inserts this variable into your executable... */
extern const scm_lt_dlsymlist lt_preloaded_symbols[];
scm_lt_dlpreload_default (lt_preloaded_symbols);
#include "libguile/boolean.h"
#include "libguile/chars.h"
#include "libguile/continuations.h"
-#ifdef DEBUG_EXTENSIONS
#include "libguile/debug.h"
-#endif
#ifdef GUILE_DEBUG_MALLOC
#include "libguile/debug-malloc.h"
#endif
scm_dynwinds = SCM_EOL;
SCM_DYNENV (scm_rootcont) = SCM_EOL;
SCM_THROW_VALUE (scm_rootcont) = SCM_EOL;
-#ifdef DEBUG_EXTENSIONS
SCM_DFRAME (scm_rootcont) = scm_last_debug_frame = 0;
-#endif
SCM_BASE (scm_rootcont) = base;
}
scm_init_socket ();
#endif
scm_init_sort ();
-#ifdef DEBUG_EXTENSIONS
scm_init_srcprop ();
-#endif
scm_init_stackchk ();
scm_init_strings ();
scm_init_struct (); /* Requires strings */
scm_init_vports ();
scm_init_eval ();
scm_init_evalext ();
-#ifdef DEBUG_EXTENSIONS
scm_init_debug (); /* Requires macro smobs */
-#endif
scm_init_random ();
#if SCM_HAVE_ARRAYS
scm_init_ramap ();
scm_init_simpos ();
scm_init_load_path ();
scm_init_standard_ports (); /* Requires fports */
-#ifdef DYNAMIC_LINKING
scm_init_dynamic_linking ();
-#endif
#if SCM_ENABLE_ELISP
scm_init_lang ();
#endif /* SCM_ENABLE_ELISP */
/* recsexpr is used when recording expressions
* constructed by read:sharp.
*/
-#ifndef DEBUG_EXTENSIONS
-#define recsexpr(obj, line, column, filename) (obj)
-#else
static SCM
recsexpr (SCM obj, long line, int column, SCM filename)
{
return obj;
}
}
-#endif
/* Consume an SCSH-style block comment. Assume that we've already
read the initial `#!', and eat characters until we get a
contregs->base = stack_start;
contregs->seq = ++n_dynamic_roots;
contregs->throw_value = SCM_BOOL_F;
-#ifdef DEBUG_EXTENSIONS
contregs->dframe = 0;
-#endif
SCM_NEWSMOB (new_rootcont, scm_tc16_continuation, contregs);
}
old_rootcont = scm_rootcont;
*/
old_winds = scm_dynwinds;
scm_dowinds (SCM_EOL, scm_ilength (scm_dynwinds));
-#ifdef DEBUG_EXTENSIONS
SCM_DFRAME (old_rootcont) = scm_last_debug_frame;
scm_last_debug_frame = 0;
-#endif
{
my_handler_data.run_handler = 0;
scm_dowinds (old_winds, - scm_ilength (old_winds));
SCM_REDEFER_INTS;
-#ifdef DEBUG_EXTENSIONS
scm_last_debug_frame = SCM_DFRAME (old_rootcont);
-#endif
scm_rootcont = old_rootcont;
SCM_REALLOW_INTS;
#define scm_protects scm_sys_protects[10]
#define scm_properties_whash scm_sys_protects[11]
#define scm_gc_registered_roots scm_sys_protects[12]
-#ifdef DEBUG_EXTENSIONS
#define scm_source_whash scm_sys_protects[13]
#define SCM_NUM_PROTECTS 14
-#else
-#define SCM_NUM_PROTECTS 13
-#endif
SCM_API SCM scm_sys_protects[];
SCM rootcont;
SCM dynwinds;
-#ifdef DEBUG_EXTENSIONS
+
/* It is very inefficient to have this variable in the root state. */
scm_t_debug_frame *last_debug_frame;
-#endif
SCM progargs; /* vestigial */
SCM exitval; /* vestigial */
#include "libguile/__scm.h"
#include "libguile/continuations.h"
-#ifdef DEBUG_EXTENSIONS
#include "libguile/debug.h"
-#endif
+
\f
-/* With debug extensions we have the possibility to use the debug options
- * to disable stack checking.
+/* With debug options we have the possibility to disable stack checking.
*/
-#ifdef DEBUG_EXTENSIONS
#define SCM_STACK_CHECKING_P SCM_STACK_LIMIT
-#else
-/* *fixme* This option should be settable also without debug extensions. */
-#define SCM_STACK_LIMIT 100000
-#define SCM_STACK_CHECKING_P 1
-#endif
#ifdef STACK_CHECKING
# if SCM_STACK_GROWS_UP
#include "libguile/eq.h"
#include "libguile/dynwind.h"
#include "libguile/backtrace.h"
-#ifdef DEBUG_EXTENSIONS
#include "libguile/debug.h"
-#endif
#include "libguile/continuations.h"
#include "libguile/stackchk.h"
#include "libguile/stacks.h"
#define JBJMPBUF(OBJ) ((jmp_buf *) SCM_CELL_WORD_1 (OBJ))
#define SETJBJMPBUF(x, v) (SCM_SET_CELL_WORD_1 ((x), (v)))
-#ifdef DEBUG_EXTENSIONS
#define SCM_JBDFRAME(x) ((scm_t_debug_frame *) SCM_CELL_WORD_2 (x))
#define SCM_SETJBDFRAME(x, v) (SCM_SET_CELL_WORD_2 ((x), (v)))
-#endif
static int
jmpbuffer_print (SCM exp, SCM port, scm_print_state *pstate SCM_UNUSED)
SCM answer;
SCM_REDEFER_INTS;
{
-#ifdef DEBUG_EXTENSIONS
SCM_NEWSMOB2 (answer, tc16_jmpbuffer, 0, 0);
-#else
- SCM_NEWSMOB (answer, tc16_jmpbuffer, 0);
-#endif
SETJBJMPBUF(answer, (jmp_buf *)0);
DEACTIVATEJB(answer);
}
answer = SCM_EOL;
scm_dynwinds = scm_acons (tag, jmpbuf, scm_dynwinds);
SETJBJMPBUF(jmpbuf, &jbr.buf);
-#ifdef DEBUG_EXTENSIONS
SCM_SETJBDFRAME(jmpbuf, scm_last_debug_frame);
-#endif
if (setjmp (jbr.buf))
{
SCM throw_tag;
jbr = (struct jmp_buf_and_retval *)JBJMPBUF (jmpbuf);
jbr->throw_tag = key;
jbr->retval = args;
-#ifdef DEBUG_EXTENSIONS
scm_last_debug_frame = SCM_JBDFRAME (jmpbuf);
-#endif
longjmp (*JBJMPBUF (jmpbuf), 1);
}