Branch: Tag:

2004-04-17

2004-04-17 15:18:52 by Marcus Comstedt <marcus@mc.pp.se>

Module system Conservative New World Order

* Dynamic modules are now objects again.

* Static modules are _also_ objects.

* Both dynamic and static modules support _module_value. _module_value
can be a constant, thus preventing the program from being automatically
cloned.

* Wrappers are _only_ generated for modules which have a module.pmod.in.
___ is only prepended to the name of the C module if a wrapper is used.

* _static_modules still contains programs. The indices can now contain
paths with slashes to indicate that the modules should not be at the
top level.

Rev: lib/master.pike.in:1.341
Rev: src/aclocal.m4:1.97
Rev: src/dumpmaster.pike:1.12
Rev: src/make_variables.in:1.16
Rev: src/modules/common_module_makefile.in:1.27
Rev: src/modules/dynamic_module_makefile.in:1.115
Rev: src/modules/static_module_makefile.in:1.97
Rev: src/program.c:1.562

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: program.c,v 1.561 2004/04/06 13:00:45 nilsson Exp $ + || $Id: program.c,v 1.562 2004/04/17 15:18:52 marcus Exp $   */      #include "global.h" - RCSID("$Id: program.c,v 1.561 2004/04/06 13:00:45 nilsson Exp $"); + RCSID("$Id: program.c,v 1.562 2004/04/17 15:18:52 marcus Exp $");   #include "program.h"   #include "object.h"   #include "dynamic_buffer.h"
1657:       switch(id) {    case PROG_PARSER_HTML_ID: -  module = "Parser.____parser"; +  module = "Parser._parser";    break;    case PROG_GMP_MPZ_ID: -  module = "___Gmp"; +  module = "Gmp";    break;    case PROG_MODULE_MIME_ID: -  module = "______MIME"; +  module = "___MIME";    break;    default:    if ((id >= 100) && (id <= 300)) { -  module = "___Image"; +  module = "Image";    } else if ((id >= 1000) && (id <= 2000)) {    module = "___GTK";    }