From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philipp Stephani
On Sun, Oct 4, 2015 at 9:47= PM, Philipp Stephani <p.stephani2@gmail.com> wrote:
> Aur=C3=A9lien, is that something you agree with and could implement?
I'm not sure I understood what you wanted.. I've commited this, but= it
assumes Lisp_Object are the same size as pointers...
commit 4c2813950d14fa2348e30ee94a4f3b022263e36d
Author: Aur=C3=A9lien Aptel <aurelien.aptel@gmail.com>
Date:=C2=A0 =C2=A0Sun Oct 4 23:04:56 2015 +0200
=C2=A0 =C2=A0 use opaque struct emacs_value_tag instead of void* for emacs_= value.
diff --git a/src/emacs_module.h b/src/emacs_module.h
index c5ec347..b055547 100644
--- a/src/emacs_module.h
+++ b/src/emacs_module.h
@@ -27,7 +27,7 @@
=C2=A0/* Current environement */
=C2=A0typedef struct emacs_env_25 emacs_env;
-typedef void* emacs_value;
+typedef struct emacs_value_tag* emacs_value;
=C2=A0enum emacs_type {
=C2=A0 =C2=A0EMACS_FIXNUM,
diff --git a/src/module.c b/src/module.c
index 9bbb832..ab058bb 100644
--- a/src/module.c
+++ b/src/module.c
@@ -24,6 +24,8 @@
=C2=A0#include "dynlib.h"
=C2=A0#include "coding.h"
+struct emacs_value_tag { Lisp_Object v; };
+
=C2=A0void syms_of_module (void);
=C2=A0static struct emacs_runtime* module_get_runtime (void);
=C2=A0static emacs_env* module_get_environment (struct emacs_runtime *ert);=