diff --git a/src/modules/spider/Makefile.in b/src/modules/spider/Makefile.in index d4eb6ccedabc82b1feb3bd797b1d2bfaee252743..0baa99c21c3f499fbfe289dd9909caa386116d27 100644 --- a/src/modules/spider/Makefile.in +++ b/src/modules/spider/Makefile.in @@ -3,8 +3,7 @@ VPATH=@srcdir@:@srcdir@/../..:../.. PREFLAGS=$(DEFINES) -I. -I$(SRCDIR) -I$(SRCDIR)/../.. -I../.. CFLAGS=$(PREFLAGS) $(OTHERFLAGS) -FILES=spider.o discdate.o stardate.o sdebug.o dumudp.o\ - streamed_parser.o accesseddb.o +FILES=spider.o discdate.o stardate.o dumudp.o streamed_parser.o accesseddb.o spider.a: $(FILES) -rm -f spider.a diff --git a/src/modules/spider/defs.h b/src/modules/spider/defs.h index f58b230dfb9f70edb73bf88c60dc7ed17cda92aa..888fa989fa0aef5e87cb3624764112decb582848 100644 --- a/src/modules/spider/defs.h +++ b/src/modules/spider/defs.h @@ -1,3 +1,2 @@ -extern void f__dump_obj_table(INT32 args); extern void f_discdate(INT32 argc); extern void f_stardate (INT32 args); diff --git a/src/modules/spider/sdebug.c b/src/modules/spider/sdebug.c deleted file mode 100644 index 97a06747e78e79f9a61e02d759a7c153a8a70f26..0000000000000000000000000000000000000000 --- a/src/modules/spider/sdebug.c +++ /dev/null @@ -1,51 +0,0 @@ -#include "stralloc.h" -#include "global.h" -#include "types.h" -#include "macros.h" -#include "object.h" -#include "constants.h" -#include "interpret.h" -#include "svalue.h" -#include "mapping.h" -#include "array.h" -#include "config.h" -#include "builtin_functions.h" -#include "program.h" - -void program_name(struct program *p) -{ - char *f; - p->refs++; - push_program(p); - APPLY_MASTER("program_name", 1); - if(sp[-1].type == T_STRING) - return; - pop_stack(); - f=(char *)(p->linenumbers+1); - - if(!p->linenumbers || !strlen(f)) - push_text("Unknown program"); - - push_text(f); -} - -void f__dump_obj_table(INT32 args) -{ - struct object *o; - int n=0; - pop_n_elems(args); - o=first_object; - while(o) - { - if(o->prog) - program_name(o->prog); - else - push_string(make_shared_binary_string("No program (Destructed?)",24)); - push_int(o->refs); - f_aggregate(2); - ++n; - o=o->next; - } - f_aggregate(n); -} -