From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.devel Subject: Re: Adding sha256 and sha512 to C? Date: Sun, 12 Jun 2011 09:34:23 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <19936.26998.559386.371174@priss.frightenedpiglet.com> <4DE072EE.4030303@cs.ucla.edu> <83mxi7b82v.fsf@gnu.org> <838vt8bxwh.fsf@gnu.org> <834o3wbdbw.fsf@gnu.org> <4DF3919C.9070907@cs.ucla.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: dough.gmane.org 1307838898 10258 80.91.229.12 (12 Jun 2011 00:34:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 12 Jun 2011 00:34:58 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org, sand@blarg.net, monnier@iro.umontreal.ca, Leo To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 12 02:34:54 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QVYdf-0001Yi-CH for ged-emacs-devel@m.gmane.org; Sun, 12 Jun 2011 02:34:51 +0200 Original-Received: from localhost ([::1]:40568 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVYde-00088t-Cn for ged-emacs-devel@m.gmane.org; Sat, 11 Jun 2011 20:34:50 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:46501) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVYdL-00088o-Jx for emacs-devel@gnu.org; Sat, 11 Jun 2011 20:34:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QVYdK-00028q-Su for emacs-devel@gnu.org; Sat, 11 Jun 2011 20:34:31 -0400 Original-Received: from mathmail.math.s.chiba-u.ac.jp ([133.82.132.2]:61520) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QVYdJ-00028T-9B; Sat, 11 Jun 2011 20:34:29 -0400 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 9CDA7C0560; Sun, 12 Jun 2011 09:34:23 +0900 (JST) In-Reply-To: <4DF3919C.9070907@cs.ucla.edu> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.3 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-detected-operating-system: by eggs.gnu.org: NetBSD 3.0 (DF) X-Received-From: 133.82.132.2 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:140388 Archived-At: >>>>> On Sat, 11 Jun 2011 09:02:36 -0700, Paul Eggert said: > When creating the digest the code should use make_unibyte_string > rather than make_string. (This comment applies also to the > original.) And perhaps I would allocate a Lisp string with make_uninit_string and then store the result directly into its contents rather than xmalloc - make_unibyte_string - xfree, if the size is known in advance. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp