From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Antipov Newsgroups: gmane.emacs.devel Subject: Re: Proposal: immediate strings Date: Wed, 06 Jun 2012 10:14:06 +0400 Message-ID: <4FCEF52E.9090801@yandex.ru> References: <4FBB51E7.6080601@yandex.ru> <4FC472E6.5020005@yandex.ru> <4FC47CE1.6050901@cs.ucla.edu> <4FC4D025.9020608@yandex.ru> <4FC4EA10.702@cs.ucla.edu> <4FC739B4.30408@yandex.ru> <4FC79DAD.5040904@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1338963131 3040 80.91.229.3 (6 Jun 2012 06:12:11 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 6 Jun 2012 06:12:11 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 06 08:12:09 2012 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 1Sc9TK-0002rX-H4 for ged-emacs-devel@m.gmane.org; Wed, 06 Jun 2012 08:11:58 +0200 Original-Received: from localhost ([::1]:48273 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sc9TK-0008DQ-91 for ged-emacs-devel@m.gmane.org; Wed, 06 Jun 2012 02:11:58 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42885) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sc9TG-0008D8-Ua for emacs-devel@gnu.org; Wed, 06 Jun 2012 02:11:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sc9TF-0005Cs-8L for emacs-devel@gnu.org; Wed, 06 Jun 2012 02:11:54 -0400 Original-Received: from forward4.mail.yandex.net ([77.88.46.9]:39450) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sc9TE-0005CS-Q6 for emacs-devel@gnu.org; Wed, 06 Jun 2012 02:11:53 -0400 Original-Received: from smtp1.mail.yandex.net (smtp1.mail.yandex.net [77.88.46.101]) by forward4.mail.yandex.net (Yandex) with ESMTP id 562BF1BC1AC1; Wed, 6 Jun 2012 10:11:49 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1338963109; bh=0IhJb2BEjTGjgvLcRO+z2j5mQjwRW78t3kv2J4wqGqY=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=hS2nSModmaqEYEp2L5ZvRjgjA3E5WPHaond9/+j/11t/ssix3/AOX9K3/U4eUBj/6 epOYsIn3keXNCQ204K7/8vGmGgOLnTiAxJ22+l3dcuB7+RZvvvO7iuYji1VQv8YzCL vjUpM7/HYwqxiaJl394MKDF42WoVazmig4o9jQpc= Original-Received: from smtp1.mail.yandex.net (localhost [127.0.0.1]) by smtp1.mail.yandex.net (Yandex) with ESMTP id 279EFAA0553; Wed, 6 Jun 2012 10:11:49 +0400 (MSK) Original-Received: from antipov.client.gelicon.ru (antipov.client.gelicon.ru [78.153.153.8]) by smtp1.mail.yandex.net (nwsmtp/Yandex) with ESMTP id BmFqZtYr-BmFGPaNP; Wed, 6 Jun 2012 10:11:48 +0400 X-Yandex-Rcpt-Suid: eggert@cs.ucla.edu X-Yandex-Rcpt-Suid: emacs-devel@gnu.org X-Yandex-Rcpt-Suid: monnier@iro.umontreal.ca DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1338963109; bh=0IhJb2BEjTGjgvLcRO+z2j5mQjwRW78t3kv2J4wqGqY=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=hvGJ6UQLgzu3BPfFWgK6okjPqYalOcYJRKSg4BBmP1UmKEvV+YhT5eddHxgvy5xZq sHtIUsXD7NAaZz6qb015FG99OZVwaPkQ3cSojjCBu3M8lLvZUThRUBdh3A2EOEZvk/ ZqgNoyaMePO7z7tnuYCqQ1TO4beDF4UVktuVTbCw= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 In-Reply-To: <4FC79DAD.5040904@cs.ucla.edu> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 77.88.46.9 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:150790 Archived-At: On 05/31/2012 08:34 PM, Paul Eggert wrote: > Part of my misunderstanding was due to that the code confuses 'unsigned long' > with 'ptrdiff_t'. The two types need not be the same width. > The code should use 'sizeof (ptrdiff_t)' where it currently > uses 'sizeof (unsigned long)', and we need a BITS_PER_PTRDIFF_T > enum to size the fields correctly. The problem with ptrdiff_t is that it's signed (and has no unsigned version), and the code assumes that the bitfields are unsigned. This raises the question which I wanted to raise long time ago: why ptrdiff_t (read: signed difference between pointers) is used for size values, although there is a special type ssize_t (and it's unsigned counterpart size_t)? Dmitry