Mercurial > hg > xemacs-beta
comparison src/syntax.c @ 4141:77138fc618a9
[xemacs-hg @ 2007-08-24 13:03:04 by crestani]
2007-08-17 Marcus Crestani <crestani@xemacs.org>
* buffer.c (Fkill_buffer):
* objects-tty.c (tty_finalize_color_instance):
* objects-tty.c (tty_finalize_font_instance):
* objects-tty.c (console_type_create_objects_tty):
* syntax.c (uninit_buffer_syntax_cache): Keep functions that do
nothing for NEW_GC instead of removing them.
author | crestani |
---|---|
date | Fri, 24 Aug 2007 13:03:07 +0000 |
parents | 229bd619740a |
children | 25e5e5346d31 |
comparison
equal
deleted
inserted
replaced
4140:89310296a3be | 4141:77138fc618a9 |
---|---|
535 cache->start = Fmake_marker (); | 535 cache->start = Fmake_marker (); |
536 cache->end = Fmake_marker (); | 536 cache->end = Fmake_marker (); |
537 reset_buffer_syntax_cache_range (cache, cache->object, 0); | 537 reset_buffer_syntax_cache_range (cache, cache->object, 0); |
538 } | 538 } |
539 | 539 |
540 #ifndef NEW_GC | |
541 /* finalize the syntax cache for BUF */ | 540 /* finalize the syntax cache for BUF */ |
542 | 541 |
543 void | 542 void |
544 uninit_buffer_syntax_cache (struct buffer *buf) | 543 uninit_buffer_syntax_cache (struct buffer *buf) |
545 { | 544 { |
545 #ifndef NEW_GC | |
546 xfree (buf->syntax_cache, struct syntax_cache *); | 546 xfree (buf->syntax_cache, struct syntax_cache *); |
547 buf->syntax_cache = 0; | 547 buf->syntax_cache = 0; |
548 } | |
549 #endif /* not NEW_GC */ | 548 #endif /* not NEW_GC */ |
549 } | |
550 | 550 |
551 /* extent-specific APIs used in extents.c and insdel.c */ | 551 /* extent-specific APIs used in extents.c and insdel.c */ |
552 | 552 |
553 /* The syntax-table property on the range covered by EXTENT may be changing, | 553 /* The syntax-table property on the range covered by EXTENT may be changing, |
554 either because EXTENT has a syntax-table property and is being attached | 554 either because EXTENT has a syntax-table property and is being attached |