Mercurial > hg > xemacs-beta
diff src/file-coding.c @ 3263:d674024a8674
[xemacs-hg @ 2006-02-27 16:29:00 by crestani]
- Introduce a fancy asynchronous finalization strategy on C level.
- Merge the code conditioned on MC_ALLOC into the code conditioned on
NEW_GC.
- Remove the possibility to free objects manually outside garbage
collections when the new collector is enabled.
author | crestani |
---|---|
date | Mon, 27 Feb 2006 16:29:29 +0000 |
parents | 77f5a5135b3a |
children | 3d54e5f2dfb0 |
line wrap: on
line diff
--- a/src/file-coding.c Sun Feb 26 22:51:04 2006 +0000 +++ b/src/file-coding.c Mon Feb 27 16:29:29 2006 +0000 @@ -305,6 +305,7 @@ write_c_string (printcharfun, "]"); } +#ifndef NEW_GC static void finalize_coding_system (void *header, int for_disksave) { @@ -315,6 +316,7 @@ if (!for_disksave) /* see comment in lstream.c */ MAYBE_XCODESYSMETH (cs, finalize, (cs)); } +#endif /* not NEW_GC */ static Bytecount sizeof_coding_system (const void *header) @@ -366,6 +368,15 @@ 0, coding_system_empty_extra_description_1 }; +#ifdef NEW_GC +DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION ("coding-system", coding_system, + 1, /*dumpable-flag*/ + mark_coding_system, + print_coding_system, + 0, 0, 0, coding_system_description, + sizeof_coding_system, + Lisp_Coding_System); +#else /* not NEW_GC */ DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION ("coding-system", coding_system, 1, /*dumpable-flag*/ mark_coding_system, @@ -374,6 +385,7 @@ 0, 0, coding_system_description, sizeof_coding_system, Lisp_Coding_System); +#endif /* not NEW_GC */ /************************************************************************/ /* Creating coding systems */