mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-24 08:04:55 -04:00
revision of events
This commit is contained in:
parent
858c4384e8
commit
669f72908e
33 changed files with 661 additions and 382 deletions
|
@ -28,11 +28,14 @@ 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, ... ) __attribute__((format(scanf, 2, 3)));
|
||||
int temp_storage_internal_end_scanf(TMPFILE_RD *f);
|
||||
int temp_storage_internal_begin_scanf(TMPFILE_RD *f, const char *format, ... ) __attribute__((format(scanf, 2, 3)));
|
||||
int temp_storage_internal_end_scanf(TMPFILE_RD *f, int r);
|
||||
|
||||
|
||||
#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))
|
||||
#define temp_storage_scanf(f, format, ...) \
|
||||
temp_storage_internal_end_scanf(f,\
|
||||
temp_storage_internal_begin_scanf(f, format "%n", \
|
||||
__VA_ARGS__, temp_storage_internal_skip_ptr(f)))
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue