2012-09-06 18:24:09 +04:00
|
|
|
#ifndef _IDRISSTDFGN_H
|
|
|
|
#define _IDRISSTDFGN_H
|
|
|
|
|
2015-07-01 15:56:57 +03:00
|
|
|
#include "idris_rts.h"
|
|
|
|
|
2012-09-06 18:24:09 +04:00
|
|
|
// A collection of useful standard functions to be used by the prelude.
|
|
|
|
|
|
|
|
void putStr(char* str);
|
|
|
|
//char* readStr();
|
|
|
|
|
|
|
|
void* fileOpen(char* f, char* mode);
|
|
|
|
void fileClose(void* h);
|
2013-09-02 17:58:47 +04:00
|
|
|
int fileEOF(void* h);
|
|
|
|
int fileError(void* h);
|
2015-01-18 03:14:38 +03:00
|
|
|
// return 0 on success
|
|
|
|
int idris_writeStr(void*h, char* str);
|
2012-09-06 18:24:09 +04:00
|
|
|
|
2014-02-21 03:30:16 +04:00
|
|
|
void* do_popen(const char* cmd, const char* mode);
|
|
|
|
int fpoll(void* h);
|
|
|
|
|
2014-01-20 14:42:28 +04:00
|
|
|
int idris_eqPtr(void* x, void* y);
|
2012-09-06 18:24:09 +04:00
|
|
|
int isNull(void* ptr);
|
|
|
|
void* idris_stdin();
|
|
|
|
|
2013-09-22 05:54:25 +04:00
|
|
|
char* getEnvPair(int i);
|
|
|
|
|
2015-07-01 15:56:57 +03:00
|
|
|
VAL idris_time();
|
2014-02-28 14:18:41 +04:00
|
|
|
|
2014-03-02 04:30:49 +04:00
|
|
|
void idris_forceGC();
|
|
|
|
|
2012-09-06 18:24:09 +04:00
|
|
|
#endif
|