nano.c:global_init(), window_init(), and handle_sigwinch().
New macro MIN_EDITOR_COLS replaces MIN_FILL_LENGTH
(David Benbennick).
+ - Change ngettext macro to P_(), to avoid a clash with the reserved C
+ __ identifier (Jordi).
- files.c:
cwd_tab_completion()
- Memory leak fix (David Benbennick).
#ifndef NANO_SMALL
if (fileformat == 2)
- statusbar(__("Read %d line (Converted from Mac format)",
+ statusbar(P_("Read %d line (Converted from Mac format)",
"Read %d lines (Converted from Mac format)",
num_lines), num_lines);
else if (fileformat == 1)
- statusbar(__("Read %d line (Converted from DOS format)",
+ statusbar(P_("Read %d line (Converted from DOS format)",
"Read %d lines (Converted from DOS format)",
num_lines), num_lines);
else
#endif
- statusbar(__("Read %d line", "Read %d lines", num_lines),
+ statusbar(P_("Read %d line", "Read %d lines", num_lines),
num_lines);
totlines += num_lines;
/* Update originalfilestat to reference the file as it is now. */
stat(filename, &originalfilestat);
#endif
- statusbar(__("Wrote %d line", "Wrote %d lines", lineswritten),
+ statusbar(P_("Wrote %d line", "Wrote %d lines", lineswritten),
lineswritten);
UNSET(MODIFIED);
titlebar(NULL);
# include <libintl.h>
# endif
# define _(string) gettext(string)
-# define __(singular, plural, number) ngettext(singular, plural, number)
+# define P_(singular, plural, number) ngettext(singular, plural, number)
#else
# define _(string) (string)
-# define __(singular, plural, number) (number == 1 ? singular : plural)
+# define P_(singular, plural, number) (number == 1 ? singular : plural)
#endif
#include <sys/types.h>
edit_update(current, CENTER);
if (numreplaced >= 0)
- statusbar(__("Replaced %d occurrence", "Replaced %d occurrences",
+ statusbar(P_("Replaced %d occurrence", "Replaced %d occurrences",
numreplaced), numreplaced);
else
not_found_msg(prevanswer);