emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiling Elisp to a native code with a GCC plugin


From: Eli Zaretskii
Subject: Re: Compiling Elisp to a native code with a GCC plugin
Date: Fri, 17 Sep 2010 18:11:55 +0200

> From: Lars Magne Ingebrigtsen <address@hidden>
> Date: Fri, 17 Sep 2010 17:24:34 +0200
> 
> Lars Magne Ingebrigtsen <address@hidden> writes:
> 
> > (looking-at (unibyte-string #x68 #xc3 #xa9 #x6c #x6c #x6f) t)héllo
> > => t
> >
> > *scratches head*  Well, I guess I can see that...
> 
> 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 it
> 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 region
> 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]