Searched refs:gs (Results 1 – 4 of 4) sorted by relevance
/scripts/kconfig/ |
D | util.c | 83 struct gstr gs; in str_new() local 84 gs.s = malloc(sizeof(char) * 64); in str_new() 85 gs.len = 64; in str_new() 86 gs.max_width = 0; in str_new() 87 strcpy(gs.s, "\0"); in str_new() 88 return gs; in str_new() 94 struct gstr gs; in str_assign() local 95 gs.s = strdup(s); in str_assign() 96 gs.len = strlen(s) + 1; in str_assign() 97 gs.max_width = 0; in str_assign() [all …]
|
D | lkc.h | 131 void str_free(struct gstr *gs); 132 void str_append(struct gstr *gs, const char *s); 133 void str_printf(struct gstr *gs, const char *fmt, ...); 134 const char *str_get(struct gstr *gs);
|
D | expr.c | 1137 struct gstr *gs = (struct gstr*)data; in expr_print_gstr_helper() local 1143 if (gs->max_width) { in expr_print_gstr_helper() 1145 const char *last_cr = strrchr(gs->s, '\n'); in expr_print_gstr_helper() 1152 last_cr = gs->s; in expr_print_gstr_helper() 1154 last_line_length = strlen(gs->s) - (last_cr - gs->s); in expr_print_gstr_helper() 1156 if ((last_line_length + extra_length) > gs->max_width) in expr_print_gstr_helper() 1157 str_append(gs, "\\\n"); in expr_print_gstr_helper() 1160 str_append(gs, str); in expr_print_gstr_helper() 1162 str_printf(gs, " [=%s]", sym_str); in expr_print_gstr_helper() 1165 void expr_gstr_print(struct expr *e, struct gstr *gs) in expr_gstr_print() argument [all …]
|
D | expr.h | 209 void expr_gstr_print(struct expr *e, struct gstr *gs);
|