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 |
---|
47 | extern "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 | |
---|
56 | typedef void (GC_CALLBACK *GC_start_callback_proc)(void); |
---|
57 | GC_API void GC_CALL GC_set_start_callback(GC_start_callback_proc); |
---|
58 | GC_API GC_start_callback_proc GC_CALL GC_get_start_callback(void); |
---|
59 | |
---|
60 | #ifdef __cplusplus |
---|
61 | } |
---|
62 | #endif |
---|
63 | |
---|
64 | #endif |
---|