/[emacs]/emacs/src/syntax.c
ViewVC logotype

Diff of /emacs/src/syntax.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.153 by raeburn, Mon Jul 15 00:00:37 2002 UTC revision 1.154 by raeburn, Fri Jul 19 14:27:24 2002 UTC
# Line 901  text property.  */) Line 901  text property.  */)
901       (string)       (string)
902       Lisp_Object string;       Lisp_Object string;
903  {  {
904    register unsigned char *p;    register const unsigned char *p;
905    register enum syntaxcode code;    register enum syntaxcode code;
906    int val;    int val;
907    Lisp_Object match;    Lisp_Object match;
# Line 1365  skip_chars (forwardp, syntaxp, string, l Line 1365  skip_chars (forwardp, syntaxp, string, l
1365    int multibyte = !NILP (current_buffer->enable_multibyte_characters);    int multibyte = !NILP (current_buffer->enable_multibyte_characters);
1366    int string_multibyte;    int string_multibyte;
1367    int size_byte;    int size_byte;
1368    unsigned char *str;    const unsigned char *str;
1369    int len;    int len;
1370    
1371    CHECK_STRING (string);    CHECK_STRING (string);
# Line 1386  skip_chars (forwardp, syntaxp, string, l Line 1386  skip_chars (forwardp, syntaxp, string, l
1386          nbytes = SCHARS (string);          nbytes = SCHARS (string);
1387        if (nbytes != size_byte)        if (nbytes != size_byte)
1388          {          {
1389            str = (unsigned char *) alloca (nbytes);            unsigned char *tmp = (unsigned char *) alloca (nbytes);
1390            copy_text (SDATA (string), str, size_byte,            copy_text (SDATA (string), tmp, size_byte,
1391                       string_multibyte, multibyte);                       string_multibyte, multibyte);
1392            size_byte = nbytes;            size_byte = nbytes;
1393              str = tmp;
1394          }          }
1395      }      }
1396    

Legend:
Removed from v.1.153  
changed lines
  Added in v.1.154

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26