X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=includes%2FInfoTables.h;h=67bd97bc8f762b3d27e675daa2b2f98c96624b4c;hb=098f818b622e5095fbd3f6318a463fcb2ce14fc6;hp=9b73aa593c814554fce23eea6da349cbde587d27;hpb=9ff76535edb25ab7434284adddb5c64708ecb547;p=ghc-hetmet.git diff --git a/includes/InfoTables.h b/includes/InfoTables.h index 9b73aa5..67bd97b 100644 --- a/includes/InfoTables.h +++ b/includes/InfoTables.h @@ -388,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; @@ -411,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* */