Home
last modified time | relevance | path

Searched refs:gs (Results 1 – 6 of 6) sorted by relevance

/scripts/kconfig/
Dutil.c34 struct gstr gs; in str_new() local
35 gs.s = xmalloc(sizeof(char) * 64); in str_new()
36 gs.len = 64; in str_new()
37 gs.max_width = 0; in str_new()
38 strcpy(gs.s, "\0"); in str_new()
39 return gs; in str_new()
43 void str_free(struct gstr *gs) in str_free() argument
45 if (gs->s) in str_free()
46 free(gs->s); in str_free()
47 gs->s = NULL; in str_free()
[all …]
Dlkc.h76 void str_free(struct gstr *gs);
77 void str_append(struct gstr *gs, const char *s);
78 void str_printf(struct gstr *gs, const char *fmt, ...);
79 const char *str_get(struct gstr *gs);
Dexpr.c1242 struct gstr *gs = (struct gstr*)data; in expr_print_gstr_helper() local
1248 if (gs->max_width) { in expr_print_gstr_helper()
1250 const char *last_cr = strrchr(gs->s, '\n'); in expr_print_gstr_helper()
1257 last_cr = gs->s; in expr_print_gstr_helper()
1259 last_line_length = strlen(gs->s) - (last_cr - gs->s); in expr_print_gstr_helper()
1261 if ((last_line_length + extra_length) > gs->max_width) in expr_print_gstr_helper()
1262 str_append(gs, "\\\n"); in expr_print_gstr_helper()
1265 str_append(gs, str); in expr_print_gstr_helper()
1267 str_printf(gs, " [=%s]", sym_str); in expr_print_gstr_helper()
1270 void expr_gstr_print(struct expr *e, struct gstr *gs) in expr_gstr_print() argument
[all …]
Dexpr.h308 void expr_gstr_print(struct expr *e, struct gstr *gs);
309 void expr_gstr_print_revdep(struct expr *e, struct gstr *gs,
Dsymbol.c303 struct gstr gs = str_new(); in sym_warn_unmet_dep() local
305 str_printf(&gs, in sym_warn_unmet_dep()
308 str_printf(&gs, in sym_warn_unmet_dep()
311 expr_gstr_print(sym->dir_dep.expr, &gs); in sym_warn_unmet_dep()
312 str_printf(&gs, "\n"); in sym_warn_unmet_dep()
314 expr_gstr_print_revdep(sym->rev_dep.expr, &gs, yes, in sym_warn_unmet_dep()
316 expr_gstr_print_revdep(sym->rev_dep.expr, &gs, mod, in sym_warn_unmet_dep()
319 fputs(str_get(&gs), stderr); in sym_warn_unmet_dep()
/scripts/gcc-plugins/
Dgcc-common.h161 inline bool is_a_helper<const gassign *>::test(const_gimple gs) in test() argument
163 return gs->code == GIMPLE_ASSIGN; in test()
319 inline bool is_a_helper<const ggoto *>::test(const_gimple gs) in test() argument
321 return gs->code == GIMPLE_GOTO; in test()
326 inline bool is_a_helper<const greturn *>::test(const_gimple gs) in test() argument
328 return gs->code == GIMPLE_RETURN; in test()