X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=includes%2FInfoTables.h;h=67bd97bc8f762b3d27e675daa2b2f98c96624b4c;hp=ea01abf2d8983ac11102325bdbdb995338bffca1;hb=55a5d8d90280a611bafb659bc80778d3927a6bff;hpb=7d6dffe542bdad5707a929ae7ac25813c586766d diff --git a/includes/InfoTables.h b/includes/InfoTables.h index ea01abf..67bd97b 100644 --- a/includes/InfoTables.h +++ b/includes/InfoTables.h @@ -353,7 +353,6 @@ typedef struct { #else StgInfoTable i; StgSRT *srt; /* pointer to the SRT table */ - StgFunPtr vector[FLEXIBLE_ARRAY]; #endif } StgRetInfoTable; @@ -389,7 +388,8 @@ typedef struct _StgConInfoTable { StgInfoTable i; #endif -char *con_desc; /* the name of the data constructor as: Package:Module.Name */ + OFFSET_FIELD(con_desc) // the name of the data constructor + // as: Package:Module.Name #if defined(TABLES_NEXT_TO_CODE) StgInfoTable i; @@ -412,6 +412,16 @@ char *con_desc; /* the name of the data constructor as: Package:Module.Name */ #endif /* + * GET_CON_DESC(info) + * info must be a StgConInfoTable*. + */ +#ifdef TABLES_NEXT_TO_CODE +#define GET_CON_DESC(info) ((char *)((StgWord)((info)+1) + (info->con_desc))) +#else +#define GET_CON_DESC(info) ((info)->con_desc) +#endif + +/* * GET_FUN_SRT(info) * info must be a StgFunInfoTable* */