comparison src/syntax.c @ 4117:229bd619740a

[xemacs-hg @ 2007-08-15 11:06:02 by crestani] 2007-08-15 Marcus Crestani <crestani@xemacs.org> * buffer.c (Fkill_buffer): * console-tty.c (free_tty_console_struct): * device-gtk.c (free_gtk_device_struct): * device-msw.c (mswindows_delete_device): * device-msw.c (msprinter_delete_device): * device-x.c (free_x_device_struct): * device-x.c (x_delete_device): * dynarr.c (Dynarr_lisp_realloc): * dynarr.c (Dynarr_free): * elhash.c: * elhash.c (finalize_hash_table): * elhash.c (resize_hash_table): * elhash.c (pdump_reorganize_hash_table): * extents.c (gap_array_delete_marker): * frame-gtk.c (gtk_delete_frame): * frame-msw.c (mswindows_delete_frame): * frame-x.c (x_delete_frame): * glyphs.c (check_for_ignored_expose): * mc-alloc.c (mc_realloc_1): * mc-alloc.h: * objects-tty.c (tty_finalize_color_instance): * objects-tty.c (tty_finalize_font_instance): * objects-tty.c (console_type_create_objects_tty): * syntax.c: * syntax.c (uninit_buffer_syntax_cache): * vdb.c (Ftest_vdb): Remove all calls to mc_free.
author crestani
date Wed, 15 Aug 2007 11:06:10 +0000
parents 6486a15d7e3e
children 77138fc618a9
comparison
equal deleted inserted replaced
4116:9a42c5e5eb4e 4117:229bd619740a
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
540 /* finalize the syntax cache for BUF */ 541 /* finalize the syntax cache for BUF */
541 542
542 void 543 void
543 uninit_buffer_syntax_cache (struct buffer *buf) 544 uninit_buffer_syntax_cache (struct buffer *buf)
544 { 545 {
545 #ifdef NEW_GC
546 mc_free (buf->syntax_cache);
547 #else /* not NEW_GC */
548 xfree (buf->syntax_cache, struct syntax_cache *); 546 xfree (buf->syntax_cache, struct syntax_cache *);
547 buf->syntax_cache = 0;
548 }
549 #endif /* not NEW_GC */ 549 #endif /* not NEW_GC */
550 buf->syntax_cache = 0;
551 }
552 550
553 /* extent-specific APIs used in extents.c and insdel.c */ 551 /* extent-specific APIs used in extents.c and insdel.c */
554 552
555 /* 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,
556 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