openfilestruct *open_files = NULL; /* The list of open files */
#endif
+#if !defined(NANO_SMALL) && defined(ENABLE_NANORC)
+char *whitespace = NULL; /* Characters used when displaying
+ the first characters of tabs and
+ spaces. */
+#endif
+
#ifndef DISABLE_JUSTIFY
char *punct = NULL; /* Closing punctuation that can end
sentences. */
#ifndef NANO_SMALL
char *backup_dir = NULL; /* Backup directory. */
-#ifdef ENABLE_NANORC
-char *whitespace = NULL; /* Characters used when displaying
- the first characters of tabs and
- spaces. */
-#endif
#endif
int resetstatuspos; /* Hack for resetting the status bar
* create the new wrap line. Finally, we clean up. */
/* Step 1, finding where to wrap. We are going to add a new-line
- * after a white-space character. In this step, we set wrap_loc as the
+ * after a whitespace character. In this step, we set wrap_loc as the
* location of this replacement.
*
* Where should we break the line? We need the last "legal wrap point"
extern int search_offscreen;
extern int currslen;
+#if !defined(NANO_SMALL) && defined(ENABLE_NANORC)
+extern char *whitespace;
+#endif
+
#ifndef DISABLE_JUSTIFY
extern char *punct;
extern char *brackets;
#ifndef NANO_SMALL
extern char *backup_dir;
-#ifdef ENABLE_NANORC
-extern char *whitespace;
-#endif
#endif
extern WINDOW *topwin, *edit, *bottomwin;
#ifndef DISABLE_WRAPJUSTIFY
|| !strcasecmp(rcopts[i].name, "fill")
#endif
+#ifndef NANO_SMALL
+ || !strcasecmp(rcopts[i].name, "whitespace")
+#endif
#ifndef DISABLE_JUSTIFY
|| !strcasecmp(rcopts[i].name, "punct")
|| !strcasecmp(rcopts[i].name, "brackets")
#endif
#ifndef NANO_SMALL
|| !strcasecmp(rcopts[i].name, "backupdir")
- || !strcasecmp(rcopts[i].name, "whitespace")
#endif
#ifndef DISABLE_SPELLER
|| !strcasecmp(rcopts[i].name, "speller")
wrap_at = j;
} else
#endif
+#ifndef NANO_SMALL
+ if (!strcasecmp(rcopts[i].name, "whitespace")) {
+ size_t ws_len;
+ whitespace = mallocstrcpy(NULL, option);
+ ws_len = strlen(whitespace);
+ if (ws_len != 2 || (ws_len == 2 && (is_cntrl_char(whitespace[0]) || is_cntrl_char(whitespace[1])))) {
+ rcfile_error(_("Two non-control characters required"));
+ free(whitespace);
+ whitespace = NULL;
+ } else
+ SET(WHITESPACE_DISPLAY);
+ } else
+#endif
#ifndef DISABLE_JUSTIFY
if (!strcasecmp(rcopts[i].name, "punct")) {
punct = mallocstrcpy(NULL, option);
if (!strcasecmp(rcopts[i].name, "backupdir"))
backup_dir = mallocstrcpy(NULL, option);
else
-
- if (!strcasecmp(rcopts[i].name, "whitespace")) {
- size_t ws_len;
- whitespace = mallocstrcpy(NULL, option);
- ws_len = strlen(whitespace);
- if (ws_len != 2 || (ws_len == 2 && (is_cntrl_char(whitespace[0]) || is_cntrl_char(whitespace[1])))) {
- rcfile_error(_("Two non-control characters required"));
- free(whitespace);
- whitespace = NULL;
- } else
- SET(WHITESPACE_DISPLAY);
- } else
#endif
#ifndef DISABLE_SPELLER
if (!strcasecmp(rcopts[i].name, "speller"))