Lines Matching refs:spec
2548 char spec[]; member
2553 static struct script_spec *script_spec__new(const char *spec, in script_spec__new() argument
2556 struct script_spec *s = malloc(sizeof(*s) + strlen(spec) + 1); in script_spec__new()
2559 strcpy(s->spec, spec); in script_spec__new()
2571 static struct script_spec *script_spec__find(const char *spec) in script_spec__find() argument
2576 if (strcasecmp(s->spec, spec) == 0) in script_spec__find()
2581 int script_spec_register(const char *spec, struct scripting_ops *ops) in script_spec_register() argument
2585 s = script_spec__find(spec); in script_spec_register()
2589 s = script_spec__new(spec, ops); in script_spec_register()
2598 static struct scripting_ops *script_spec__lookup(const char *spec) in script_spec__lookup() argument
2600 struct script_spec *s = script_spec__find(spec); in script_spec__lookup()
2616 fprintf(stderr, " %-42s [%s]\n", s->spec, s->ops->name); in list_available_languages()
2624 char spec[PATH_MAX]; in parse_scriptname() local
2640 strncpy(spec, str, len); in parse_scriptname()
2641 spec[len] = '\0'; in parse_scriptname()
2642 scripting_ops = script_spec__lookup(spec); in parse_scriptname()