Lines Matching refs:spec
996 char spec[0]; member
1001 static struct script_spec *script_spec__new(const char *spec, in script_spec__new() argument
1004 struct script_spec *s = malloc(sizeof(*s) + strlen(spec) + 1); in script_spec__new()
1007 strcpy(s->spec, spec); in script_spec__new()
1019 static struct script_spec *script_spec__find(const char *spec) in script_spec__find() argument
1024 if (strcasecmp(s->spec, spec) == 0) in script_spec__find()
1029 static struct script_spec *script_spec__findnew(const char *spec, in script_spec__findnew() argument
1032 struct script_spec *s = script_spec__find(spec); in script_spec__findnew()
1037 s = script_spec__new(spec, ops); in script_spec__findnew()
1046 int script_spec_register(const char *spec, struct scripting_ops *ops) in script_spec_register() argument
1050 s = script_spec__find(spec); in script_spec_register()
1054 s = script_spec__findnew(spec, ops); in script_spec_register()
1061 static struct scripting_ops *script_spec__lookup(const char *spec) in script_spec__lookup() argument
1063 struct script_spec *s = script_spec__find(spec); in script_spec__lookup()
1079 fprintf(stderr, " %-42s [%s]\n", s->spec, s->ops->name); in list_available_languages()
1087 char spec[PATH_MAX]; in parse_scriptname() local
1103 strncpy(spec, str, len); in parse_scriptname()
1104 spec[len] = '\0'; in parse_scriptname()
1105 scripting_ops = script_spec__lookup(spec); in parse_scriptname()