continue;
#endif
- matches = (char **)nrealloc(matches, (*num_matches + 1) *
- sizeof(char *));
+ matches = (char **)nrealloc(matches,
+ (*num_matches + 1) * sizeof(char *));
matches[*num_matches] =
charalloc(strlen(userdata->pw_name) + 2);
sprintf(matches[*num_matches], "~%s", userdata->pw_name);
free(tmp2);
#endif
- matches = (char **)nrealloc(matches, (*num_matches + 1) *
- sizeof(char *));
+ matches = (char **)nrealloc(matches,
+ (*num_matches + 1) * sizeof(char *));
matches[*num_matches] = mallocstrcpy(NULL, nextdir->d_name);
++(*num_matches);
}
dollars);
void nanoget_repaint(const char *buf, const char *inputbuf, size_t x);
int nanogetstr(bool allow_tabs, const char *buf, const char *curranswer,
-#ifndef NANO_SMALL
+#if !defined(NANO_SMALL) && defined(ENABLE_NANORC)
filestruct *history_list,
#endif
const shortcut *s
#endif
);
int statusq(bool allow_tabs, const shortcut *s, const char *curranswer,
-#ifndef NANO_SMALL
+#if !defined(NANO_SMALL) && defined(ENABLE_NANORC)
filestruct *history_list,
#endif
const char *msg, ...);
/* Get the input from the keyboard; this should only be called from
* statusq(). */
int nanogetstr(bool allow_tabs, const char *buf, const char *curranswer,
-#ifndef NANO_SMALL
+#if !defined(NANO_SMALL) && defined(ENABLE_NANORC)
filestruct *history_list,
#endif
const shortcut *s
bool tabbed = FALSE;
/* Whether we've pressed Tab. */
#endif
-#ifndef NANO_SMALL
+#if !defined(NANO_SMALL) && defined(ENABLE_NANORC)
char *history = NULL;
/* The current history string. */
char *magichistory = NULL;
#endif
break;
case NANO_PREVLINE_KEY:
-#ifndef NANO_SMALL
+#if !defined(NANO_SMALL) && defined(ENABLE_NANORC)
if (history_list != NULL) {
/* If we're scrolling up at the bottom of the
* history list, answer isn't blank, and
* statusbar prompt. */
finished = FALSE;
}
-#endif
+#endif /* !NANO_SMALL && ENABLE_NANORC */
break;
case NANO_NEXTLINE_KEY:
-#ifndef NANO_SMALL
+#if !defined(NANO_SMALL) && defined(ENABLE_NANORC)
if (history_list != NULL) {
/* Get the newer search from the history list and
* save it in answer. If there is no newer search,
statusbar_x = strlen(answer);
}
}
-#endif
+#endif /* !NANO_SMALL && ENABLE_NANORC */
break;
}
wrefresh(bottomwin);
}
-#ifndef NANO_SMALL
+#if !defined(NANO_SMALL) && defined(ENABLE_NANORC)
/* Free magichistory if we need to. */
if (magichistory != NULL)
free(magichistory);
* The allow_tabs parameter indicates whether we should allow tabs to be
* interpreted. */
int statusq(bool allow_tabs, const shortcut *s, const char *curranswer,
-#ifndef NANO_SMALL
+#if !defined(NANO_SMALL) && defined(ENABLE_NANORC)
filestruct *history_list,
#endif
const char *msg, ...)