[MLton-commit] r6509

Ville Laurikari ville at mlton.org
Wed Mar 26 10:07:29 PST 2008


Fixed typos and copy-paste mistakes.

----------------------------------------------------------------------

U   mlton/trunk/include/c-chunk.h
U   mlton/trunk/runtime/bytecode/interpret.c

----------------------------------------------------------------------

Modified: mlton/trunk/include/c-chunk.h
===================================================================
--- mlton/trunk/include/c-chunk.h	2008-03-26 08:04:22 UTC (rev 6508)
+++ mlton/trunk/include/c-chunk.h	2008-03-26 18:07:27 UTC (rev 6509)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999-2007 Henry Cejtin, Matthew Fluet, Suresh
+/* Copyright (C) 1999-2008 Henry Cejtin, Matthew Fluet, Suresh
  *    Jagannathan, and Stephen Weeks.
  * Copyright (C) 1997-2000 NEC Research Institute.
  *
@@ -201,14 +201,14 @@
 #endif
 /* WordS<N>_quot and WordS<N>_rem can't be inlined with the C-codegen,
  * because the gcc optimizer sometimes produces incorrect results when
- * one of the arguments is a constant.  
+ * one of the arguments is a constant.
  */
 #ifndef MLTON_CODEGEN_WORDSQUOTREM
-#define MLTON_CODEGEN_WORDSQUOTREM(func) 
+#define MLTON_CODEGEN_WORDSQUOTREM(func)
 #endif
 /* Declare memcpy, since <string.h> isn't included.
  */
-#ifndef MLTON_CODEGEN_MAMCPY
+#ifndef MLTON_CODEGEN_MEMCPY
 #define MLTON_CODEGEN_MEMCPY(decl)
 #endif
 MLTON_CODEGEN_MEMCPY(void * memcpy(void *, const void*, size_t);)

Modified: mlton/trunk/runtime/bytecode/interpret.c
===================================================================
--- mlton/trunk/runtime/bytecode/interpret.c	2008-03-26 08:04:22 UTC (rev 6508)
+++ mlton/trunk/runtime/bytecode/interpret.c	2008-03-26 18:07:27 UTC (rev 6509)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2004-2007 Henry Cejtin, Matthew Fluet, Suresh
+/* Copyright (C) 2004-2008 Henry Cejtin, Matthew Fluet, Suresh
  *    Jagannathan, and Stephen Weeks.
  *
  * MLton is released under a BSD-style license.
@@ -14,7 +14,7 @@
  * with "platform.h".
  */
 #ifndef MLTON_CODEGEN_MATHFN
-#define MLTON_CODEGEN_MATHFN(decl) 
+#define MLTON_CODEGEN_MATHFN(decl)
 #endif
 /* WordS<N>_quot and WordS<N>_rem can be inlined with the
  * bytecode-codegen, since they will be used in a context where the
@@ -25,7 +25,7 @@
 #endif
 /* No need to declare memcpy, since <string.h> comes with platform.h.
  */
-#ifndef MLTON_CODEGEN_MATHFN
+#ifndef MLTON_CODEGEN_MEMCPY
 #define MLTON_CODEGEN_MEMCPY(decl)
 #endif
 #include "platform.h"
@@ -265,7 +265,7 @@
                 goto mainLoop;                  \
         }
 
-/* The bytecode interpreter relies on the fact that the overflow checking 
+/* The bytecode interpreter relies on the fact that the overflow checking
  * primitives implemented in c-chunk.h only set the result if the operation does
  * not overflow.  When the result overflow, the interpreter pushes a zero on
  * the stack for the result.
@@ -384,7 +384,7 @@
                 goto mainLoop;                  \
         }
 
-/* The bytecode interpreter relies on the fact that the overflow checking 
+/* The bytecode interpreter relies on the fact that the overflow checking
  * primitives implemented in c-chunk.h only set the result if the operation does
  * not overflow.  When the result overflow, the interpreter pushes a zero on
  * the stack for the result.
@@ -623,4 +623,3 @@
         }
         interpret (b, codeOffset, FALSE);
 }
-




More information about the MLton-commit mailing list