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:
parent
2e0104b5ee
commit
015b81fb25
@ -28,6 +28,11 @@ typedef struct {
|
|||||||
TempFile* temp_files = NULL;
|
TempFile* temp_files = NULL;
|
||||||
size_t num_temp_files = 0;
|
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
|
#ifdef DEBUG
|
||||||
# define line_fail(x) do { \
|
# define line_fail(x) do { \
|
||||||
printf("failed on line %d\n", __LINE__ + x); \
|
printf("failed on line %d\n", __LINE__ + x); \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user