From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.devel Subject: Re: Dynamic loading progress Date: Thu, 15 Oct 2015 23:07:41 +0000 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> <837fn127aj.fsf@gnu.org> <83pp0gx355.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e013c6aba8c4e9a05222cbf11 X-Trace: ger.gmane.org 1444950499 17835 80.91.229.3 (15 Oct 2015 23:08:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Oct 2015 23:08:19 +0000 (UTC) Cc: aurelien.aptel+emacs@gmail.com, dancol@dancol.org, stephen_leake@stephe-leake.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 16 01:08:14 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 1Zmrd1-00034e-VH for ged-emacs-devel@m.gmane.org; Fri, 16 Oct 2015 01:08:08 +0200 Original-Received: from localhost ([::1]:50070 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zmrd1-0001v9-0O for ged-emacs-devel@m.gmane.org; Thu, 15 Oct 2015 19:08:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41138) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zmrcp-0001ux-IC for emacs-devel@gnu.org; Thu, 15 Oct 2015 19:07:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zmrco-00041E-GR for emacs-devel@gnu.org; Thu, 15 Oct 2015 19:07:55 -0400 Original-Received: from mail-lf0-x234.google.com ([2a00:1450:4010:c07::234]:34895) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zmrcm-00040f-9s; Thu, 15 Oct 2015 19:07:52 -0400 Original-Received: by lffy185 with SMTP id y185so54079627lff.2; Thu, 15 Oct 2015 16:07:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-type; bh=CW57uWIGHMr+V4TYy4c9uovkBStQWjLBKMaVRq20BKs=; b=ebRtB8FeKbNpEvBt/rZXwGQtmK81hw/o74CTzso8Ncg+L+2EOnSY+unzsMABGYhfsh u0HB+xSAgUyN9/jEtWUSw4X3a8+prLmEendhQhxcW1o+24H1Kt3ShQz6GL4Qt4EoqLRp qKtLSZ8XjJccaQAdhyRiYT9ew+XTBJiUrD4PII6xEg5lD8F3adE/f/bRGHp7nI9NrZ6r 5hAQhUr/j2sIcRTIWCYyd3GMm4JDy5jAjZ/0xscWHIyT0S5JsxnLzzyNwlmedM6GQw5D 5QTu4v++U/q9lU2469mjpYZoYUsij5fc3iY0V4SBZdQ+t+0zzeqF0hO4VtUfee5hCWzK Dqcw== X-Received: by 10.194.157.102 with SMTP id wl6mr14582585wjb.79.1444950471100; Thu, 15 Oct 2015 16:07:51 -0700 (PDT) In-Reply-To: <83pp0gx355.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c07::234 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:191702 Archived-At: --089e013c6aba8c4e9a05222cbf11 Content-Type: text/plain; charset=UTF-8 Eli Zaretskii schrieb am Do., 15. Okt. 2015 um 04:44 Uhr: > > From: Philipp Stephani > > Date: Wed, 14 Oct 2015 22:28:01 +0000 > > Cc: dancol@dancol.org, stephen_leake@stephe-leake.org, > emacs-devel@gnu.org > > > > > I'm not sure I understood what you wanted.. I've commited this, > but it > > > assumes Lisp_Object are the same size as pointers... > > > > That assumption is false in an Emacs built --with-wide-int. > > > > If you need to wrap a pointer in a Lisp_Object, we have XIL and XLI > > macros for that. > > > > > > These are no-ops in my version of lisp.h: > > > > # define lisp_h_XLI(o) (o) > > # define lisp_h_XIL(i) (i) > > > > Unless I'm misunderstanding something, these macros can't be used to wrap > > pointers in the general case. > > We do that all the time, so I don't understand why you understand > that. Please elaborate. > > I got it backwards: we need to wrap Lisp_Objects in pointers, not the other way round. --089e013c6aba8c4e9a05222cbf11 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


Eli Za= retskii <eliz@gnu.org> schrieb am= Do., 15. Okt. 2015 um 04:44=C2=A0Uhr:
> From: Philipp Stephani <p.stephani2@gmail.com>
> Date: Wed, 14 Oct 2015 22:28:01 +0000
> Cc: dancol@danc= ol.org, stephen_leake@stephe-leake.org, emacs-devel@gnu.org
>
>=C2=A0 =C2=A0 =C2=A0> I'm not sure I understood what you wanted.= . I've commited this, but it
>=C2=A0 =C2=A0 =C2=A0> assumes Lisp_Object are the same size as point= ers...
>
>=C2=A0 =C2=A0 =C2=A0That assumption is false in an Emacs built --with-w= ide-int.
>
>=C2=A0 =C2=A0 =C2=A0If you need to wrap a pointer in a Lisp_Object, we = have XIL and XLI
>=C2=A0 =C2=A0 =C2=A0macros for that.
>
>
> These are no-ops in my version of lisp.h:
>
> # define lisp_h_XLI(o) (o)
> # define lisp_h_XIL(i) (i)
>
> Unless I'm misunderstanding something, these macros can't be u= sed to wrap
> pointers in the general case.

We do that all the time, so I don't understand why you understand
that.=C2=A0 Please elaborate.


I got it backwards: we need to wrap Li= sp_Objects in pointers, not the other way round.=C2=A0
--089e013c6aba8c4e9a05222cbf11--