summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAustin Seipp <austin@well-typed.com>2014-08-20 12:43:32 -0500
committerAustin Seipp <austin@well-typed.com>2014-08-20 12:51:30 -0500
commite7dd07345fbfe7623823ebd0442dbdab7f4b81c2 (patch)
treef2bdc654995dda61dee372ef9704252fb200fab2
parentefcf0ab2a5efc37c4c17cb31957c1fc37d924e50 (diff)
downloadhaskell-e7dd07345fbfe7623823ebd0442dbdab7f4b81c2.tar.gz
[ci skip] includes: detabify/dewhitespace stg/Types.h
Signed-off-by: Austin Seipp <austin@well-typed.com>
-rw-r--r--includes/stg/Types.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/includes/stg/Types.h b/includes/stg/Types.h
index bdd3860929..b27430f218 100644
--- a/includes/stg/Types.h
+++ b/includes/stg/Types.h
@@ -11,7 +11,7 @@
* http://ghc.haskell.org/trac/ghc/wiki/Commentary/SourceTree/Includes
*
* NOTE: assumes #include "ghcconfig.h"
- *
+ *
* Works with or without _POSIX_SOURCE.
*
* WARNING: Keep this file, MachDeps.h, and HsFFI.h in synch!
@@ -26,19 +26,19 @@
*
* Specifically:
- StgInt8, 16, 32, 64
- StgWord8, 16, 32, 64
- StgChar, StgFloat, StgDouble
-
- ***** All the same size (i.e. sizeof(void *)): *****
- StgPtr Basic pointer type
- StgWord Unit of heap allocation
- StgInt Signed version of StgWord
- StgAddr Generic address type
-
- StgBool, StgVoid, StgPtr, StgOffset,
- StgCode, StgStablePtr, StgFunPtr,
- StgUnion.
+ StgInt8, 16, 32, 64
+ StgWord8, 16, 32, 64
+ StgChar, StgFloat, StgDouble
+
+ ***** All the same size (i.e. sizeof(void *)): *****
+ StgPtr Basic pointer type
+ StgWord Unit of heap allocation
+ StgInt Signed version of StgWord
+ StgAddr Generic address type
+
+ StgBool, StgVoid, StgPtr, StgOffset,
+ StgCode, StgStablePtr, StgFunPtr,
+ StgUnion.
*/
/*
@@ -104,7 +104,7 @@ typedef StgWord32 StgHalfWord;
#define FMT_Int FMT_Int64
#else
#if SIZEOF_VOID_P == 4
-typedef StgInt32 StgInt;
+typedef StgInt32 StgInt;
typedef StgWord32 StgWord;
typedef StgInt16 StgHalfInt;
typedef StgWord16 StgHalfWord;
@@ -125,13 +125,13 @@ typedef StgWord16 StgHalfWord;
typedef void* StgAddr;
typedef StgWord32 StgChar;
typedef int StgBool;
-typedef float StgFloat;
-typedef double StgDouble;
+typedef float StgFloat;
+typedef double StgDouble;
typedef StgWord* StgPtr; /* heap or stack pointer */
typedef StgWord volatile* StgVolatilePtr; /* pointer to volatile word */
typedef StgWord StgOffset; /* byte offset within closure */
-typedef StgWord8 StgCode; /* close enough */
-typedef void* StgStablePtr;
+typedef StgWord8 StgCode; /* close enough */
+typedef void* StgStablePtr;
typedef StgWord8* StgByteArray;
/*
@@ -141,7 +141,7 @@ typedef StgWord8* StgByteArray;
function to be called use: Ptr to Fun that returns a Ptr to Fun
which returns Ptr to void
- Note: Neither StgFunPtr not StgFun is quite right (that is,
+ Note: Neither StgFunPtr not StgFun is quite right (that is,
StgFunPtr != StgFun*). So, the functions we define all have type
StgFun but we always have to cast them to StgFunPtr when we assign
them to something.