[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: |
Adrian Robert |
Subject: |
[Emacs-diffs] Changes to emacs/src/syntax.c,v |
Date: |
Tue, 15 Jul 2008 18:15:48 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Adrian Robert <arobert> 08/07/15 18:15:19
Index: src/syntax.c
===================================================================
RCS file: /sources/emacs/emacs/src/syntax.c,v
retrieving revision 1.213
retrieving revision 1.214
diff -u -b -r1.213 -r1.214
--- src/syntax.c 12 Jun 2008 20:25:47 -0000 1.213
+++ src/syntax.c 15 Jul 2008 18:15:17 -0000 1.214
@@ -1,3 +1,4 @@
+#include <stdio.h>
/* GNU Emacs routines to deal with syntax tables; also word and list parsing.
Copyright (C) 1985, 1987, 1993, 1994, 1995, 1997, 1998, 1999, 2001,
2002, 2003, 2004, 2005, 2006, 2007, 2008
@@ -298,6 +299,18 @@
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)
- [Emacs-diffs] Changes to emacs/src/syntax.c,v,
Adrian Robert <=
- [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, 2008/07/22
- [Emacs-diffs] Changes to emacs/src/syntax.c,v, Stefan Monnier, 2008/07/24