Mercurial > hg > dmlib
annotate dmfile.h @ 405:d0257d0004f6
Implement dm_{read,write}_byte() and constify.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 03 Nov 2012 01:42:45 +0200 |
parents | 32250b436bca |
children | c452a459e552 |
rev | line source |
---|---|
0 | 1 /* |
2 * DMLib | |
3 * -- Main header file | |
4 * Programmed and designed by Matti 'ccr' Hamalainen | |
5 * (C) Copyright 2011 Tecnic Software productions (TNSP) | |
6 */ | |
7 #ifndef DMFILE_H | |
8 #define DMFILE_H | |
9 | |
10 #include "dmlib.h" | |
11 | |
12 | |
13 /* Plain file endianess functions | |
14 */ | |
15 #define DM_DEFINE_FFUNC(xname, xtype, z) \ | |
16 BOOL dm_fread_ ## xname (FILE *f, xtype *v); \ | |
405
d0257d0004f6
Implement dm_{read,write}_byte() and constify.
Matti Hamalainen <ccr@tnsp.org>
parents:
0
diff
changeset
|
17 BOOL dm_fwrite_ ## xname (FILE *f, const xtype v); |
0 | 18 |
19 #include "dmfiletmpl.h" | |
20 | |
21 #undef DM_DEFINE_FFUNC | |
22 | |
405
d0257d0004f6
Implement dm_{read,write}_byte() and constify.
Matti Hamalainen <ccr@tnsp.org>
parents:
0
diff
changeset
|
23 BOOL dm_fread_str(FILE *f, void *, const size_t); |
d0257d0004f6
Implement dm_{read,write}_byte() and constify.
Matti Hamalainen <ccr@tnsp.org>
parents:
0
diff
changeset
|
24 BOOL dm_fwrite_str(FILE *f, const void *, const size_t); |
d0257d0004f6
Implement dm_{read,write}_byte() and constify.
Matti Hamalainen <ccr@tnsp.org>
parents:
0
diff
changeset
|
25 |
d0257d0004f6
Implement dm_{read,write}_byte() and constify.
Matti Hamalainen <ccr@tnsp.org>
parents:
0
diff
changeset
|
26 BOOL dm_fread_byte(FILE *f, Uint8 *); |
d0257d0004f6
Implement dm_{read,write}_byte() and constify.
Matti Hamalainen <ccr@tnsp.org>
parents:
0
diff
changeset
|
27 BOOL dm_fwrite_byte(FILE *f, const Uint8); |
0 | 28 |
29 | |
30 #ifdef __cplusplus | |
31 } | |
32 #endif | |
33 #endif // DMFILE_H |