1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2025-01-10 08:27:48 +05:30

reverse-ramdisk.c: add function prototypes

This commit is contained in:
パチュリー・ノーレッジ 2023-12-27 19:11:00 +03:00
parent 2e0104b5ee
commit 015b81fb25
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -28,6 +28,11 @@ typedef struct {
TempFile* temp_files = NULL;
size_t num_temp_files = 0;
int tf_alloc(size_t n, size_t type_size);
int tf_free(int ID);
int tf_write(int ID, size_t offset, void* data, size_t data_size);
int tf_read(int ID, size_t offset, void* dest, size_t data_size);
#ifdef DEBUG
# define line_fail(x) do { \
printf("failed on line %d\n", __LINE__ + x); \