unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Suspicious code in search.c
@ 2005-10-20 14:52 Kim F. Storm
  2005-10-20 23:38 ` Richard M. Stallman
  2005-10-21  0:46 ` Kenichi Handa
  0 siblings, 2 replies; 7+ messages in thread
From: Kim F. Storm @ 2005-10-20 14:52 UTC (permalink / raw)



See search.c line 1711-1712:

	  if (ASCII_BYTE_P (*ptr) || ! multibyte)
	    ch = *ptr;
-->	  else if (charset_base
-->		   && (pat_end - ptr) == 1 || CHAR_HEAD_P (ptr[1]))
	    {
	      unsigned char *charstart = ptr - 1;


Based on the indentation, I would assume the following interpretation
is intended:

	  else if (charset_base
		   && ((pat_end - ptr) == 1 || CHAR_HEAD_P (ptr[1])))
		      ^                                            ^

Can somebody who knows this code better than I take a look (and
perhaps reformat the code if the current code is ok).


-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-10-21 17:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-20 14:52 Suspicious code in search.c Kim F. Storm
2005-10-20 23:38 ` Richard M. Stallman
2005-10-21  0:52   ` Kenichi Handa
2005-10-21 17:51     ` Richard M. Stallman
2005-10-21  0:46 ` Kenichi Handa
2005-10-21  2:01   ` Nick Roberts
2005-10-21  2:27     ` Kenichi Handa

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).