diff options
| author | Adrian Robert | 2008-07-15 18:15:18 +0000 |
|---|---|---|
| committer | Adrian Robert | 2008-07-15 18:15:18 +0000 |
| commit | edfda78355c5528eee489fa8a7f9c73bf8e734f2 (patch) | |
| tree | 78d2414d9791e1efc17ec9b35b438ae35602340a /src/syntax.c | |
| parent | 1391cd548782097e34d7856ec4f20ca90bdf2c26 (diff) | |
| download | emacs-edfda78355c5528eee489fa8a7f9c73bf8e734f2.tar.gz emacs-edfda78355c5528eee489fa8a7f9c73bf8e734f2.zip | |
merging Emacs.app (NeXTstep port)
Diffstat (limited to 'src/syntax.c')
| -rw-r--r-- | src/syntax.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/syntax.c b/src/syntax.c index 6dc63c25537..0c547c724c9 100644 --- a/src/syntax.c +++ b/src/syntax.c | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | #include <stdio.h> | ||
| 1 | /* GNU Emacs routines to deal with syntax tables; also word and list parsing. | 2 | /* GNU Emacs routines to deal with syntax tables; also word and list parsing. |
| 2 | Copyright (C) 1985, 1987, 1993, 1994, 1995, 1997, 1998, 1999, 2001, | 3 | Copyright (C) 1985, 1987, 1993, 1994, 1995, 1997, 1998, 1999, 2001, |
| 3 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 | 4 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 |
| @@ -298,6 +299,18 @@ char_quoted (charpos, bytepos) | |||
| 298 | register int quoted = 0; | 299 | register int quoted = 0; |
| 299 | int orig = charpos; | 300 | int orig = charpos; |
| 300 | 301 | ||
| 302 | #ifdef HAVE_NS | ||
| 303 | /* For some reason keeps getting called w/both 1, then segfaulting | ||
| 304 | due to the definitions of DEC_BOTH and DEC_POS in character.h, | ||
| 305 | which lead to decrementing below initial address and then examining | ||
| 306 | character there. Need to investigate further.. */ | ||
| 307 | if (charpos < 2 || bytepos < 2) | ||
| 308 | { | ||
| 309 | //fprintf(stderr,"Returning because charpos = %d, bytepos = %d\n",charpos, bytepos); | ||
| 310 | return 0; | ||
| 311 | } | ||
| 312 | #endif | ||
| 313 | |||
| 301 | DEC_BOTH (charpos, bytepos); | 314 | DEC_BOTH (charpos, bytepos); |
| 302 | 315 | ||
| 303 | while (charpos >= beg) | 316 | while (charpos >= beg) |