- Add macro charset(), a wrapper that calls memset(). (DLR)
- Readd #defines for the isblank() and iswblank() equivalents.
(DLR)
+- proto.h:
+ - Add missing NANO_SMALL and HAVE_REGEX_H #ifdefs around the
+ do_find_bracket() prototype. (DLR)
- rcfile.c:
color_to_int()
- Since colorname's being NULL is handled elsewhere now, assert
NANO_NO_KEY, NANO_NO_KEY, NOVIEW, do_full_justify);
#endif
-#if !defined(NANO_SMALL) && defined(HAVE_REGEX_H)
+#if defined(HAVE_REGEX_H) && !defined(NANO_SMALL)
sc_init_one(&main_list, NANO_NO_KEY, N_("Find Other Bracket"),
IFHELP(nano_bracket_msg, NANO_BRACKET_KEY), NANO_NO_KEY,
NANO_NO_KEY, VIEW, do_find_bracket);
#if defined(ENABLE_MULTIBUFFER) || !defined(DISABLE_SPELLER)
void do_gotopos(int line, size_t pos_x, int pos_y, size_t pos_pww);
#endif
-void do_find_bracket(void);
#ifndef NANO_SMALL
+#ifdef HAVE_REGEX_H
+void do_find_bracket(void);
+#endif
#ifdef ENABLE_NANORC
bool history_has_changed(void);
#endif
#ifndef DISABLE_TABCOMP
char *get_history_completion(filestruct **h, char *s, size_t len);
#endif
-#endif
+#endif /* !NANO_SMALL */
/* Public functions in utils.c. */
#ifdef HAVE_REGEX_H
}
#endif
-#if !defined(NANO_SMALL) && defined(HAVE_REGEX_H)
+#ifndef NANO_SMALL
+#ifdef HAVE_REGEX_H
void do_find_bracket(void)
{
const char *pos, *bracket_pat = "([{<>}])";
if (!regexp_set)
UNSET(USE_REGEXP);
}
-#endif
+#endif /* HAVE_REGEX_H */
-#ifndef NANO_SMALL
#ifdef ENABLE_NANORC
/* Indicate whether any of the history lists have changed. */
bool history_has_changed(void)
return s;
}
#endif
-#endif /* !NANO_SMALL && ENABLE_NANORC */
+#endif /* !NANO_SMALL */