summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-03-25 23:30:34 +0000
committerIan Lynagh <igloo@earth.li>2008-03-25 23:30:34 +0000
commited9b6b23e6f647871acb47916f8c247a2f192a1c (patch)
tree7340796de786dcab26183d292d1fe39c9fad4bc3 /includes
parent09d7584db4aa581570aa1edcf7ca8b73adf8e027 (diff)
downloadhaskell-ed9b6b23e6f647871acb47916f8c247a2f192a1c.tar.gz
Fix warnings in main/Constants
Diffstat (limited to 'includes')
-rw-r--r--includes/mkDerivedConstants.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/includes/mkDerivedConstants.c b/includes/mkDerivedConstants.c
index 2fe99b6ba5..56296ec4f1 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);