[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/syntax.c,v
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] Changes to emacs/src/syntax.c,v |
Date: |
Tue, 22 Jul 2008 17:09:24 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Stefan Monnier <monnier> 08/07/22 17:09:24
Index: syntax.c
===================================================================
RCS file: /sources/emacs/emacs/src/syntax.c,v
retrieving revision 1.216
retrieving revision 1.217
diff -u -b -r1.216 -r1.217
--- syntax.c 20 Jul 2008 18:37:46 -0000 1.216
+++ syntax.c 22 Jul 2008 17:09:24 -0000 1.217
@@ -298,23 +298,10 @@
register int quoted = 0;
int orig = charpos;
-#ifdef HAVE_NS
- /* For some reason keeps getting called w/both 1, then segfaulting
- due to the definitions of DEC_BOTH and DEC_POS in character.h,
- which lead to decrementing below initial address and then examining
- character there. Need to investigate further.. */
- if (charpos < 2 || bytepos < 2)
- {
- //fprintf(stderr,"Returning because charpos = %d, bytepos =
%d\n",charpos, bytepos);
- return 0;
- }
-#endif
-
- DEC_BOTH (charpos, bytepos);
-
- while (charpos >= beg)
+ while (charpos > beg)
{
int c;
+ DEC_BOTH (charpos, bytepos);
UPDATE_SYNTAX_TABLE_BACKWARD (charpos);
c = FETCH_CHAR_AS_MULTIBYTE (bytepos);
@@ -322,7 +309,6 @@
if (! (code == Scharquote || code == Sescape))
break;
- DEC_BOTH (charpos, bytepos);
quoted = !quoted;
}
- [Emacs-diffs] Changes to emacs/src/syntax.c,v, Adrian Robert, 2008/07/15
- [Emacs-diffs] Changes to emacs/src/syntax.c,v, Adrian Robert, 2008/07/16
- [Emacs-diffs] Changes to emacs/src/syntax.c,v, Andreas Schwab, 2008/07/20
- [Emacs-diffs] Changes to emacs/src/syntax.c,v,
Stefan Monnier <=
- [Emacs-diffs] Changes to emacs/src/syntax.c,v, Stefan Monnier, 2008/07/24