Mercurial > hg > dmlib
comparison dmfile.h @ 0:32250b436bca
Initial re-import.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 28 Sep 2012 01:54:23 +0300 |
parents | |
children | d0257d0004f6 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:32250b436bca |
---|---|
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); \ | |
17 BOOL dm_fwrite_ ## xname (FILE *f, xtype v); | |
18 | |
19 #include "dmfiletmpl.h" | |
20 | |
21 #undef DM_DEFINE_FFUNC | |
22 | |
23 BOOL dm_fread_str(FILE *f, void *, size_t); | |
24 BOOL dm_fwrite_str(FILE *f, void *, size_t); | |
25 | |
26 | |
27 #ifdef __cplusplus | |
28 } | |
29 #endif | |
30 #endif // DMFILE_H |