gc.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431
  1. /* classes: h_files */
  2. #ifndef SCM_GC_H
  3. #define SCM_GC_H
  4. /* Copyright (C) 1995,1996,1998,1999,2000,2001 Free Software Foundation, Inc.
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation; either version 2, or (at your option)
  9. * any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this software; see the file COPYING. If not, write to
  18. * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  19. * Boston, MA 02110-1301 USA
  20. *
  21. * As a special exception, the Free Software Foundation gives permission
  22. * for additional uses of the text contained in its release of GUILE.
  23. *
  24. * The exception is that, if you link the GUILE library with other files
  25. * to produce an executable, this does not by itself cause the
  26. * resulting executable to be covered by the GNU General Public License.
  27. * Your use of that executable is in no way restricted on account of
  28. * linking the GUILE library code into it.
  29. *
  30. * This exception does not however invalidate any other reasons why
  31. * the executable file might be covered by the GNU General Public License.
  32. *
  33. * This exception applies only to the code released by the
  34. * Free Software Foundation under the name GUILE. If you copy
  35. * code from other Free Software Foundation releases into a copy of
  36. * GUILE, as the General Public License permits, the exception does
  37. * not apply to the code that you add in this way. To avoid misleading
  38. * anyone as to the status of such modified files, you must delete
  39. * this exception notice from them.
  40. *
  41. * If you write modifications of your own for GUILE, it is your choice
  42. * whether to permit this exception to apply to your modifications.
  43. * If you do not wish that, delete this exception notice. */
  44. #include "libguile/__scm.h"
  45. #include "libguile/hooks.h"
  46. typedef struct scm_t_cell
  47. {
  48. scm_t_bits word_0;
  49. scm_t_bits word_1;
  50. } scm_t_cell;
  51. #if (SCM_DEBUG_DEPRECATED == 0)
  52. # define scm_cell scm_t_cell
  53. #endif
  54. /* SCM_CELLPTR is a pointer to a cons cell which may be compared or
  55. * differenced.
  56. */
  57. typedef scm_t_cell * SCM_CELLPTR;
  58. /* Cray machines have pointers that are incremented once for each word,
  59. * rather than each byte, the 3 most significant bits encode the byte
  60. * within the word. The following macros deal with this by storing the
  61. * native Cray pointers like the ones that looks like scm expects. This
  62. * is done for any pointers that might appear in the car of a scm_t_cell,
  63. * pointers to scm_vector elts, functions, &c are not munged.
  64. */
  65. #ifdef _UNICOS
  66. # define SCM2PTR(x) ((SCM_CELLPTR) (SCM_UNPACK (x) >> 3))
  67. # define PTR2SCM(x) (SCM_PACK (((scm_t_bits) (x)) << 3))
  68. #else
  69. # define SCM2PTR(x) ((SCM_CELLPTR) (SCM_UNPACK (x)))
  70. # define PTR2SCM(x) (SCM_PACK ((scm_t_bits) (x)))
  71. #endif /* def _UNICOS */
  72. #define SCM_GC_CARD_N_HEADER_CELLS 1
  73. #define SCM_GC_CARD_N_CELLS 256
  74. #define SCM_GC_CARD_SIZE (SCM_GC_CARD_N_CELLS * sizeof (scm_t_cell))
  75. #define SCM_GC_CARD_N_DATA_CELLS (SCM_GC_CARD_N_CELLS - SCM_GC_CARD_N_HEADER_CELLS)
  76. #define SCM_GC_CARD_BVEC_SIZE_IN_LIMBS \
  77. ((SCM_GC_CARD_N_CELLS + SCM_C_BVEC_LIMB_BITS - 1) / SCM_C_BVEC_LIMB_BITS)
  78. #define SCM_GC_IN_CARD_HEADERP(x) \
  79. SCM_PTR_LT ((scm_t_cell *) (x), SCM_GC_CELL_CARD (x) + SCM_GC_CARD_N_HEADER_CELLS)
  80. #define SCM_GC_CARD_BVEC(card) ((scm_t_c_bvec_limb *) ((card)->word_0))
  81. #define SCM_GC_SET_CARD_BVEC(card, bvec) \
  82. ((card)->word_0 = (scm_t_bits) (bvec))
  83. #define SCM_GC_GET_CARD_FLAGS(card) ((long) ((card)->word_1))
  84. #define SCM_GC_SET_CARD_FLAGS(card, flags) \
  85. ((card)->word_1 = (scm_t_bits) (flags))
  86. #define SCM_GC_CLR_CARD_FLAGS(card) (SCM_GC_SET_CARD_FLAGS (card, 0L))
  87. #define SCM_GC_GET_CARD_FLAG(card, shift) (SCM_GC_GET_CARD_FLAGS (card) & (1L << (shift)))
  88. #define SCM_GC_SET_CARD_FLAG(card, shift) \
  89. (SCM_GC_SET_CARD_FLAGS (card, SCM_GC_GET_CARD_FLAGS(card) | (1L << (shift))))
  90. #define SCM_GC_CLR_CARD_FLAG(card, shift) \
  91. (SCM_GC_SET_CARD_FLAGS (card, SCM_GC_GET_CARD_FLAGS(card) & ~(1L << (shift))))
  92. #define SCM_GC_CARDF_DOUBLECELL 0
  93. #define SCM_GC_CARD_DOUBLECELLP(card) SCM_GC_GET_CARD_FLAG (card, SCM_GC_CARDF_DOUBLECELL)
  94. #define SCM_GC_SET_CARD_DOUBLECELL(card) SCM_GC_SET_CARD_FLAG (card, SCM_GC_CARDF_DOUBLECELL)
  95. /* card addressing. for efficiency, cards are *always* aligned to
  96. SCM_GC_CARD_SIZE. */
  97. #define SCM_GC_CARD_SIZE_MASK (SCM_GC_CARD_SIZE - 1)
  98. #define SCM_GC_CARD_ADDR_MASK (~SCM_GC_CARD_SIZE_MASK)
  99. #define SCM_GC_CELL_CARD(x) ((SCM_CELLPTR) ((long) (x) & SCM_GC_CARD_ADDR_MASK))
  100. #define SCM_GC_CELL_SPAN(x) ((SCM_GC_CARD_DOUBLECELLP (SCM_GC_CELL_CARD (x))) ? 2 : 1)
  101. #define SCM_GC_CELL_OFFSET(x) (((long) (x) & SCM_GC_CARD_SIZE_MASK) >> SCM_CELL_SIZE_SHIFT)
  102. #define SCM_GC_CELL_BVEC(x) SCM_GC_CARD_BVEC (SCM_GC_CELL_CARD (x))
  103. #define SCM_GC_CELL_GET_BIT(x) SCM_C_BVEC_GET (SCM_GC_CELL_BVEC (x), SCM_GC_CELL_OFFSET (x))
  104. #define SCM_GC_CELL_SET_BIT(x) SCM_C_BVEC_SET (SCM_GC_CELL_BVEC (x), SCM_GC_CELL_OFFSET (x))
  105. #define SCM_GC_CELL_CLR_BIT(x) SCM_C_BVEC_CLR (SCM_GC_CELL_BVEC (x), SCM_GC_CELL_OFFSET (x))
  106. #define SCM_GC_CARD_UP(x) SCM_GC_CELL_CARD ((char *) (x) + SCM_GC_CARD_SIZE - 1)
  107. #define SCM_GC_CARD_DOWN SCM_GC_CELL_CARD
  108. /* low level bit banging aids */
  109. typedef unsigned long scm_t_c_bvec_limb;
  110. #if (SIZEOF_LONG == 8)
  111. # define SCM_C_BVEC_LIMB_BITS 64
  112. # define SCM_C_BVEC_OFFSET_SHIFT 6
  113. # define SCM_C_BVEC_POS_MASK 63
  114. # define SCM_CELL_SIZE_SHIFT 4
  115. #else
  116. # define SCM_C_BVEC_LIMB_BITS 32
  117. # define SCM_C_BVEC_OFFSET_SHIFT 5
  118. # define SCM_C_BVEC_POS_MASK 31
  119. # define SCM_CELL_SIZE_SHIFT 3
  120. #endif
  121. #define SCM_C_BVEC_OFFSET(pos) (pos >> SCM_C_BVEC_OFFSET_SHIFT)
  122. #define SCM_C_BVEC_GET(bvec, pos) (bvec[SCM_C_BVEC_OFFSET (pos)] & (1L << (pos & SCM_C_BVEC_POS_MASK)))
  123. #define SCM_C_BVEC_SET(bvec, pos) (bvec[SCM_C_BVEC_OFFSET (pos)] |= (1L << (pos & SCM_C_BVEC_POS_MASK)))
  124. #define SCM_C_BVEC_CLR(bvec, pos) (bvec[SCM_C_BVEC_OFFSET (pos)] &= ~(1L << (pos & SCM_C_BVEC_POS_MASK)))
  125. #define SCM_C_BVEC_BITS2BYTES(bits) \
  126. (sizeof (scm_t_c_bvec_limb) * ((((bits) & SCM_C_BVEC_POS_MASK) ? 1L : 0L) + SCM_C_BVEC_OFFSET (bits)))
  127. #define SCM_C_BVEC_SET_BYTES(bvec, bytes) (memset (bvec, 0xff, bytes))
  128. #define SCM_C_BVEC_SET_ALL_BITS(bvec, bits) SCM_C_BVEC_SET_BYTES (bvec, SCM_C_BVEC_BITS2BYTES (bits))
  129. #define SCM_C_BVEC_CLR_BYTES(bvec, bytes) (memset (bvec, 0, bytes))
  130. #define SCM_C_BVEC_CLR_ALL_BITS(bvec, bits) SCM_C_BVEC_CLR_BYTES (bvec, SCM_C_BVEC_BITS2BYTES (bits))
  131. /* testing and changing GC marks */
  132. #define SCM_GCMARKP(x) SCM_GC_CELL_GET_BIT (x)
  133. #define SCM_SETGCMARK(x) SCM_GC_CELL_SET_BIT (x)
  134. #define SCM_CLRGCMARK(x) SCM_GC_CELL_CLR_BIT (x)
  135. /* Low level cell data accessing macros:
  136. */
  137. #if (SCM_DEBUG_CELL_ACCESSES == 1)
  138. # define SCM_VALIDATE_CELL(cell, expr) (scm_assert_cell_valid (cell), (expr))
  139. #else
  140. # define SCM_VALIDATE_CELL(cell, expr) (expr)
  141. #endif
  142. #define SCM_CELL_WORD(x, n) \
  143. SCM_VALIDATE_CELL ((x), ((const scm_t_bits *) SCM2PTR (x)) [n])
  144. #define SCM_CELL_WORD_0(x) SCM_CELL_WORD (x, 0)
  145. #define SCM_CELL_WORD_1(x) SCM_CELL_WORD (x, 1)
  146. #define SCM_CELL_WORD_2(x) SCM_CELL_WORD (x, 2)
  147. #define SCM_CELL_WORD_3(x) SCM_CELL_WORD (x, 3)
  148. #define SCM_CELL_OBJECT(x, n) \
  149. SCM_VALIDATE_CELL ((x), SCM_PACK (((const scm_t_bits *) SCM2PTR (x)) [n]))
  150. #define SCM_CELL_OBJECT_0(x) SCM_CELL_OBJECT (x, 0)
  151. #define SCM_CELL_OBJECT_1(x) SCM_CELL_OBJECT (x, 1)
  152. #define SCM_CELL_OBJECT_2(x) SCM_CELL_OBJECT (x, 2)
  153. #define SCM_CELL_OBJECT_3(x) SCM_CELL_OBJECT (x, 3)
  154. #define SCM_SET_CELL_WORD(x, n, v) \
  155. SCM_VALIDATE_CELL ((x), ((scm_t_bits *) SCM2PTR (x)) [n] = (scm_t_bits) (v))
  156. #define SCM_SET_CELL_WORD_0(x, v) SCM_SET_CELL_WORD (x, 0, v)
  157. #define SCM_SET_CELL_WORD_1(x, v) SCM_SET_CELL_WORD (x, 1, v)
  158. #define SCM_SET_CELL_WORD_2(x, v) SCM_SET_CELL_WORD (x, 2, v)
  159. #define SCM_SET_CELL_WORD_3(x, v) SCM_SET_CELL_WORD (x, 3, v)
  160. #define SCM_SET_CELL_OBJECT(x, n, v) \
  161. SCM_VALIDATE_CELL ((x), ((scm_t_bits *) SCM2PTR (x)) [n] = SCM_UNPACK (v))
  162. #define SCM_SET_CELL_OBJECT_0(x, v) SCM_SET_CELL_OBJECT (x, 0, v)
  163. #define SCM_SET_CELL_OBJECT_1(x, v) SCM_SET_CELL_OBJECT (x, 1, v)
  164. #define SCM_SET_CELL_OBJECT_2(x, v) SCM_SET_CELL_OBJECT (x, 2, v)
  165. #define SCM_SET_CELL_OBJECT_3(x, v) SCM_SET_CELL_OBJECT (x, 3, v)
  166. #define SCM_CELL_TYPE(x) SCM_CELL_WORD_0 (x)
  167. #define SCM_SET_CELL_TYPE(x, t) SCM_SET_CELL_WORD_0 (x, t)
  168. /* Except for the garbage collector, no part of guile should ever run over a
  169. * free cell. Thus, in debug mode the above macros report an error if they
  170. * are applied to a free cell. Since the garbage collector is allowed to
  171. * access free cells, it needs its own way to access cells which will not
  172. * result in errors when in debug mode. */
  173. #define SCM_GC_CELL_TYPE(x) \
  174. (((const scm_t_bits *) SCM2PTR (x)) [0])
  175. #define SCM_CELL_WORD_LOC(x, n) ((scm_t_bits *) & SCM_CELL_WORD (x, n))
  176. #define SCM_CARLOC(x) ((SCM *) SCM_CELL_WORD_LOC ((x), 0))
  177. #define SCM_CDRLOC(x) ((SCM *) SCM_CELL_WORD_LOC ((x), 1))
  178. /* SCM_PTR_LT and friends define how to compare two SCM_CELLPTRs (which may
  179. * point to cells in different heap segments).
  180. */
  181. #define SCM_PTR_LT(x, y) ((x) < (y))
  182. #define SCM_PTR_GT(x, y) (SCM_PTR_LT (y, x))
  183. #define SCM_PTR_LE(x, y) (!SCM_PTR_GT (x, y))
  184. #define SCM_PTR_GE(x, y) (!SCM_PTR_LT (x, y))
  185. /* Freelists consist of linked cells where the type entry holds the value
  186. * scm_tc_free_cell and the second entry holds a pointer to the next cell of
  187. * the freelist. Due to this structure, freelist cells are not cons cells
  188. * and thus may not be accessed using SCM_CAR and SCM_CDR.
  189. */
  190. #define SCM_FREE_CELL_P(x) \
  191. (!SCM_IMP (x) && (* (const scm_t_bits *) SCM2PTR (x) == scm_tc_free_cell))
  192. #define SCM_FREE_CELL_CDR(x) \
  193. (SCM_PACK (((const scm_t_bits *) SCM2PTR (x)) [1]))
  194. #define SCM_SET_FREE_CELL_CDR(x, v) \
  195. (((scm_t_bits *) SCM2PTR (x)) [1] = SCM_UNPACK (v))
  196. #define SCM_SET_FREE_CELL_TYPE(x) \
  197. (((scm_t_bits *) SCM2PTR (x)) [0] = scm_tc_free_cell)
  198. #if (SCM_DEBUG_CELL_ACCESSES == 1)
  199. # define SCM_GC_SET_ALLOCATED(x) \
  200. (((scm_t_bits *) SCM2PTR (x)) [0] = scm_tc16_allocated)
  201. #else
  202. # define SCM_GC_SET_ALLOCATED(x)
  203. #endif
  204. #ifdef GUILE_DEBUG_FREELIST
  205. #define SCM_NEWCELL(_into) do { _into = scm_debug_newcell (); } while (0)
  206. #define SCM_NEWCELL2(_into) do { _into = scm_debug_newcell2 (); } while (0)
  207. #else
  208. /* When we introduce POSIX threads support, every thread will have
  209. a freelist of its own. */
  210. #define SCM_NEWCELL(_into) \
  211. do { \
  212. if (SCM_NULLP (scm_freelist)) \
  213. { \
  214. _into = scm_gc_for_newcell (&scm_master_freelist, \
  215. &scm_freelist); \
  216. SCM_GC_SET_ALLOCATED (_into); \
  217. } \
  218. else \
  219. { \
  220. _into = scm_freelist; \
  221. scm_freelist = SCM_FREE_CELL_CDR (scm_freelist); \
  222. SCM_GC_SET_ALLOCATED (_into); \
  223. } \
  224. } while(0)
  225. #define SCM_NEWCELL2(_into) \
  226. do { \
  227. if (SCM_NULLP (scm_freelist2)) \
  228. { \
  229. _into = scm_gc_for_newcell (&scm_master_freelist2, \
  230. &scm_freelist2); \
  231. SCM_GC_SET_ALLOCATED (_into); \
  232. } \
  233. else \
  234. { \
  235. _into = scm_freelist2; \
  236. scm_freelist2 = SCM_FREE_CELL_CDR (scm_freelist2); \
  237. SCM_GC_SET_ALLOCATED (_into); \
  238. } \
  239. } while(0)
  240. #endif
  241. #define SCM_MARKEDP SCM_GCMARKP
  242. #define SCM_NMARKEDP(x) (!SCM_MARKEDP (x))
  243. #if (SCM_DEBUG_CELL_ACCESSES == 1)
  244. extern scm_t_bits scm_tc16_allocated;
  245. extern unsigned int scm_debug_cell_accesses_p;
  246. #endif
  247. extern struct scm_t_heap_seg_data *scm_heap_table;
  248. extern size_t scm_n_heap_segs;
  249. extern int scm_block_gc;
  250. extern int scm_gc_heap_lock;
  251. extern unsigned int scm_gc_running_p;
  252. extern size_t scm_default_init_heap_size_1;
  253. extern int scm_default_min_yield_1;
  254. extern size_t scm_default_init_heap_size_2;
  255. extern int scm_default_min_yield_2;
  256. extern size_t scm_default_max_segment_size;
  257. extern size_t scm_max_segment_size;
  258. extern SCM_CELLPTR scm_heap_org;
  259. extern SCM scm_freelist;
  260. extern struct scm_t_freelist scm_master_freelist;
  261. extern SCM scm_freelist2;
  262. extern struct scm_t_freelist scm_master_freelist2;
  263. extern unsigned long scm_gc_cells_collected;
  264. extern unsigned long scm_gc_yield;
  265. extern unsigned long scm_gc_malloc_collected;
  266. extern unsigned long scm_gc_ports_collected;
  267. extern unsigned long scm_cells_allocated;
  268. extern unsigned long scm_mallocated;
  269. extern unsigned long scm_mtrigger;
  270. extern SCM scm_after_gc_hook;
  271. extern scm_t_c_hook scm_before_gc_c_hook;
  272. extern scm_t_c_hook scm_before_mark_c_hook;
  273. extern scm_t_c_hook scm_before_sweep_c_hook;
  274. extern scm_t_c_hook scm_after_sweep_c_hook;
  275. extern scm_t_c_hook scm_after_gc_c_hook;
  276. #if defined (GUILE_DEBUG) || defined (GUILE_DEBUG_FREELIST)
  277. extern SCM scm_map_free_list (void);
  278. extern SCM scm_free_list_length (void);
  279. #endif
  280. #ifdef GUILE_DEBUG_FREELIST
  281. extern SCM scm_debug_newcell (void);
  282. extern SCM scm_debug_newcell2 (void);
  283. extern SCM scm_gc_set_debug_check_freelist_x (SCM flag);
  284. #endif
  285. #if (SCM_DEBUG_CELL_ACCESSES == 1)
  286. extern void scm_assert_cell_valid (SCM);
  287. extern SCM scm_set_debug_cell_accesses_x (SCM flag);
  288. #endif
  289. extern SCM scm_object_address (SCM obj);
  290. extern SCM scm_unhash_name (SCM name);
  291. extern SCM scm_gc_stats (void);
  292. extern SCM scm_gc (void);
  293. extern void scm_gc_for_alloc (struct scm_t_freelist *freelist);
  294. extern SCM scm_gc_for_newcell (struct scm_t_freelist *master, SCM *freelist);
  295. #if 0
  296. extern void scm_alloc_cluster (struct scm_t_freelist *master);
  297. #endif
  298. extern void scm_igc (const char *what);
  299. extern void scm_gc_mark (SCM p);
  300. extern void scm_gc_mark_dependencies (SCM p);
  301. extern void scm_mark_locations (SCM_STACKITEM x[], unsigned long n);
  302. extern int scm_cellp (SCM value);
  303. extern void scm_gc_sweep (void);
  304. extern void * scm_must_malloc (size_t len, const char *what);
  305. extern void * scm_must_realloc (void *where,
  306. size_t olen, size_t len,
  307. const char *what);
  308. extern char *scm_must_strdup (const char *str);
  309. extern char *scm_must_strndup (const char *str, size_t n);
  310. extern void scm_done_malloc (long size);
  311. extern void scm_done_free (long size);
  312. extern void scm_must_free (void *obj);
  313. extern void scm_remember_upto_here_1 (SCM obj);
  314. extern void scm_remember_upto_here_2 (SCM obj1, SCM obj2);
  315. extern void scm_remember_upto_here (SCM obj1, ...);
  316. extern SCM scm_return_first (SCM elt, ...);
  317. extern int scm_return_first_int (int x, ...);
  318. extern SCM scm_permanent_object (SCM obj);
  319. extern SCM scm_gc_protect_object (SCM obj);
  320. extern SCM scm_gc_unprotect_object (SCM obj);
  321. extern void scm_gc_register_root (SCM *p);
  322. extern void scm_gc_unregister_root (SCM *p);
  323. extern void scm_gc_register_roots (SCM *b, unsigned long n);
  324. extern void scm_gc_unregister_roots (SCM *b, unsigned long n);
  325. extern int scm_init_storage (void);
  326. extern void *scm_get_stack_base (void);
  327. extern void scm_init_gc (void);
  328. #if (SCM_DEBUG_DEPRECATED == 0)
  329. extern SCM scm_protect_object (SCM obj);
  330. extern SCM scm_unprotect_object (SCM obj);
  331. #define SCM_SETAND_CAR(x, y) \
  332. (SCM_SETCAR ((x), SCM_PACK (SCM_UNPACK (SCM_CAR (x)) & (y))))
  333. #define SCM_SETOR_CAR(x, y)\
  334. (SCM_SETCAR ((x), SCM_PACK (SCM_UNPACK (SCM_CAR (x)) | (y))))
  335. #define SCM_SETAND_CDR(x, y)\
  336. (SCM_SETCDR ((x), SCM_PACK (SCM_UNPACK (SCM_CDR (x)) & (y))))
  337. #define SCM_SETOR_CDR(x, y)\
  338. (SCM_SETCDR ((x), SCM_PACK (SCM_UNPACK (SCM_CDR (x)) | (y))))
  339. #define SCM_FREEP(x) (SCM_FREE_CELL_P (x))
  340. #define SCM_NFREEP(x) (!SCM_FREE_CELL_P (x))
  341. #define SCM_GC8MARKP(x) SCM_GCMARKP (x)
  342. #define SCM_SETGC8MARK(x) SCM_SETGCMARK (x)
  343. #define SCM_CLRGC8MARK(x) SCM_CLRGCMARK (x)
  344. #define SCM_GCTYP16(x) SCM_TYP16 (x)
  345. #define SCM_GCCDR(x) SCM_CDR (x)
  346. extern void scm_remember (SCM * ptr);
  347. #endif /* SCM_DEBUG_DEPRECATED == 0 */
  348. #endif /* SCM_GC_H */
  349. /*
  350. Local Variables:
  351. c-file-style: "gnu"
  352. End:
  353. */