pike.git / src / post_modules / GTK2 / output / doc-pikeref.pike

version» Context lines:

pike.git/src/post_modules/GTK2/output/doc-pikeref.pike:96:       while( sscanf( what, "%s<dl>%s</dl>%s", a,b,c ) == 3 ) {    what = a + "@dl\n";    object p = Parser.XML.Tree.parse_input("<dl>"+b+"</dl>");    p = p->get_first_element("dl");    foreach(p->get_children(), object n) {    if(n->get_any_name()=="dt")    what += " @item " + (n->get_children()->render_xml()*"" - "\n") + "\n";    else if(n->get_any_name()=="dd")    what += " " + n->get_children()->render_xml()*"" + "\n"; -  else if(!sizeof(String.trim_all_whites(n->get_text()))) +  else if(sizeof(String.trim(n->get_text())))    werror("Warning: Discarding HTML subtree: %O\n", n->render_xml());    }    what += " @enddl\n" + c;    }       int table;    while( sscanf( what, "%s<table>%s</table>%s", a,b,c ) == 3 ) {    what = a + "@xml{<matrix>@}" + b + "@xml{</matrix>@}" + c;    table = 1;    }
pike.git/src/post_modules/GTK2/output/doc-pikeref.pike:176:    string mn="";    if(!nmn)    mn = module_name( cls )+".";    if( has_prefix( cls->name, "Gnome2." ) ) return mn+"Gnome2"+cls->name[7..];    if( has_prefix( cls->name, "GDK2." ) ) return mn+"Gdk"+cls->name[5..];    if( has_prefix( cls->name, "GTK2." ) ) return mn+cls->name[5..];    return mn+cls->name;   }       - protected string make_function_doc( Function f, Class c ) + protected string make_function_doc( GtkFunction f, Class c )   {    if( f->name == "_sprintf" || -  (f->name == "destroy" && (< 0, "" >)[f->doc] ) ) +  (f->name == "_destruct" && (< 0, "" >)[f->doc] ) )    return "";       string vtype;    string pike_type_name( Type t )    {    if( t->name == "void" )    return vtype;    if( parent->classes[ t->name ] )    return class_name(parent->classes[ t->name ]);    return t->doc_type();
pike.git/src/post_modules/GTK2/output/doc-pikeref.pike:232:    res += t+" "+f->arg_names[i];    }    }    }    if( j ) res += " ";    res += ");";    res += "\n";    imgfile=imgfilename(c->name+"_"+f->name);    if( !f->doc || !sizeof( f->doc ) )    { -  werror("Warning:"+f->file+":"+f->line+": " +  werror("Warning: "+f->file+":"+f->line+": "    +c->name+"->"+f->name+" not documented\n" );    res += "//!\n";    }    else    {    if(has_value(f->doc, "@"))    {    res += ("//" + (f->doc/"\n")[*])*"\n" + "\n";    }    else
pike.git/src/post_modules/GTK2/output/doc-pikeref.pike:256:    return res;   }      protected void output_class( Class cls, int lvl )   {    if( mixed e = catch {    string result = "";    array functions = ({});    imgfile=imgfilename(cls->name);    if( cls->name!="_global" && (!cls->doc || !sizeof( cls->doc )) ) -  werror("Warning:"+cls->file+":"+cls->line+": " +  werror("Warning: "+cls->file+":"+cls->line+": "    +cls->name+" not documented\n" );       result = make_pike_refdoc( cls->doc, cls->signals );       foreach( cls->inherits, Class i )    result += "\ninherit "+i->doc_name()+";\n";    result += "\n";       foreach( indices( cls->functions ), string fun )    functions += ({({ cls->functions[ fun ]->pike_name(),