comparison src/syntax.c @ 22547:1cf8123f4c67

(Fmodify_syntax_entry): Use macro STRING_BYTES to get byte size of a string.
author Kenichi Handa <handa@m17n.org>
date Tue, 23 Jun 1998 00:29:51 +0000
parents a28020246db1
children 85f64bf341c3
comparison
equal deleted inserted replaced
22546:8322a6923140 22547:1cf8123f4c67
875 } 875 }
876 876
877 if (*p) 877 if (*p)
878 { 878 {
879 int len; 879 int len;
880 int character = STRING_CHAR_AND_LENGTH (p, XSTRING (newentry)->size - 1, 880 int character = (STRING_CHAR_AND_LENGTH
881 len); 881 (p, STRING_BYTES (XSTRING (newentry)) - 1, len));
882 XSETINT (match, character); 882 XSETINT (match, character);
883 if (XFASTINT (match) == ' ') 883 if (XFASTINT (match) == ' ')
884 match = Qnil; 884 match = Qnil;
885 p += len; 885 p += len;
886 } 886 }