From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Aur=C3=A9lien_Aptel?= Newsgroups: gmane.emacs.devel Subject: Re: Dynamic loading progress Date: Sun, 4 Oct 2015 23:12:16 +0200 Message-ID: References: <87bnl1vmqf.fsf@lifelogs.com> <87vbj8tow4.fsf@lifelogs.com> <87r3twtagf.fsf@lifelogs.com> <85siebl7ws.fsf@stephe-leake.org> <85a90ilwmm.fsf@stephe-leake.org> <83386a6f7z.fsf@gnu.org> <85h9upjz7v.fsf@stephe-leake.org> <83wq3k3kl4.fsf@gnu.org> <85bnkwil1c.fsf@stephe-leake.org> <83pp9cwky8.fsf@gnu.org> <85a90ggf2d.fsf@stephe-leake.org> <54E0A40F.5080603@dancol.org> <83sie7un20.fsf@gnu.org> <54E0D181.2080802@dancol.org> <83r3trulse.fsf@gnu.org> <54E0D7E0.305@87.69.4.28> <83h9unukbg.fsf@gnu.org> <54E0DEF8.7020901@dancol> <83egpruiyp.fsf@gnu.org> <54E0FF93.2000104@dancol.org> <5610ED13.1010406@dancol.org> <56117F37.9060808@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1443993168 4126 80.91.229.3 (4 Oct 2015 21:12:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 4 Oct 2015 21:12:48 +0000 (UTC) Cc: Eli Zaretskii , Daniel Colascione , Stephen Leake , Emacs development discussions To: Philipp Stephani Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 04 23:12:47 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZiqaK-00036i-Ss for ged-emacs-devel@m.gmane.org; Sun, 04 Oct 2015 23:12:45 +0200 Original-Received: from localhost ([::1]:43670 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZiqaK-0007h5-65 for ged-emacs-devel@m.gmane.org; Sun, 04 Oct 2015 17:12:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35930) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZiqZw-0007dN-JE for emacs-devel@gnu.org; Sun, 04 Oct 2015 17:12:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZiqZv-0002xj-NC for emacs-devel@gnu.org; Sun, 04 Oct 2015 17:12:20 -0400 Original-Received: from mail-io0-x22c.google.com ([2607:f8b0:4001:c06::22c]:33701) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZiqZu-0002x4-6a; Sun, 04 Oct 2015 17:12:18 -0400 Original-Received: by iofh134 with SMTP id h134so167573411iof.0; Sun, 04 Oct 2015 14:12:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=KWiStalAy3CY0QM7Bzpm4eRSD2e2+Qn0BDvoGHN9e84=; b=H+dT4veNrwMel2BVG5hTUt7vNBpsVXd1PhItw1XLetw50AqdNhyR1cPeqQQ9dsrpAY bWGBTNy4omnaJSdU4l8gJNRlaoGUOqUsFEBJAP/f4x6rlcOamhRha1fzQTNsf30fcOn0 FsFb3qaKMZ6UfH2ByIPgGaR9gd6ipX1tkRaYO1mz4UtVb33OjYQS0CdMnc1pEyPbhQt3 DencUi0d8blYvSykkiR/VZGvBk9B5kxQw+3o6IyOo/mRi/7ShsH2XhIYEg2l6XvyzlgS 3xQEAcKNJlPPtk/MiAjGqKIaJeSPPLEXmYZI4aqU5eW4A2+djh7MOOoTCUxJLKpSBEk/ m4sg== X-Received: by 10.107.136.88 with SMTP id k85mr23883061iod.135.1443993137195; Sun, 04 Oct 2015 14:12:17 -0700 (PDT) Original-Received: by 10.36.146.193 with HTTP; Sun, 4 Oct 2015 14:12:16 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: kY85DVsdo6-XhV17vHIUeBhoqGc X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c06::22c X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:190906 Archived-At: On Sun, Oct 4, 2015 at 9:47 PM, Philipp Stephani wr= ote: > 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 Date: Sun Oct 4 23:04:56 2015 +0200 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 @@ /* Current environement */ typedef struct emacs_env_25 emacs_env; -typedef void* emacs_value; +typedef struct emacs_value_tag* emacs_value; enum emacs_type { EMACS_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 @@ #include "dynlib.h" #include "coding.h" +struct emacs_value_tag { Lisp_Object v; }; + void syms_of_module (void); static struct emacs_runtime* module_get_runtime (void); static emacs_env* module_get_environment (struct emacs_runtime *ert);