9 char ui_helpline__current[512];
11 static void nop_helpline__pop(void)
15 static void nop_helpline__push(const char *msg __maybe_unused)
19 static struct ui_helpline default_helpline_fns = {
20 .pop = nop_helpline__pop,
21 .push = nop_helpline__push,
24 struct ui_helpline *helpline_fns = &default_helpline_fns;
26 void ui_helpline__pop(void)
31 void ui_helpline__push(const char *msg)
33 helpline_fns->push(msg);
36 void ui_helpline__vpush(const char *fmt, va_list ap)
40 if (vasprintf(&s, fmt, ap) < 0)
41 vfprintf(stderr, fmt, ap);
48 void ui_helpline__fpush(const char *fmt, ...)
53 ui_helpline__vpush(fmt, ap);
57 void ui_helpline__puts(const char *msg)
60 ui_helpline__push(msg);