mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-14 18:31:52 -04:00
trying to debug, additional rewrites
This commit is contained in:
parent
378b5586ab
commit
42f780a729
87 changed files with 1771 additions and 529 deletions
|
@ -17,10 +17,21 @@ typedef struct _temp_storage_file_wr TMPFILE_WR;
|
|||
TMPFILE_RD *temp_storage_open(const char *name);
|
||||
TMPFILE_WR *temp_storage_create(const char *name);
|
||||
TMPFILE_WR *temp_storage_append(const char *name);
|
||||
void temp_storage_delete(const char *name);
|
||||
void temp_storage_close_rd(TMPFILE_RD *f);
|
||||
void temp_storage_close_wr(TMPFILE_WR *f);
|
||||
int temp_storage_getc(TMPFILE_RD *f);
|
||||
void temp_storage_ungetc(TMPFILE_RD *f);
|
||||
void temp_storage_write(const void *data, uint32_t size, TMPFILE_WR *f);
|
||||
uint32_t temp_storage_read(void *data, uint32_t size, TMPFILE_RD *f);
|
||||
void temp_storage_skip(TMPFILE_RD *f, int bytes);
|
||||
|
||||
int *temp_storage_internal_skip_ptr(TMPFILE_RD *f);
|
||||
void temp_storage_internal_begin_scanf(TMPFILE_RD *f, const char *format, ... );
|
||||
int temp_storage_internal_end_scanf(TMPFILE_RD *f);
|
||||
|
||||
|
||||
#define temp_storage_scanf(f, format, ...) (temp_storage_internal_begin_scanf(f, format "%n", __VA_ARGS__, temp_storage_internal_skip_ptr(f)),temp_storage_internal_end_scanf(f))
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue