| 1 | #ifndef __ARIKKEI_IOLIB_H__ |
| 2 | #define __ARIKKEI_IOLIB_H__ |
| 3 | |
| 4 | /* |
| 5 | * Arikkei |
| 6 | * |
| 7 | * Basic datatypes and code snippets |
| 8 | * |
| 9 | * Author: |
| 10 | * Lauris Kaplinski <[email protected]> |
| 11 | * |
| 12 | * This code is in public domain |
| 13 | * |
| 14 | */ |
| 15 | |
| 16 | #include <stdio.h> |
| 17 | |
| 18 | #ifdef __cplusplus |
| 19 | extern "C" { |
| 20 | #endif |
| 21 | |
| 22 | // All file names are UTF-8 |
| 23 | |
| 24 | const unsigned char *arikkei_mmap (const unsigned char *filename, size_t *size, const unsigned char *name); |
| 25 | void arikkei_munmap (const unsigned char *buffer, size_t size); |
| 26 | |
| 27 | FILE *arikkei_fopen (const unsigned char *filename, const unsigned char *mode); |
| 28 | |
| 29 | #ifdef __cplusplus |
| 30 | } |
| 31 | #endif |
| 32 | |
| 33 | #endif |