Mercurial > hg > xemacs-beta
diff src/syntax.h @ 771:943eaba38521
[xemacs-hg @ 2002-03-13 08:51:24 by ben]
The big ben-mule-21-5 check-in!
Various files were added and deleted. See CHANGES-ben-mule.
There are still some test suite failures. No crashes, though.
Many of the failures have to do with problems in the test suite itself
rather than in the actual code. I'll be addressing these in the next
day or so -- none of the test suite failures are at all critical.
Meanwhile I'll be trying to address the biggest issues -- i.e. build
or run failures, which will almost certainly happen on various platforms.
All comments should be sent to ben@xemacs.org -- use a Cc: if necessary
when sending to mailing lists. There will be pre- and post- tags,
something like
pre-ben-mule-21-5-merge-in, and
post-ben-mule-21-5-merge-in.
author | ben |
---|---|
date | Wed, 13 Mar 2002 08:54:06 +0000 |
parents | fdefd0186b75 |
children | e38acbeb1cae |
line wrap: on
line diff
--- a/src/syntax.h Fri Mar 08 13:33:14 2002 +0000 +++ b/src/syntax.h Wed Mar 13 08:54:06 2002 +0000 @@ -326,21 +326,21 @@ The value is meant for use in the UPDATE_SYNTAX_TABLE... macros. These macros do nothing when parse_sexp_lookup_properties is 0, so we return 0 in that case, for speed. */ -#define SYNTAX_CACHE_BYTE_TO_CHAR(bytepos) \ - (! lookup_syntax_properties \ - ? 0 \ - : STRINGP (syntax_cache.object) \ - ? bytecount_to_charcount (XSTRING_DATA (syntax_cache.object), bytepos) \ - : (BUFFERP (syntax_cache.object) || NILP (syntax_cache.object)) \ - ? bytebpos_to_charbpos (syntax_cache.buffer, \ - bytepos + BI_BUF_BEGV (syntax_cache.buffer)) \ +#define SYNTAX_CACHE_BYTE_TO_CHAR(bytepos) \ + (! lookup_syntax_properties \ + ? 0 \ + : STRINGP (syntax_cache.object) \ + ? XSTRING_INDEX_BYTE_TO_CHAR (syntax_cache.object, bytepos) \ + : (BUFFERP (syntax_cache.object) || NILP (syntax_cache.object)) \ + ? bytebpos_to_charbpos (syntax_cache.buffer, \ + bytepos + BI_BUF_BEGV (syntax_cache.buffer)) \ : (bytepos)) #define SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR(obj, buf, bytepos) \ (! lookup_syntax_properties \ ? 0 \ : STRINGP (obj) \ - ? bytecount_to_charcount (XSTRING_DATA (obj), bytepos) \ + ? XSTRING_INDEX_BYTE_TO_CHAR (obj, bytepos) \ : (BUFFERP (obj) || NILP (obj)) \ ? bytebpos_to_charbpos (buf, bytepos + BI_BUF_BEGV (buf)) \ : (bytepos))