[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/syntax.c
From: |
Ken Raeburn |
Subject: |
[Emacs-diffs] Changes to emacs/src/syntax.c |
Date: |
Fri, 19 Jul 2002 10:27:24 -0400 |
Index: emacs/src/syntax.c
diff -c emacs/src/syntax.c:1.153 emacs/src/syntax.c:1.154
*** emacs/src/syntax.c:1.153 Sun Jul 14 20:00:37 2002
--- emacs/src/syntax.c Fri Jul 19 10:27:24 2002
***************
*** 901,907 ****
(string)
Lisp_Object string;
{
! register unsigned char *p;
register enum syntaxcode code;
int val;
Lisp_Object match;
--- 901,907 ----
(string)
Lisp_Object string;
{
! register const unsigned char *p;
register enum syntaxcode code;
int val;
Lisp_Object match;
***************
*** 1365,1371 ****
int multibyte = !NILP (current_buffer->enable_multibyte_characters);
int string_multibyte;
int size_byte;
! unsigned char *str;
int len;
CHECK_STRING (string);
--- 1365,1371 ----
int multibyte = !NILP (current_buffer->enable_multibyte_characters);
int string_multibyte;
int size_byte;
! const unsigned char *str;
int len;
CHECK_STRING (string);
***************
*** 1386,1395 ****
nbytes = SCHARS (string);
if (nbytes != size_byte)
{
! str = (unsigned char *) alloca (nbytes);
! copy_text (SDATA (string), str, size_byte,
string_multibyte, multibyte);
size_byte = nbytes;
}
}
--- 1386,1396 ----
nbytes = SCHARS (string);
if (nbytes != size_byte)
{
! unsigned char *tmp = (unsigned char *) alloca (nbytes);
! copy_text (SDATA (string), tmp, size_byte,
string_multibyte, multibyte);
size_byte = nbytes;
+ str = tmp;
}
}