From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: libnettle/libhogweed WIP Date: Sun, 16 Apr 2017 09:20:41 -0400 Message-ID: References: <83a89gq3us.fsf@gnu.org> <87bmtjiv0w.fsf_-_@lifelogs.com> <83o9xjn06c.fsf@gnu.org> <87shmeb5ln.fsf_-_@lifelogs.com> <83y3w5z1ez.fsf@gnu.org> <87lgr6yakj.fsf@lifelogs.com> <87wpamww9k.fsf@lifelogs.com> <8337daggnj.fsf@gnu.org> <87d1cdwxt6.fsf@lifelogs.com> <83tw5pg1q3.fsf@gnu.org> <83mvbgg9gy.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1492348885 20005 195.159.176.226 (16 Apr 2017 13:21:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 16 Apr 2017 13:21:25 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 16 15:21:22 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1czk7G-00057S-3p for ged-emacs-devel@m.gmane.org; Sun, 16 Apr 2017 15:21:22 +0200 Original-Received: from localhost ([::1]:60558 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1czk7L-00061L-Mu for ged-emacs-devel@m.gmane.org; Sun, 16 Apr 2017 09:21:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58721) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1czk6i-000614-B7 for emacs-devel@gnu.org; Sun, 16 Apr 2017 09:20:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1czk6f-0008LQ-87 for emacs-devel@gnu.org; Sun, 16 Apr 2017 09:20:48 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:35717) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1czk6f-0008Kn-3R; Sun, 16 Apr 2017 09:20:45 -0400 Original-Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id v3GDKgQX026446; Sun, 16 Apr 2017 09:20:42 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id D85DF662BB; Sun, 16 Apr 2017 09:20:41 -0400 (EDT) In-Reply-To: <83mvbgg9gy.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 16 Apr 2017 09:19:57 +0300") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6000=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6000> : inlines <5807> : streams <1741442> : uri <2410621> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:213997 Archived-At: >> > I think STRING_SET_CHARS is what you want here. >> Really? This sets ->size without changing ->size_bytes, so it doesn't >> look right. > This is a unibyte string, so size_byte is -1 anyway. We do use this > macro in a few places in our sources; are you saying they are all > wrong? No, the three places where we use it are correct: they do not change the byte-size, only the char-size. Stefan