diff src/fns.c @ 108881:5582106cddf0

Remove obsolete pre-unicode2 macros. * character.h (MULTIBYTE_FORM_LENGTH, PARSE_MULTIBYTE_SEQ): Remove. * composite.c (composition_reseat_it): * data.c (Faset): * fns.c (Ffillarray): * regex.c (re_search_2): Use BYTES_BY_CHAR_HEAD. [!emacs] (BYTES_BY_CHAR_HEAD): Define instead of MULTIBYTE_FORM_LENGTH.
author Juanma Barranquero <lekktu@gmail.com>
date Thu, 03 Jun 2010 21:02:32 +0200
parents 641672d44942
children d418516def73
line wrap: on
line diff
--- a/src/fns.c	Thu Jun 03 21:50:00 2010 +0300
+++ b/src/fns.c	Thu Jun 03 21:02:32 2010 +0200
@@ -2280,7 +2280,7 @@
 	  if (size != size_byte)
 	    while (p1 < endp)
 	      {
-		int this_len = MULTIBYTE_FORM_LENGTH (p1, endp - p1);
+		int this_len = BYTES_BY_CHAR_HEAD (*p1);
 		if (len != this_len)
 		  error ("Attempt to change byte length of a string");
 		p1 += this_len;