| 1 | /* Copyright (C) 2019 Matthew Fluet. |
| 2 | * Copyright (C) 1999-2007 Henry Cejtin, Matthew Fluet, Suresh |
| 3 | * Jagannathan, and Stephen Weeks. |
| 4 | * Copyright (C) 1997-2000 NEC Research Institute. |
| 5 | * |
| 6 | * MLton is released under a HPND-style license. |
| 7 | * See the file MLton-LICENSE for details. |
| 8 | */ |
| 9 | |
| 10 | #ifndef _C_COMMON_H_ |
| 11 | #define _C_COMMON_H_ |
| 12 | |
| 13 | #ifndef TRUE |
| 14 | #define TRUE 1 |
| 15 | #endif |
| 16 | |
| 17 | #ifndef FALSE |
| 18 | #define FALSE 0 |
| 19 | #endif |
| 20 | |
| 21 | #ifndef DEBUG_CCODEGEN |
| 22 | #define DEBUG_CCODEGEN FALSE |
| 23 | #endif |
| 24 | |
| 25 | #include "export.h" |
| 26 | |
| 27 | typedef uintptr_t ChunkFn_t (CPointer, CPointer, CPointer, uintptr_t); |
| 28 | typedef ChunkFn_t *ChunkFnPtr_t; |
| 29 | |
| 30 | PRIVATE uintptr_t MLton_unreachable(); |
| 31 | PRIVATE uintptr_t Thread_returnToC(); |
| 32 | |
| 33 | #endif /* #ifndef _C_COMMON_H_ */ |