no tagless functions, so there is no need to check.
* src/prompt.c (do_prompt, get_prompt_string): Don't pass the
menu, just set it earlier.
+ * src/prompt.c (get_prompt_string): Group the arguments better.
2014-06-30 Mark Majeres <mark@engine12.com>
* src/cut.c, src/global.c, src/nano.c: Rename 'cut_till_end' to
const sc *get_prompt_string(int *actual, bool allow_tabs,
#ifndef DISABLE_TABCOMP
bool allow_files,
+ bool *list,
#endif
const char *curranswer,
#ifndef DISABLE_HISTORIES
filestruct **history_list,
#endif
- void (*refresh_func)(void)
-#ifndef DISABLE_TABCOMP
- , bool *list
-#endif
- )
+ void (*refresh_func)(void))
{
int kbinput = ERR;
bool ran_func, finished;
s = get_prompt_string(&retval, allow_tabs,
#ifndef DISABLE_TABCOMP
allow_files,
+ &list,
#endif
curranswer,
#ifndef DISABLE_HISTORIES
history_list,
#endif
- refresh_func
-#ifndef DISABLE_TABCOMP
- , &list
-#endif
- );
+ refresh_func);
free(prompt);
prompt = NULL;
const sc *get_prompt_string(int *value, bool allow_tabs,
#ifndef DISABLE_TABCOMP
bool allow_files,
+ bool *list,
#endif
const char *curranswer,
#ifndef DISABLE_HISTORIES
filestruct **history_list,
#endif
- void (*refresh_func)(void)
-#ifndef DISABLE_TABCOMP
- , bool *list
-#endif
- );
+ void (*refresh_func)(void));
int do_prompt(bool allow_tabs,
#ifndef DISABLE_TABCOMP
bool allow_files,