branch: externals/jinx
commit 6e4e27894bdb6f773ea9c1ab1099c8b60320e9c2
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>
jinx-mod: Drop Enchant version check
We try to work with whatever we get.
---
jinx-mod.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/jinx-mod.c b/jinx-mod.c
index d08c86fb05..cd0b099c80 100644
--- a/jinx-mod.c
+++ b/jinx-mod.c
@@ -17,7 +17,6 @@ along with GNU Emacs. If not, see
<https://www.gnu.org/licenses/>. */
#include <emacs-module.h>
#include <enchant.h>
-#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -181,13 +180,6 @@ int emacs_module_init(struct emacs_runtime *runtime) {
emacs_env* env = runtime->get_environment(runtime);
if ((size_t)env->size < sizeof (*env))
return 2; // Require Emacs binary compatibility
- int v0, v1, v2;
- if (sscanf(enchant_get_version(), "%d.%d.%d", &v0, &v1, &v2) != 3 ||
- v0 * 10000 + v1 * 100 + v2 < 20301)
- env->funcall(env, env->intern(env, "message"), 1,
- (emacs_value[]){
- jinx_str(env, "Jinx recommends Enchant 2.3.1 or
newer")
- });
Qt = env->make_global_ref(env, env->intern(env, "t"));
Qnil = env->make_global_ref(env, env->intern(env, "nil"));
Qcons = env->make_global_ref(env, env->intern(env, "cons"));