/usr/include/elk/gc.h is in libelk0-dev 3.99.8-4.1+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 | /* gc.h
*
* $Id$
*
* Copyright 1990, 1991, 1992, 1993, 1994, 1995, Oliver Laumann, Berlin
* Copyright 2002, 2003 Sam Hocevar <sam@hocevar.net>, Paris
*
* This software was derived from Elk 1.2, which was Copyright 1987, 1988,
* 1989, Nixdorf Computer AG and TELES GmbH, Berlin (Elk 1.2 has been written
* by Oliver Laumann for TELES Telematic Services, Berlin, in a joint project
* between TELES and Nixdorf Microprocessor Engineering, Berlin).
*
* Oliver Laumann, TELES GmbH, Nixdorf Computer AG and Sam Hocevar, as co-
* owners or individual owners of copyright in this software, grant to any
* person or company a worldwide, royalty free, license to
*
* i) copy this software,
* ii) prepare derivative works based on this software,
* iii) distribute copies of this software or derivative works,
* iv) perform this software, or
* v) display this software,
*
* provided that this notice is not removed and that neither Oliver Laumann
* nor Teles nor Nixdorf are deemed to have made any representations as to
* the suitability of this software for any purpose nor are held responsible
* for any defects of this software.
*
* THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE.
*/
extern GCNODE *GC_List;
#define TAG_FUN -1
#define TAG_TCFUN -2
#define TAG_ARGS -3
#define TAG_ENV -4
#define GC_Node GCNODE gc1
#define GC_Node2 GCNODE gc1, gc2
#define GC_Node3 GCNODE gc1, gc2, gc3
#define GC_Node4 GCNODE gc1, gc2, gc3, gc4
#define GC_Node5 GCNODE gc1, gc2, gc3, gc4, gc5
#define GC_Node6 GCNODE gc1, gc2, gc3, gc4, gc5, gc6
#define GC_Node7 GCNODE gc1, gc2, gc3, gc4, gc5, gc6, gc7
#define GC_Link(x) {\
gc1.gclen = 0; gc1.gcobj = &x; gc1.next = GC_List; GC_List = &gc1;\
}
#define GC_Link2(x1,x2) {\
gc1.gclen = 0; gc1.gcobj = &x1; gc1.next = GC_List;\
gc2.gclen = 0; gc2.gcobj = &x2; gc2.next = &gc1; GC_List = &gc2;\
}
#define GC_Link3(x1,x2,x3) {\
gc1.gclen = 0; gc1.gcobj = &x1; gc1.next = GC_List;\
gc2.gclen = 0; gc2.gcobj = &x2; gc2.next = &gc1;\
gc3.gclen = 0; gc3.gcobj = &x3; gc3.next = &gc2; GC_List = &gc3;\
}
#define GC_Link4(x1,x2,x3,x4) {\
gc1.gclen = 0; gc1.gcobj = &x1; gc1.next = GC_List;\
gc2.gclen = 0; gc2.gcobj = &x2; gc2.next = &gc1;\
gc3.gclen = 0; gc3.gcobj = &x3; gc3.next = &gc2;\
gc4.gclen = 0; gc4.gcobj = &x4; gc4.next = &gc3; GC_List = &gc4;\
}
/* see src/proc.c */
#define GC_Link4_Tag_Primitive(args,fun,env,x4) {\
gc1.gclen = TAG_ARGS; gc1.gcobj = &args; gc1.next = GC_List;\
gc2.gclen = Tail_Call ? TAG_TCFUN : TAG_FUN;\
gc2.gcobj = &fun; gc2.next = &gc1;\
gc3.gclen = TAG_ENV; gc3.gcobj = &env; gc3.next = &gc2;\
gc4.gclen = 0; gc4.gcobj = &x4; gc4.next = &gc3; GC_List = &gc4;\
}
#define GC_Link5(x1,x2,x3,x4,x5) {\
gc1.gclen = 0; gc1.gcobj = &x1; gc1.next = GC_List;\
gc2.gclen = 0; gc2.gcobj = &x2; gc2.next = &gc1;\
gc3.gclen = 0; gc3.gcobj = &x3; gc3.next = &gc2;\
gc4.gclen = 0; gc4.gcobj = &x4; gc4.next = &gc3;\
gc5.gclen = 0; gc5.gcobj = &x5; gc5.next = &gc4; GC_List = &gc5;\
}
#define GC_Link6(x1,x2,x3,x4,x5,x6) {\
gc1.gclen = 0; gc1.gcobj = &x1; gc1.next = GC_List;\
gc2.gclen = 0; gc2.gcobj = &x2; gc2.next = &gc1;\
gc3.gclen = 0; gc3.gcobj = &x3; gc3.next = &gc2;\
gc4.gclen = 0; gc4.gcobj = &x4; gc4.next = &gc3;\
gc5.gclen = 0; gc5.gcobj = &x5; gc5.next = &gc4;\
gc6.gclen = 0; gc6.gcobj = &x6; gc6.next = &gc5; GC_List = &gc6;\
}
#define GC_Link7(x1,x2,x3,x4,x5,x6,x7) {\
gc1.gclen = 0; gc1.gcobj = &x1; gc1.next = GC_List;\
gc2.gclen = 0; gc2.gcobj = &x2; gc2.next = &gc1;\
gc3.gclen = 0; gc3.gcobj = &x3; gc3.next = &gc2;\
gc4.gclen = 0; gc4.gcobj = &x4; gc4.next = &gc3;\
gc5.gclen = 0; gc5.gcobj = &x5; gc5.next = &gc4;\
gc6.gclen = 0; gc6.gcobj = &x6; gc6.next = &gc5;\
gc7.gclen = 0; gc7.gcobj = &x7; gc7.next = &gc6; GC_List = &gc7;\
}
/* see src/proc.c */
#define GC_Link7_Tag_Compound(args,fun,env,x4,x5,x6,x7) {\
gc1.gclen = TAG_ARGS;\
gc1.gcobj = &args; gc1.next = GC_List;\
gc2.gclen = Tail_Call ? TAG_TCFUN : TAG_FUN;\
gc2.gcobj = &fun; gc2.next = &gc1;\
gc3.gclen = TAG_ENV;\
gc3.gcobj = &env; gc3.next = &gc2;\
gc4.gclen = 0; gc4.gcobj = &x4; gc4.next = &gc3;\
gc5.gclen = 0; gc5.gcobj = &x5; gc5.next = &gc4;\
gc6.gclen = 0; gc6.gcobj = &x6; gc6.next = &gc5;\
gc7.gclen = 0; gc7.gcobj = &x7; gc7.next = &gc6; GC_List = &gc7;\
}
#define GC_Unlink (GC_List = gc1.next)
C_LINKAGE_BEGIN
extern void Func_Global_GC_Link (Object*);
C_LINKAGE_END
#define Global_GC_Link(x) Func_Global_GC_Link(&x)
|