projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[project @ 2002-07-28 13:55:32 by krasimir]
[ghc-hetmet.git]
/
ghc
/
utils
/
hsc2hs
/
template-hsc.h
diff --git
a/ghc/utils/hsc2hs/template-hsc.h
b/ghc/utils/hsc2hs/template-hsc.h
index
fdd4b76
..
bdc34ed
100644
(file)
--- a/
ghc/utils/hsc2hs/template-hsc.h
+++ b/
ghc/utils/hsc2hs/template-hsc.h
@@
-69,6
+69,9
@@
#define hsc_offset(t, f) \
printf("(%ld)", (long) offsetof (t, f));
+#define hsc_size(t) \
+ printf("(%ld)", (long) sizeof(t));
+
#define hsc_enum(t, f, print_name, x) \
print_name; \
printf (" :: %s\n", #t); \