From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Compiling Elisp to a native code with a GCC plugin Date: Fri, 17 Sep 2010 18:11:55 +0200 Message-ID: <83k4mk1h9w.fsf@gnu.org> References: <87bp805ecr.fsf@gmail.com> <87iq26z97e.fsf@uwakimon.sk.tsukuba.ac.jp> <87y6b0yi8o.fsf@uwakimon.sk.tsukuba.ac.jp> <87sk18bioh.fsf@lola.goethe.zz> <87fwx8bhkq.fsf@lola.goethe.zz> <8739t8bepl.fsf@lola.goethe.zz> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: dough.gmane.org 1284740133 27131 80.91.229.12 (17 Sep 2010 16:15:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 17 Sep 2010 16:15:33 +0000 (UTC) Cc: emacs-devel@gnu.org To: Lars Magne Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 17 18:15:29 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Owdax-0007aG-Th for ged-emacs-devel@m.gmane.org; Fri, 17 Sep 2010 18:15:28 +0200 Original-Received: from localhost ([127.0.0.1]:58667 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Owdaw-0006gA-Ok for ged-emacs-devel@m.gmane.org; Fri, 17 Sep 2010 12:15:26 -0400 Original-Received: from [140.186.70.92] (port=47922 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OwdY0-0004eN-Vt for emacs-devel@gnu.org; Fri, 17 Sep 2010 12:12:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OwdXw-0000JW-8o for emacs-devel@gnu.org; Fri, 17 Sep 2010 12:12:24 -0400 Original-Received: from mtaout21.012.net.il ([80.179.55.169]:36573) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OwdXw-0000J8-0e for emacs-devel@gnu.org; Fri, 17 Sep 2010 12:12:20 -0400 Original-Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0L8W00L00FCQSH00@a-mtaout21.012.net.il> for emacs-devel@gnu.org; Fri, 17 Sep 2010 18:11:51 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.126.210.149]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L8W00LRKFNQRD30@a-mtaout21.012.net.il>; Fri, 17 Sep 2010 18:11:51 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:130334 Archived-At: > From: Lars Magne Ingebrigtsen > Date: Fri, 17 Sep 2010 17:24:34 +0200 >=20 > Lars Magne Ingebrigtsen writes: >=20 > > (looking-at (unibyte-string #x68 #xc3 #xa9 #x6c #x6c #x6f) t)h= =E9llo > > =3D> t > > > > *scratches head* Well, I guess I can see that... >=20 > I've looked at what Fequal does. It first compares the number of > characters in the strings, and then the number of bytes, and then i= t > does a memcmp(). So the only change necessary in at_literal() was = to > add a check that the number of bytes in the string and in the regio= n > we're comparing with is the same. I don't recommend to get your hands dirty with unibyte strings and unibyte buffers. Just do it right for multibyte ones and wait until someone hollers.