*
* -------------------------------------------------------------------------- */
-#ifndef INFOTABLES_H
-#define INFOTABLES_H
+#ifndef RTS_STORAGE_INFOTABLES_H
+#define RTS_STORAGE_INFOTABLES_H
/* ----------------------------------------------------------------------------
Relative pointers
/*
* The "standard" part of an info table. Every info table has this bit.
*/
-typedef struct _StgInfoTable {
-
-#ifndef TABLES_NEXT_TO_CODE
- StgFunPtr entry; /* pointer to the entry code */
-#endif
+typedef struct StgInfoTable_ {
#ifdef PROFILING
StgProfInfo prof;
#ifdef TABLES_NEXT_TO_CODE
StgCode code[FLEXIBLE_ARRAY];
#endif
-} StgInfoTable;
+} *StgInfoTablePtr;
/* -----------------------------------------------------------------------------
bitmap fields have also been omitted.
-------------------------------------------------------------------------- */
-typedef struct _StgFunInfoExtraRev {
+typedef struct StgFunInfoExtraRev_ {
OFFSET_FIELD ( slow_apply_offset ); /* apply to args on the stack */
union {
StgWord bitmap;
StgHalfWord arity; /* function arity */
} StgFunInfoExtraRev;
-typedef struct _StgFunInfoExtraFwd {
+typedef struct StgFunInfoExtraFwd_ {
StgHalfWord fun_type; /* function type */
StgHalfWord arity; /* function arity */
StgSRT *srt; /* pointer to the SRT table */
* pointer iff srt_bitmap is zero.
*/
-typedef struct _StgThunkInfoTable {
+typedef struct StgThunkInfoTable_ {
#if !defined(TABLES_NEXT_TO_CODE)
StgInfoTable i;
#endif
Constructor info tables
-------------------------------------------------------------------------- */
-typedef struct _StgConInfoTable {
+typedef struct StgConInfoTable_ {
#if !defined(TABLES_NEXT_TO_CODE)
StgInfoTable i;
#endif
#else
#define GET_PROF_DESC(info) ((info)->prof.closure_desc)
#endif
-#endif /* INFOTABLES_H */
+
+#endif /* RTS_STORAGE_INFOTABLES_H */