Mercurial > hg > xemacs-beta
comparison 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 |
comparison
equal
deleted
inserted
replaced
770:336a418893b5 | 771:943eaba38521 |
---|---|
324 for the object recorded in syntax_cache with SETUP_SYNTAX_TABLE_FOR_OBJECT. | 324 for the object recorded in syntax_cache with SETUP_SYNTAX_TABLE_FOR_OBJECT. |
325 | 325 |
326 The value is meant for use in the UPDATE_SYNTAX_TABLE... macros. | 326 The value is meant for use in the UPDATE_SYNTAX_TABLE... macros. |
327 These macros do nothing when parse_sexp_lookup_properties is 0, | 327 These macros do nothing when parse_sexp_lookup_properties is 0, |
328 so we return 0 in that case, for speed. */ | 328 so we return 0 in that case, for speed. */ |
329 #define SYNTAX_CACHE_BYTE_TO_CHAR(bytepos) \ | 329 #define SYNTAX_CACHE_BYTE_TO_CHAR(bytepos) \ |
330 (! lookup_syntax_properties \ | 330 (! lookup_syntax_properties \ |
331 ? 0 \ | 331 ? 0 \ |
332 : STRINGP (syntax_cache.object) \ | 332 : STRINGP (syntax_cache.object) \ |
333 ? bytecount_to_charcount (XSTRING_DATA (syntax_cache.object), bytepos) \ | 333 ? XSTRING_INDEX_BYTE_TO_CHAR (syntax_cache.object, bytepos) \ |
334 : (BUFFERP (syntax_cache.object) || NILP (syntax_cache.object)) \ | 334 : (BUFFERP (syntax_cache.object) || NILP (syntax_cache.object)) \ |
335 ? bytebpos_to_charbpos (syntax_cache.buffer, \ | 335 ? bytebpos_to_charbpos (syntax_cache.buffer, \ |
336 bytepos + BI_BUF_BEGV (syntax_cache.buffer)) \ | 336 bytepos + BI_BUF_BEGV (syntax_cache.buffer)) \ |
337 : (bytepos)) | 337 : (bytepos)) |
338 | 338 |
339 #define SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR(obj, buf, bytepos) \ | 339 #define SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR(obj, buf, bytepos) \ |
340 (! lookup_syntax_properties \ | 340 (! lookup_syntax_properties \ |
341 ? 0 \ | 341 ? 0 \ |
342 : STRINGP (obj) \ | 342 : STRINGP (obj) \ |
343 ? bytecount_to_charcount (XSTRING_DATA (obj), bytepos) \ | 343 ? XSTRING_INDEX_BYTE_TO_CHAR (obj, bytepos) \ |
344 : (BUFFERP (obj) || NILP (obj)) \ | 344 : (BUFFERP (obj) || NILP (obj)) \ |
345 ? bytebpos_to_charbpos (buf, bytepos + BI_BUF_BEGV (buf)) \ | 345 ? bytebpos_to_charbpos (buf, bytepos + BI_BUF_BEGV (buf)) \ |
346 : (bytepos)) | 346 : (bytepos)) |
347 | 347 |
348 #else /* not emacs */ | 348 #else /* not emacs */ |