Mercurial > emacs
comparison src/syntax.c @ 96675:d45acf0c8d23
merging Emacs.app (NeXTstep port)
| author | Adrian Robert <Adrian.B.Robert@gmail.com> |
|---|---|
| date | Tue, 15 Jul 2008 18:15:18 +0000 |
| parents | f13a77e0e34f |
| children | 9697a5f0281d |
comparison
equal
deleted
inserted
replaced
| 96674:ff312a846b25 | 96675:d45acf0c8d23 |
|---|---|
| 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 |
| 4 Free Software Foundation, Inc. | 5 Free Software Foundation, Inc. |
| 5 | 6 |
| 295 { | 296 { |
| 296 register enum syntaxcode code; | 297 register enum syntaxcode code; |
| 297 register int beg = BEGV; | 298 register int beg = BEGV; |
| 298 register int quoted = 0; | 299 register int quoted = 0; |
| 299 int orig = charpos; | 300 int orig = charpos; |
| 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 | |
| 300 | 313 |
| 301 DEC_BOTH (charpos, bytepos); | 314 DEC_BOTH (charpos, bytepos); |
| 302 | 315 |
| 303 while (charpos >= beg) | 316 while (charpos >= beg) |
| 304 { | 317 { |
