* 4. Add a FROB line for it in xemacs_debug_loop.
*/
-Lisp_Object Qredisplay, Qbuffers, Qfaces;
-Lisp_Object Qwindows, Qframes, Qdevices;
+static Lisp_Object Qredisplay, Qbuffers, Qfaces, Qwindows, Qframes, Qdevices;
struct debug_classes active_debug_classes;
static Lisp_Object
xemacs_debug_loop (enum debug_loop op, Lisp_Object class, Lisp_Object type)
{
- int flag = ((op == ADD) ? 1 : 0);
+ int flag = (op == ADD) ? 1 : 0;
Lisp_Object retval = Qnil;
-#define FROB(item)\
+#define FROB(item) \
if (op == LIST || op == ACTIVE || op == INIT || EQ (class, Q##item)) \
{ \
if (op == ADD || op == DELETE || op == INIT) \
else if (op == SETTYPE) \
active_debug_classes.types_of_##item = XINT (type); \
else if (op == TYPE) \
- retval = make_int (active_debug_classes.types_of_##item), Qnil; \
+ retval = make_int (active_debug_classes.types_of_##item); \
if (op == INIT) active_debug_classes.types_of_##item = VALBITS; \
}
defsymbol (&Qwindows, "windows");
defsymbol (&Qframes, "frames");
defsymbol (&Qdevices, "devices");
- /* defsymbol (&Qbyte_code, "byte-code"); in bytecode.c */
DEFSUBR (Fadd_debug_class_to_check);
DEFSUBR (Fdelete_debug_class_to_check);
}
void
-vars_of_debug (void)
+reinit_vars_of_debug (void)
{
/* If you need to have any classes active early on in startup, then
the flags should be set here.
to emacs.c. */
xemacs_debug_loop (INIT, Qnil, Qnil);
}
+
+void
+vars_of_debug (void)
+{
+ reinit_vars_of_debug ();
+}