• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/tidy-15.15/tidy/console/

Lines Matching +defs:def +defs:pos

272 static tmbstr get_option_names( const CmdOptDesc* pos )
275 uint len = strlen(pos->name1);
276 if (pos->name2)
277 len += 2+strlen(pos->name2);
278 if (pos->name3)
279 len += 2+strlen(pos->name3);
282 strcpy(name, pos->name1);
283 if (pos->name2)
286 strcat(name, pos->name2);
288 if (pos->name3)
291 strcat(name, pos->name3);
345 const CmdOptDesc* pos = cmdopt_defs;
352 for( pos=cmdopt_defs; pos->name1; ++pos)
355 if (pos->cat != cat)
357 name = get_option_names( pos );
358 print2Columns( helpfmt, 19, 58, name, pos->desc );
377 const CmdOptDesc* pos = cmdopt_defs;
379 for( pos=cmdopt_defs; pos->name1; ++pos)
381 printf(" <option class=\"%s\">\n", cmdopt_catname[pos->cat].mnemonic );
382 print_xml_help_option_element("name", pos->name1);
383 print_xml_help_option_element("name", pos->name2);
384 print_xml_help_option_element("name", pos->name3);
385 print_xml_help_option_element("description", pos->desc);
386 if (pos->eqconfig)
387 print_xml_help_option_element("eqconfig", pos->eqconfig);
431 TidyIterator pos;
432 ctmbstr def;
437 pos = tidyOptGetPickList( topt );
438 while ( pos )
440 def = tidyOptGetNextPick( topt, &pos );
441 if (0==strcmp(def,"yes"))
474 ctmbstr def; /**< default */
492 d->def = NULL;
504 d->def =
518 d->def = sdef;
528 d->def = NULL;
535 d->def = tidyOptGetEncName( tdoc, optId );
536 if (!d->def)
537 d->def = "?";
548 d->def = tidyOptGetCurrPick( tdoc, optId );
556 d->def = tidyOptGetCurrPick( tdoc, optId );
569 d->def = d->tempdefs;
577 d->def = tidyOptGetValue( tdoc, optId );
599 TidyIterator pos = tidyGetOptionList( tdoc );
602 while ( pos )
604 TidyOption topt = tidyGetNextOption( tdoc, &pos );
634 TidyIterator pos = tidyGetOptionList( tdoc );
636 while ( pos )
638 TidyOption topt = tidyGetNextOption( tdoc, &pos );
649 TidyIterator pos = tidyOptGetPickList( topt );
651 ctmbstr def;
652 while ( pos )
658 def = tidyOptGetNextPick( topt, &pos );
659 printf("%s", def);
691 TidyIterator pos = tidyOptGetDocLinksList(tdoc, topt);
692 while( pos )
694 optLinked = tidyOptGetNextDocLinks(tdoc, &pos );
708 if (d->def)
709 printf(" <default>%s</default>\n",d->def);
738 TidyIterator pos;
740 ctmbstr def;
744 pos = tidyOptGetPickList( topt );
746 while ( pos )
752 def = tidyOptGetNextPick( topt, &pos );
753 len += strlen(def);
757 pos = tidyOptGetPickList( topt );
759 while ( pos )
765 def = tidyOptGetNextPick( topt, &pos );
766 strcat(val, def);
839 TidyIterator pos = tidyOptGetDeclTagList( tdoc );
840 while ( pos )
842 d->def = tidyOptGetNextDeclTag(tdoc, optId, &pos);
843 if ( pos )
846 printf( valfmt, d->name, d->type, ro, d->def );
848 printf( fmt, d->name, d->type, d->def );
856 d->def = tidyOptGetCurrPick( tdoc, optId );
861 if ( *d->name || *d->type || (d->def && *d->def) )
863 if ( ! d->def )
864 d->def = "";
866 printf( valfmt, d->name, d->type, ro, d->def );
868 printf( fmt, d->name, d->type, d->def );