Lines Matching refs:lib

212 	Dsslib_t*	lib;
257 for (lib = dsslib(NiL, DSS_VERBOSE, disc); lib; lib = (Dsslib_t*)dtnext(state->cx->libraries, lib))
258 if (lib->meth && optout(sp, lib->meth->name, NiL, NiL, NiL, lib->meth->description, NiL))
392 * generate lib info usage
396 dssoptlib(Sfio_t* sp, Dsslib_t* lib, const char* usage, Dssdisc_t* disc)
402 if (lib->libraries)
403 for (i = 0; lib->libraries[i]; i++)
404 if (!dssload(lib->libraries[i], disc))
406 if (dssadd(lib, disc))
408 if (lib->description && (s = strchr(lib->description, '[')))
410 sfprintf(sp, "%s[+PLUGIN?%s - %-.*s]\n", s, lib->name, s - lib->description, lib->description);
413 sfprintf(sp, "[-1ls5Pp0?][+PLUGIN?%s - %s]\n", lib->name, lib->description ? lib->description : "support library");
416 if (lib->meth)
419 state->meth = lib->meth;
421 sfprintf(sp, "[+DESCRIPTION?The %s method handles %s.]\n", lib->meth->name, lib->meth->description);
422 sfprintf(sp, "{\fformats and variables\f}\n\n--method=%s[,option...]\n\n", lib->meth->name);
424 if (lib->types)
427 for (i = 0; lib->types[i].name; i++)
428 if (opttype(sp, &lib->types[i], 1))
432 if (lib->maps)
435 for (i = 0; lib->maps[i]; i++)
436 if (optout(sp, lib->maps[i]->name, NiL, NiL, NiL, lib->maps[i]->description, NiL))
438 else if (optmap(sp, lib->maps[i]))
442 if (lib->callouts)
445 for (i = 0; lib->callouts[i].callout; i++)
446 if (optout(sp, cxopname(lib->callouts[i].op.code, lib->callouts[i].op.type1, lib->callouts[i].op.type2), NiL, NiL, NiL, lib->callouts[i].description, NiL))
450 if (lib->recodes)
453 for (i = 0; lib->recodes[i].recode; i++)
454 if (optout(sp, cxopname(lib->recodes[i].op.code, lib->recodes[i].op.type1, lib->recodes[i].op.type2), NiL, NiL, NiL, lib->recodes[i].description, NiL))
458 if (lib->queries)
461 for (i = 0; lib->queries[i].name; i++)
462 if (optout(sp, lib->queries[i].name, NiL, NiL, NiL, lib->queries[i].description, lib->queries[i].method ? sfprints("Limited to methods matching \"%s\".", lib->queries[i].method) : (char*)0))
466 if (lib->constraints)
469 for (i = 0; lib->constraints[i].name; i++)
470 if (optout(sp, lib->constraints[i].name, NiL, NiL, NiL, lib->constraints[i].description, NiL))
474 if (lib->edits)
477 for (i = 0; lib->edits[i].name; i++)
478 if (optout(sp, lib->edits[i].name, NiL, NiL, NiL, lib->edits[i].description, NiL))
482 if (lib->functions)
485 for (i = 0; lib->functions[i].name; i++)
486 if (optout(sp, lib->functions[i].name, lib->functions[i].prototype, NiL, (lib->functions[i].header.flags & CX_INITIALIZED) ? lib->functions[i].type->name : (char*)lib->functions[i].type, lib->functions[i].description, NiL))