tweaks: exclude a global flagging variable when it is not needed
parent
e90b7cf4aa
commit
4170454837
|
@ -239,9 +239,10 @@ char *homedir = NULL;
|
||||||
/* The user's home directory, from $HOME or /etc/passwd. */
|
/* The user's home directory, from $HOME or /etc/passwd. */
|
||||||
char *statedir = NULL;
|
char *statedir = NULL;
|
||||||
/* The directory for nano's history files. */
|
/* The directory for nano's history files. */
|
||||||
|
#ifdef ENABLE_NANORC
|
||||||
char *rcfile_with_errors = NULL;
|
char *rcfile_with_errors = NULL;
|
||||||
/* The first nanorc file, if any, that produced warnings. */
|
/* The first nanorc file, if any, that produced warnings. */
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Return the number of entries in the shortcut list for a given menu. */
|
/* Return the number of entries in the shortcut list for a given menu. */
|
||||||
size_t length_of_list(int menu)
|
size_t length_of_list(int menu)
|
||||||
|
|
|
@ -2661,8 +2661,10 @@ int main(int argc, char **argv)
|
||||||
|
|
||||||
prepare_for_display();
|
prepare_for_display();
|
||||||
|
|
||||||
|
#ifdef ENABLE_NANORC
|
||||||
if (rcfile_with_errors != NULL)
|
if (rcfile_with_errors != NULL)
|
||||||
statusline(ALERT, _("Mistakes in '%s'"), rcfile_with_errors);
|
statusline(ALERT, _("Mistakes in '%s'"), rcfile_with_errors);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef ENABLE_HELP
|
#ifdef ENABLE_HELP
|
||||||
if (*openfile->filename == '\0' && openfile->totsize == 0 &&
|
if (*openfile->filename == '\0' && openfile->totsize == 0 &&
|
||||||
|
|
|
@ -178,7 +178,9 @@ extern int interface_color_pair[NUMBER_OF_ELEMENTS];
|
||||||
|
|
||||||
extern char *homedir;
|
extern char *homedir;
|
||||||
extern char *statedir;
|
extern char *statedir;
|
||||||
|
#ifdef ENABLE_NANORC
|
||||||
extern char *rcfile_with_errors;
|
extern char *rcfile_with_errors;
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef void (*functionptrtype)(void);
|
typedef void (*functionptrtype)(void);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue