cpp: Use #pragma once instead of #ifndef guards
[ghc.git] / includes / rts / Ticky.h
1 /* -----------------------------------------------------------------------------
2 *
3 * (c) The GHC Team, 1998-2009
4 *
5 * TICKY_TICKY types
6 *
7 * Do not #include this file directly: #include "Rts.h" instead.
8 *
9 * To understand the structure of the RTS headers, see the wiki:
10 * http://ghc.haskell.org/trac/ghc/wiki/Commentary/SourceTree/Includes
11 *
12 * ---------------------------------------------------------------------------*/
13
14 #pragma once
15
16 /* -----------------------------------------------------------------------------
17 The StgEntCounter type - needed regardless of TICKY_TICKY
18 -------------------------------------------------------------------------- */
19
20 typedef struct _StgEntCounter {
21 /* Using StgWord for everything, because both the C and asm code
22 generators make trouble if you try to pack things tighter */
23 StgWord registeredp; /* 0 == no, 1 == yes */
24 StgInt arity; /* arity (static info) */
25 StgInt allocd; /* # allocation of this closure */
26 /* (rest of args are in registers) */
27 char *str; /* name of the thing */
28 char *arg_kinds; /* info about the args types */
29 StgInt entry_count; /* Trips to fast entry code */
30 StgInt allocs; /* number of allocations by this fun */
31 struct _StgEntCounter *link;/* link to chain them all together */
32 } StgEntCounter;