d081d481f0
Changes from 0.60.6.1 to 0.60.7 (July 29, 2019) Add partial support for recognizing the Unicode apostrophe (’) in words. In particular Aspell will accept the Unicode apostrophe when the language uses an ISO Latin charset that doesn’t already have a Unicode apostrophe. For now, Aspell will still use the ASCII version in suggestions. Detect when a dictionary compiled on a 32-bit machine is used on a 64-bit one (and vise versa), as due to an oversight, compiled dictionaries depend on more than the endianness. Also added a compile time option to remove this dependency, but at the cost of breaking compatibility with already compiled dictionaries on 64-bit systems. Fix a bug which caused Aspell to crash when passing in a null string to almost any of the C API functions. This should not happen if the size is also zero as the pointer should never be derefrenced. Fix a bug that caused Aspell to crash with a SEGFAULT when built with mingw-w64. In addition to outputting a warning when building with NDEBUG defined, also include NDEBUG in the version string. Various compile fixes for newer version of Gcc and Clang. Fix VPATH builds. Use utf-8 encoding for manual instead of iso-8859-1. Other minor updates and bug fixes. Patch provided by Iku Iwasa in PR pkg/54548
69 lines
1.7 KiB
Text
69 lines
1.7 KiB
Text
$NetBSD: patch-ac,v 1.8 2019/09/15 06:53:36 maya Exp $
|
|
|
|
--- prog/check_funs.cpp.orig 2011-07-04 09:17:27.000000000 +0000
|
|
+++ prog/check_funs.cpp
|
|
@@ -28,6 +28,12 @@
|
|
|
|
#include <signal.h>
|
|
|
|
+#ifdef HAVE_OLD_SIGNAL
|
|
+#define SIGNALARG2 (void (*)(...))
|
|
+#else
|
|
+#define SIGNALARG2 /* empty, no change */
|
|
+#endif
|
|
+
|
|
#include "asc_ctype.hpp"
|
|
#include "check_funs.hpp"
|
|
#include "convert.hpp"
|
|
@@ -174,8 +180,8 @@ static void suspend_handler(int) {
|
|
|
|
static void continue_handler(int) {
|
|
restore_state();
|
|
- signal(SIGTSTP, suspend_handler);
|
|
- signal(SIGCONT, continue_handler),
|
|
+ signal(SIGTSTP, SIGNALARG2 suspend_handler);
|
|
+ signal(SIGCONT, SIGNALARG2 continue_handler),
|
|
last_signal = 0;
|
|
}
|
|
|
|
@@ -191,7 +197,7 @@ static void resize() {
|
|
|
|
static void suspend() {
|
|
save_state();
|
|
- signal(SIGTSTP, SIG_DFL);
|
|
+ signal(SIGTSTP, SIGNALARG2 SIG_DFL);
|
|
raise(SIGTSTP);
|
|
last_signal = 0;
|
|
}
|
|
@@ -200,7 +206,7 @@ static inline void handle_last_signal()
|
|
switch (last_signal) {
|
|
case SIGWINCH:
|
|
resize();
|
|
- signal(SIGWINCH, resize_handler);
|
|
+ signal(SIGWINCH, SIGNALARG2 resize_handler);
|
|
break;
|
|
case SIGTSTP:
|
|
suspend();
|
|
@@ -216,7 +222,8 @@ static void layout_screen() {
|
|
choice_w = 0;
|
|
nonl();
|
|
noecho();
|
|
- halfdelay(1);
|
|
+ cbreak();
|
|
+ timeout(100);
|
|
keypad(stdscr, true);
|
|
clear();
|
|
int height, width;
|
|
@@ -272,9 +279,9 @@ void begin_check() {
|
|
}
|
|
}
|
|
if (use_curses) {
|
|
- signal(SIGWINCH, resize_handler);
|
|
- signal(SIGTSTP, suspend_handler);
|
|
- signal(SIGCONT, continue_handler);
|
|
+ signal(SIGWINCH, SIGNALARG2 resize_handler);
|
|
+ signal(SIGTSTP, SIGNALARG2 suspend_handler);
|
|
+ signal(SIGCONT, SIGNALARG2 continue_handler);
|
|
}
|
|
#endif
|
|
if (use_curses) {
|