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.h90 void str_free(struct gstr *gs);
91 void str_append(struct gstr *gs, const char *s);
92 void str_printf(struct gstr *gs, const char *fmt, ...);
93 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.h314 void expr_gstr_print(struct expr *e, struct gstr *gs);
315 void expr_gstr_print_revdep(struct expr *e, struct gstr *gs,
Dsymbol.c304 struct gstr gs = str_new(); in sym_warn_unmet_dep() local
306 str_printf(&gs, in sym_warn_unmet_dep()
309 str_printf(&gs, in sym_warn_unmet_dep()
312 expr_gstr_print(sym->dir_dep.expr, &gs); in sym_warn_unmet_dep()
313 str_printf(&gs, "\n"); in sym_warn_unmet_dep()
315 expr_gstr_print_revdep(sym->rev_dep.expr, &gs, yes, in sym_warn_unmet_dep()
317 expr_gstr_print_revdep(sym->rev_dep.expr, &gs, mod, in sym_warn_unmet_dep()
320 fputs(str_get(&gs), stderr); in sym_warn_unmet_dep()
/scripts/gcc-plugins/
Dgcc-common.h385 static inline bool gimple_store_p(gimple gs) in gimple_store_p() argument
387 tree lhs = gimple_get_lhs(gs); in gimple_store_p()
699 inline bool is_a_helper<const gassign *>::test(const_gimple gs) in test() argument
701 return gs->code == GIMPLE_ASSIGN; in test()
858 inline bool is_a_helper<const ggoto *>::test(const_gimple gs) in test() argument
860 return gs->code == GIMPLE_GOTO; in test()
865 inline bool is_a_helper<const greturn *>::test(const_gimple gs) in test() argument
867 return gs->code == GIMPLE_RETURN; in test()