Last change
on this file since 80 was
80,
checked in by Sam Hocevar, 14 years ago
|
- Adding the Golgotha source code. Not sure what's going to be interesting
in there, but since it's all public domain, there's certainly stuff to
pick up.
|
File size:
1.1 KB
|
Line | |
---|
1 | /********************************************************************** <BR>
|
---|
2 | This file is part of Crack dot Com's free source code release of
|
---|
3 | Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
|
---|
4 | information about compiling & licensing issues visit this URL</a>
|
---|
5 | <PRE> If that doesn't help, contact Jonathan Clark at
|
---|
6 | golgotha_source@usa.net (Subject should have "GOLG" in it)
|
---|
7 | ***********************************************************************/
|
---|
8 |
|
---|
9 | #ifndef OBJ_CONSCELL_HH
|
---|
10 | #define OBJ_CONSCELL_HH
|
---|
11 |
|
---|
12 | #include "arch.hh"
|
---|
13 | #include "g1_limits.hh"
|
---|
14 | #include "memory/lalloc.hh"
|
---|
15 |
|
---|
16 |
|
---|
17 |
|
---|
18 | class g1_object_class;
|
---|
19 | class g1_obj_conscell_class;
|
---|
20 |
|
---|
21 | class g1_obj_conscell_class
|
---|
22 | {
|
---|
23 | public:
|
---|
24 | g1_object_class *data;
|
---|
25 | g1_obj_conscell_class *next;
|
---|
26 |
|
---|
27 | };
|
---|
28 |
|
---|
29 |
|
---|
30 | class g1_obj_conscell_manager_class : public i4_linear_allocator
|
---|
31 | {
|
---|
32 | enum { MAXIMUM_OCCUPANCY=G1_MAX_OBJECTS*4 * 2/3 };
|
---|
33 |
|
---|
34 | public:
|
---|
35 | g1_obj_conscell_manager_class()
|
---|
36 | : i4_linear_allocator(sizeof(g1_obj_conscell_class),
|
---|
37 | MAXIMUM_OCCUPANCY,0,"g1_conscells") {}
|
---|
38 | };
|
---|
39 |
|
---|
40 | extern g1_obj_conscell_manager_class *g1_obj_conscell_manager;
|
---|
41 |
|
---|
42 | #endif
|
---|
Note: See
TracBrowser
for help on using the repository browser.