projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91d3350
)
[project @ 2002-07-28 13:55:32 by krasimir]
author
krasimir
<unknown>
Sun, 28 Jul 2002 13:55:32 +0000
(13:55 +0000)
committer
krasimir
<unknown>
Sun, 28 Jul 2002 13:55:32 +0000
(13:55 +0000)
add `size` macro
ghc/utils/hsc2hs/template-hsc.h
patch
|
blob
|
history
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); \