source: git/ppcc/gclib/gc_mark.h @ 54b24c

spielwiese
Last change on this file since 54b24c was 54b24c, checked in by Reimer Behrends <behrends@…>, 5 years ago
Finalizing thread support.
  • Property mode set to 100644
File size: 2.1 KB
Line 
1/*
2 * @(#) gc_mark.h -- TinyGC additional header (explicit GC marker control).
3 * Copyright (C) 2006-2010 Ivan Maidanski <ivmai@mail.ru> All rights reserved.
4 **
5 * See also files: tinygc.c, gc.h, gc_gcj.h, javaxfc.h
6 */
7
8/*
9 * This is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2, or (at your option)
12 * any later version.
13 **
14 * This software is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License (GPL) for more details.
18 **
19 * Linking this library statically or dynamically with other modules is
20 * making a combined work based on this library. Thus, the terms and
21 * conditions of the GNU General Public License cover the whole
22 * combination.
23 **
24 * As a special exception, the copyright holders of this library give you
25 * permission to link this library with independent modules to produce an
26 * executable, regardless of the license terms of these independent
27 * modules, and to copy and distribute the resulting executable under
28 * terms of your choice, provided that you also meet, for each linked
29 * independent module, the terms and conditions of the license of that
30 * module. An independent module is a module which is not derived from
31 * or based on this library. If you modify this library, you may extend
32 * this exception to your version of the library, but you are not
33 * obligated to do so. If you do not wish to do so, delete this
34 * exception statement from your version.
35 */
36
37#ifndef GC_MARK_H
38#define GC_MARK_H
39
40/* TinyGC API is a subset of Boehm-Demers-Weiser Conservative GC API */
41
42#ifndef GC_H
43#include "gc.h"
44#endif
45
46#ifdef __cplusplus
47extern "C"
48{
49#endif
50
51#define GC_DS_TAG_BITS 2
52#define GC_DS_TAGS ((1 << GC_DS_TAG_BITS) - 1)
53
54#define GC_DS_LENGTH 0
55
56typedef void (GC_CALLBACK *GC_start_callback_proc)(void);
57GC_API void GC_CALL GC_set_start_callback(GC_start_callback_proc);
58GC_API GC_start_callback_proc GC_CALL GC_get_start_callback(void);
59
60#ifdef __cplusplus
61}
62#endif
63
64#endif
Note: See TracBrowser for help on using the repository browser.