mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-29 22:51:51 +03:00
60d597fccd
Pragma once is supported by all compilers for the last ten years. Better use it instead of include guards (which use different styles in different files).
46 lines
1.2 KiB
C
46 lines
1.2 KiB
C
#pragma once
|
|
|
|
#include "cBackend.h"
|
|
|
|
|
|
|
|
// IORef
|
|
|
|
Value *newIORef(Value *, Value *, Value *);
|
|
Value *readIORef(Value *, Value *, Value *);
|
|
Value *writeIORef(Value *, Value *, Value *, Value *);
|
|
|
|
// Sys
|
|
|
|
Value *sysOS(void);
|
|
Value* idris2_crash(Value* msg);
|
|
|
|
// Array
|
|
|
|
Value *newArray(Value *, Value *, Value *, Value *);
|
|
Value *arrayGet(Value *, Value *, Value *, Value *);
|
|
Value *arraySet(Value *, Value *, Value *, Value *, Value *);
|
|
|
|
// Pointer
|
|
Value *onCollect(Value *, Value *, Value *, Value *);
|
|
Value *onCollectAny(Value *, Value *, Value *, Value *);
|
|
|
|
Value *voidElim(Value *, Value *);
|
|
|
|
// Threads
|
|
Value *System_Concurrency_Raw_prim__mutexRelease(Value *, Value *);
|
|
|
|
Value *System_Concurrency_Raw_prim__mutexAcquire(Value *, Value *);
|
|
|
|
Value *System_Concurrency_Raw_prim__makeMutex(Value *);
|
|
|
|
Value *System_Concurrency_Raw_prim__makeCondition(Value *);
|
|
|
|
Value *System_Concurrency_Raw_prim__conditionWait(Value *, Value *, Value *);
|
|
|
|
Value *System_Concurrency_Raw_prim__conditionWaitTimeout(Value *, Value *, Value *, Value *);
|
|
|
|
Value *System_Concurrency_Raw_prim__conditionSignal(Value *, Value *);
|
|
|
|
Value *System_Concurrency_Raw_prim__conditionBroadcast(Value *, Value *);
|