Branch: Tag:

2000-02-10

2000-02-10 07:13:28 by Martin Nilsson <mani@lysator.liu.se>

Replaced register_module with constants.

Rev: server/modules/scripting/fpscript.pike:1.8
Rev: server/modules/scripting/pikescript.pike:1.57
Rev: server/modules/scripting/piketag.pike:2.3
Rev: server/modules/tags/awizard.pike:1.15
Rev: server/modules/tags/indirect_href.pike:1.11
Rev: server/modules/tags/killframe.pike:1.26
Rev: server/modules/tags/lisp.pike:1.15
Rev: server/modules/tags/obox.pike:1.21
Rev: server/modules/tags/sed.pike:1.5
Rev: server/modules/tags/tablify.pike:1.42
Rev: server/modules/tags/wizard_tag.pike:1.23

1: Inside #if constant(Languages)
  #if constant(Languages)   #define error(X) throw( ({ (X), backtrace() }) ) - constant cvs_version = "$Id: lisp.pike,v 1.14 2000/01/23 21:41:26 nilsson Exp $"; + constant cvs_version = "$Id: lisp.pike,v 1.15 2000/02/10 07:13:28 nilsson Exp $";      #include <module.h>   inherit "module";      constant thread_safe=1; - #endif // constant(Languages) +     - array register_module() - { - #if constant(Languages) -  return ({ MODULE_PARSER, "Lisp tag module", -  "This module defines a new tag, " -  "&lt;lisp [context=foo]&gt;&lt;/lisp&gt;", 0, ({}) }); - #endif // constant(Languages) - } + constant module_type = MODULE_PARSER; + constant module_name = "Lisp tag module"; + constant module_doc = "This module defines a new tag, " +  "&lt;lisp [context=foo]&gt;&lt;/lisp&gt;";    - #if constant(Languages) +    void create()   {    defvar("max-eval-time", 10000, "Max eval time", TYPE_INT);
223: Inside #if constant(Languages)
  string tag_lisp(string t, mapping m, string c,    object id, object f, mapping defines)   { -  if(m->help) -  return register_module()[2]; -  +    // NOCACHE();       string context = (query("enable_context") && m->context)