bool writehist(FILE *hist, historyheadtype *histhead)
{
- historytype *h;
+ historytype *p;
/* Write oldest history first. */
- for (h = histhead->tail; h->prev != NULL; h = h->prev) {
- size_t len = strlen(h->data);
+ for (p = histhead->tail; p->prev != NULL; p = p->prev) {
+ size_t p_len = strlen(p->data);
- sunder(h->data);
- if (fwrite(h->data, sizeof(char), len, hist) < len ||
+ sunder(p->data);
+ if (fwrite(p->data, sizeof(char), p_len, hist) < p_len ||
putc('\n', hist) == EOF)
return FALSE;
}
* statusq(). */
int nanogetstr(bool allow_tabs, const char *buf, const char *def,
#ifndef NANO_SMALL
- historyheadtype *history_list,
+ historyheadtype *history_list,
#endif
- const shortcut *s
+ const shortcut *s
#ifndef DISABLE_TABCOMP
- , bool *list
+ , bool *list
#endif
- )
+ )
{
int kbinput;
bool meta_key, func_key, s_or_t, ran_func, finished;