Branch: Tag:

2012-02-05

2012-02-05 15:28:29 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Tools.Standalone.autodoc_to_html: Improved robustness.

95:    return res + ">";   }    - Node get_first_element(Node n) { + Node get_first_element(Node n) + { +  if (!n) return UNDEFINED;    foreach(n->get_children(), Node c)    if(c->get_node_type()==XML_ELEMENT) {    if(c->get_any_name()!="source-position")
103:    else    position->update(c);    } -  error( "Node had no element child.\n" ); +  return UNDEFINED;   }      int section, subsection;
1108:    string ret = "";    int method, argument, variable, const, typedf;    +  if (!n) return ""; +     foreach(n->get_children(), Node c) {       if(c->get_node_type()!=XML_ELEMENT)
1125:       case "method":    if(method++) ret += "<br />\n"; - #ifdef DEBUG + #if 0    if(!c->get_first_element("returntype")) -  continue; -  // error( "No returntype element in method element.\n" ); +  error( "No returntype element in method element.\n" );   #endif    switch( c->get_attributes()->name )    {