Lines Matching defs:feature

73      * Remove feature:  alternative to "-X:NAME" used if
90 * "feature" is the name of the feature, minus any type prefix.
98 * 1: failed to add [type] `[feature]'
99 * 2: [feature]: no such [type]
100 * 3: [feature]: [type] is already defined
102 typedef int (*autofeaturefn_t)(const char *module, const char *feature,
398 * Support for the various feature types.
2021 "module `%s' has no such feature: `%s': autoload cancelled",
2080 "module `%s' has no feature matching: `%s'" :
2081 "module `%s' has no such feature: `%s'",
2169 * "*enablesstr" is NULL if the caller is not feature-aware;
2311 * module does not support the features passed (even if the feature
3133 "module `%s' has no feature matching: `%s'" :
3134 "module `%s' has no such feature: `%s'",
3218 * The thinking is that marking a feature for
3224 * autoload when the feature is enabled, which used
3246 * Generic feature support.
3325 * Any failure in adding a requested feature is an
3376 * Ensure module "modname" is providing feature with "prefix"
3377 * and "feature" (e.g. "b:", "limit"). If feature is NULL,
3379 * with the pre-feature autoloading behaviour).
3382 * loading of an autoloadable feature.
3385 * setting the feature. However, this isn't actually all
3387 * it could be a failure to autoload a different feature
3394 ensurefeature(const char *modname, const char *prefix, const char *feature)
3399 if (!feature)
3401 f = dyncat(prefix, feature);
3435 char *fnam, *typnam, *feature;
3447 feature = zhalloc(strlen(fnam) + 3);
3448 sprintf(feature, "%c:%s", fchar, fnam);
3450 feature = *features;
3451 if (*feature == '-') {
3453 feature++;
3456 if (*feature == '+')
3457 feature++;
3460 if (!*feature || feature[1] != ':') {
3461 zwarnnam(cmdnam, "bad format for autoloadable feature: `%s'",
3462 feature);
3466 fnam = feature + 2;
3467 fchar = feature[0];
3497 zwarnnam(cmdnam, "bad autoloadable feature type: `%c'",
3519 linknodebystring(m->autoloads, feature))
3539 * it does in fact provide the necessary feature.
3542 if (!strcmp(*ptr, feature))
3545 zwarnnam(cmdnam, "module `%s' has no such feature: `%s'",
3546 m->node.nam, feature);
3551 * If the feature is already provided by the module, there's
3558 * right thing when the feature is eventually used.
3563 zaddlinknode(m->autoloads, ztrdup(feature));
3568 int cmp = strcmp(feature, (char *)getdata(ln));
3575 ztrdup(feature));
3581 zaddlinknode(m->autoloads, ztrdup(feature));
3585 if ((ln = linknodebystring(m->autoloads, feature)))