cwd_tab_completion(), browser_init()
- Rename variable next to nextdir to avoid confusion. (DLR)
input_tab()
- - Since list is a bool, assign it FALSE instead of 0. (DLR)
+ - Since list is a bool, set it to FALSE instead of 0. (DLR)
- Add multibyte/wide character support, so that we don't end up
with a string that contains only part of a multibyte
character during tab completion. (DLR)
AC_PREREQ(2.54)
dnl Checks for programs.
+
AC_GNU_SOURCE
AC_PROG_CC
AC_PROG_LN_S
AC_SYS_LARGEFILE
dnl Internationalization macros.
+
AM_GNU_GETTEXT_VERSION(0.11.5)
AM_GNU_GETTEXT([external], [need-ngettext])
dnl Checks for header files.
+
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h getopt.h libintl.h limits.h regex.h termios.h wchar.h wctype.h)
AC_CHECK_HEADER(regex.h,
dnl Checks for typedefs, structures, and compiler characteristics.
dnl Checks for library functions.
-
AC_TYPE_SIGNAL
AC_FUNC_VPRINTF
AC_CHECK_FUNCS(getopt_long)
}
/* Return TRUE for a multibyte character found in a word (currently only
- * an alphanumeric or punctuation character, and the latter only if
+ * an alphanumeric or punctuation character, and only the latter if
* allow_punct is TRUE) and FALSE otherwise. */
bool is_word_mbchar(const char *c, bool allow_punct)
{
{
filestruct *fileptr = (filestruct *)nmalloc(sizeof(filestruct));
- /* Convert nulls to newlines. len is the string's real length
+ /* Convert nulls to newlines. buf_len is the string's real length
* here. */
unsunder(buf, buf_len);
#include <limits.h>
#endif
-/* Macros for the flags long. */
+/* Macros for flags. */
#define SET(bit) flags |= bit
#define UNSET(bit) flags &= ~bit
#define ISSET(bit) ((flags & bit) != 0)
extern char *homedir;
-/* Functions we want available. */
+/* The functions we want available. */
/* Public functions in chars.c. */
#ifndef HAVE_ISBLANK