From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Dynamic loading progress Date: Thu, 15 Oct 2015 09:00:35 +0200 Message-ID: References: <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: text/plain X-Trace: ger.gmane.org 1444892555 30978 80.91.229.3 (15 Oct 2015 07:02:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Oct 2015 07:02:35 +0000 (UTC) Cc: aurelien.aptel+emacs@gmail.com, Philipp Stephani , 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 Thu Oct 15 09:02:29 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 1ZmcYW-0006YT-7t for ged-emacs-devel@m.gmane.org; Thu, 15 Oct 2015 09:02:28 +0200 Original-Received: from localhost ([::1]:46078 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmcYV-0006F2-Dr for ged-emacs-devel@m.gmane.org; Thu, 15 Oct 2015 03:02:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47579) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmcWs-0005uB-Ri for emacs-devel@gnu.org; Thu, 15 Oct 2015 03:00:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZmcWr-0000DG-UQ for emacs-devel@gnu.org; Thu, 15 Oct 2015 03:00:46 -0400 Original-Received: from mx2.suse.de ([195.135.220.15]:48805) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmcWm-0000AE-8E; Thu, 15 Oct 2015 03:00:40 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Original-Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 1C0B7AB1A; Thu, 15 Oct 2015 07:00:34 +0000 (UTC) X-Yow: NEWARK has been REZONED!! DES MOINES has been REZONED!! In-Reply-To: <83pp0gx355.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 15 Oct 2015 05:43:34 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 195.135.220.15 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:191618 Archived-At: Eli Zaretskii writes: >> 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. You can only use them for pointers that are known to fit in the range of Lisp_Int, ie. all tag bits clear. This is true for all lisp object pointers (obviously), but not for other pointers. For boxing arbitrary pointers we have Lisp_Save_Value. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."