Lines Matching refs:str
224 const char *str;
249 str = menu_get_prompt(menu);
253 "#\n", str);
257 " */\n", str);
289 str = sym_get_string_value(sym);
293 l = strcspn(str, "\"\\");
295 fwrite(str, l, 1, out);
296 fwrite(str, l, 1, out_h);
298 str += l;
299 while (*str == '\\' || *str == '"') {
300 fprintf(out, "\\%c", *str);
301 fprintf(out_h, "\\%c", *str);
302 str++;
304 } while (*str);
309 str = sym_get_string_value(sym);
310 if (str[0] != '0' || (str[1] != 'x' && str[1] != 'X')) {
311 fprintf(out, "%s=%s\n", sym->name, str);
312 fprintf(out_h, "#define __%s__ 0x%s\n", sym->name, str);
316 str = sym_get_string_value(sym);
317 fprintf(out, "%s=%s\n", sym->name, str);
318 fprintf(out_h, "#define __%s__ %s\n", sym->name, str);