Branch: Tag:

1997-02-27

1997-02-27 08:00:06 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

module system remade..

Rev: lib/master.pike:1.31
Rev: src/Makefile.in:1.15
Rev: src/module.c:1.4
Rev: src/modules/Makefile.in:1.7
Rev: src/modules/dynamic_module_makefile.in:1.4
Rev: src/modules/static_module_makefile.in:1.3

43:    for(e=0;e<NELEM(module_list);e++)    {    struct program *p; -  struct object *o; +     struct pike_string *s;    start_new_program();    module_list[e].init();    p=end_program();    -  o=clone(p,0); -  free_program(p); -  +     push_text(module_list[e].name); -  push_object(o); +  push_program(p);    mapping_insert(m, sp-2, sp-1);    pop_n_elems(2);    }