pike.git / lib / modules / Tools.pmod / Standalone.pmod / autodoc_to_html.pike

version» Context lines:

pike.git/lib/modules/Tools.pmod/Standalone.pmod/autodoc_to_html.pike:1028:    {    // Hide the class path for methods.    attrs->class_path = "";    }    return;    case "constant":    case "inherit":    case "import":    case "typedef":    case "variable": +  case "directive":    // These don't have children.    attrs->class_path = path;    return;    }    foreach(n->get_children(), Node child)    {    resolve_class_paths(child, path, n);    }   }   
pike.git/lib/modules/Tools.pmod/Standalone.pmod/autodoc_to_html.pike:1101: Inside #if 0 and #if defined(DEBUG)
  #ifdef DEBUG    error( "Parent module is " + n->get_parent()->get_any_name() + ".\n" );   #else    return "";   #endif   }   #endif /* 0 */      string parse_not_doc(Node n) {    string ret = ""; -  int method, argument, variable, const, typedf; +  int method, argument, variable, const, typedf, cppdir;       if (!n) return "";       foreach(n->get_children(), Node c) {       if(c->get_node_type()!=XML_ELEMENT)    continue;       Node cc;    switch(c->get_any_name()) {
pike.git/lib/modules/Tools.pmod/Standalone.pmod/autodoc_to_html.pike:1227:    ret += "<font face='courier'> : " + "<font color='#F000F0'>" +    Parser.encode_html_entities(c->get_attributes()->name) +    "</font></font>";    }    break;       // We don't need import information.    case "import":    break;    +  case "directive": +  if(cppdir++) ret += "<br />\n"; +  ret += "<tt><font color='#006666'>" + c->get_attributes()->name + +  "</font></tt>"; +  break; +     default:    error( "Illegal element " + c->get_any_name() + " in !doc.\n" );    break;    }    }       return ret;   }      int foo;