/* * Screen_RedrawHelpLine * */ static VALUE rb_ext_Screen_RedrawHelpLine(VALUE self) { newtRedrawHelpLine(); return Qnil; }
void newtPopHelpLine(void) { if (!currentHelpline) return; free(*currentHelpline); if (currentHelpline == helplineStack) currentHelpline = NULL; else currentHelpline--; newtRedrawHelpLine(); }
void newtPushHelpLine(const char * text) { if (!text) text = defaultHelpLine; if (currentHelpline) (*(++currentHelpline)) = strdup(text); else { currentHelpline = helplineStack; *currentHelpline = strdup(text); } newtRedrawHelpLine(); }
void newtPushHelpLine(const char * text) { if (currentHelpline && currentHelpline - helplineStack + 1 >= sizeof (helplineStack) / sizeof (char *)) return; if (!text) text = defaultHelpLine; if (currentHelpline) (*(++currentHelpline)) = strdup(text); else { currentHelpline = helplineStack; *currentHelpline = strdup(text); } newtRedrawHelpLine(); }