[MLton-commit] r4340
Matthew Fluet
MLton@mlton.org
Thu, 2 Feb 2006 16:58:02 -0800
Add UIntmax to generated C types; we'll use this for SysWord
----------------------------------------------------------------------
U mlton/branches/on-20050822-x86_64-branch/runtime/gen/gen-types.c
----------------------------------------------------------------------
Modified: mlton/branches/on-20050822-x86_64-branch/runtime/gen/gen-types.c
===================================================================
--- mlton/branches/on-20050822-x86_64-branch/runtime/gen/gen-types.c 2006-02-03 00:54:06 UTC (rev 4339)
+++ mlton/branches/on-20050822-x86_64-branch/runtime/gen/gen-types.c 2006-02-03 00:58:00 UTC (rev 4340)
@@ -291,6 +291,12 @@
aliastype("Int", "Sock");
writeNewline (cTypesHFd);writeNewline (cTypesSMLFd);
+ writeStringWithNewline (cTypesHFd, "/* C99 */");
+ writeStringWithNewline (cTypesSMLFd, "(* C99 *)");
+ chksystype(intmax_t, "Intmax");
+ chksystype(uintmax_t, "UIntmax");
+
+ writeNewline (cTypesHFd);writeNewline (cTypesSMLFd);
writeStringWithNewline (cTypesHFd, "/* from <dirent.h> */");
writeStringWithNewline (cTypesSMLFd, "(* from <dirent.h> *)");
// ptrtype(DIR*, "DirP");