Lines Matching refs:spec
806 char spec[0]; member
811 static struct script_spec *script_spec__new(const char *spec, in script_spec__new() argument
814 struct script_spec *s = malloc(sizeof(*s) + strlen(spec) + 1); in script_spec__new()
817 strcpy(s->spec, spec); in script_spec__new()
829 static struct script_spec *script_spec__find(const char *spec) in script_spec__find() argument
834 if (strcasecmp(s->spec, spec) == 0) in script_spec__find()
839 static struct script_spec *script_spec__findnew(const char *spec, in script_spec__findnew() argument
842 struct script_spec *s = script_spec__find(spec); in script_spec__findnew()
847 s = script_spec__new(spec, ops); in script_spec__findnew()
856 int script_spec_register(const char *spec, struct scripting_ops *ops) in script_spec_register() argument
860 s = script_spec__find(spec); in script_spec_register()
864 s = script_spec__findnew(spec, ops); in script_spec_register()
871 static struct scripting_ops *script_spec__lookup(const char *spec) in script_spec__lookup() argument
873 struct script_spec *s = script_spec__find(spec); in script_spec__lookup()
889 fprintf(stderr, " %-42s [%s]\n", s->spec, s->ops->name); in list_available_languages()
897 char spec[PATH_MAX]; in parse_scriptname() local
913 strncpy(spec, str, len); in parse_scriptname()
914 spec[len] = '\0'; in parse_scriptname()
915 scripting_ops = script_spec__lookup(spec); in parse_scriptname()