Lines Matching +defs:key +defs:value
74 while (keywordlist[i].key != NULL) {
75 errlog(STATUS, "\t%s\n", keywordlist[i].key);
147 * value to the back-end translator to process. The following
160 char key[BUFSIZ], *value = NULL, *p = NULL;
213 p = realloc(value, sizeof (char)*(strlen(buf2)+1));
217 "value: %d\n", errno);
219 value = p;
220 split(buf2, key, value);
221 ki = interesting_keyword(keywordlist, key);
226 retval = xlator_start_if(meta_info, ki, value);
245 value, T_info->ti_archtoken, spec_fp);
259 T_info, value);
273 "interface %s\n", value);
286 retval = xlator_end_if(meta_info, value);
295 key);
300 ki, value);
324 * interesting_keyword(char **keywordlist, const char *key) {
325 * returns the token associated with key if key is found in keywordlist
326 * returns XLATOR_KW_NOTFOUND if key is NOT found in keywordlist
333 interesting_keyword(xlator_keyword_t *keywordlist, const char *key)
337 if (strcasecmp(key, "data") == 0) {
340 if (strcasecmp(key, "function") == 0) {
344 if (strcasecmp(key, "end") == 0)
347 while (keywordlist[i].key != NULL) {
348 if (strcasecmp(keywordlist[i].key, key) == 0)
424 * split(const char *line, char *key, char *value);
425 * splits the line into keyword (key) and value pair
428 split(const char *line, char *key, char *value)
438 /* copy keyword from line into key */
440 *key++ = *p++;
442 *key = '\0';
448 (void) strcpy(value, p);
453 * check4extends(char *filename, char *value, int arch, FILE *fp)
455 * returns 1 if value is of the form "data|function name extends"
464 check4extends(const char *filename, const char *value, int arch, FILE *fp)
471 split(value, fun, extends);
535 "arch keyword with no value");