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:1162: Inside #if 0
  #else    return "";   #endif   }   #endif /* 0 */   string class_name = "";         string parse_not_doc(Node n) {    string ret = ""; -  int method, argument, variable, const, typedf, cppdir; +  int method, argument, variable, num_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:1420:    if (c->get_first_element("type")) {    ret += parse_type(get_first_element(c->get_first_element("type")),    "variable") + " " +    c->get_attributes()->class_path + "<b><font color='#F000F0'>" +    c->get_attributes()->name + "</font></b></tt>";    } else    error("Malformed variable element.\n" + c->html_of_node() + "\n");    break;       case "constant": -  if(const++) ret += "<br />\n"; +  if(num_const++) ret += "<br />\n";    ret += "<tt>";    cc = c->get_first_element("modifiers");    if(cc) ret += map(cc->get_children(), parse_type)*" " + " ";    ret += "constant ";    if (Node type = c->get_first_element ("type"))    ret += parse_type (get_first_element (type), "constant") + " ";    ret += c->get_attributes()->class_path;    ret += "<font color='#F000F0'>" + c->get_attributes()->name + "</font>";    cc = c->get_first_element("typevalue");    if(cc) ret += " = " + parse_type(get_first_element(cc));