X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=includes%2FmkDerivedConstants.c;h=56296ec4f147eef3c24b37adee8c7d72c13d3efc;hb=b0ca990457eaf7991e72b13d0040d937b5759b36;hp=aa3c6730f8f8b2dae1e89a63edff2f1591952c50;hpb=6015a94f9108a502150565577b66c23650796639;p=ghc-hetmet.git diff --git a/includes/mkDerivedConstants.c b/includes/mkDerivedConstants.c index aa3c673..56296ec 100644 --- a/includes/mkDerivedConstants.c +++ b/includes/mkDerivedConstants.c @@ -40,8 +40,9 @@ #endif #if defined(GEN_HASKELL) -#define def_offset(str, offset) \ - printf("oFFSET_" str " = %" SIZET_FMT "::Int\n", offset); +#define def_offset(str, offset) \ + printf("oFFSET_" str " :: Int\n"); \ + printf("oFFSET_" str " = %" SIZET_FMT "\n", offset); #else #define def_offset(str, offset) \ printf("#define OFFSET_" str " %" SIZET_FMT "\n", offset); @@ -87,8 +88,9 @@ struct_field_macro(str) #if defined(GEN_HASKELL) -#define def_size(str, size) \ - printf("sIZEOF_" str " = %d::Int\n", size); +#define def_size(str, size) \ + printf("sIZEOF_" str " :: Int\n"); \ + printf("sIZEOF_" str " = %d\n", size); #else #define def_size(str, size) \ printf("#define SIZEOF_" str " %d\n", size); @@ -403,10 +405,6 @@ main(int argc, char *argv[]) struct_field(StgLargeBitmap, size); field_offset(StgLargeBitmap, bitmap); - struct_field(StgRetFun, size); - struct_field(StgRetFun, tag); - struct_field(StgRetFun, fun); - struct_size(snEntry); struct_field(snEntry,sn_obj); struct_field(snEntry,addr);