Mercurial > hg > dmlib
view 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 |
line wrap: on
line source
/* * DMLib * -- Main header file * Programmed and designed by Matti 'ccr' Hamalainen * (C) Copyright 2011 Tecnic Software productions (TNSP) */ #ifndef DMFILE_H #define DMFILE_H #include "dmlib.h" /* Plain file endianess functions */ #define DM_DEFINE_FFUNC(xname, xtype, z) \ BOOL dm_fread_ ## xname (FILE *f, xtype *v); \ BOOL dm_fwrite_ ## xname (FILE *f, const xtype v); #include "dmfiletmpl.h" #undef DM_DEFINE_FFUNC BOOL dm_fread_str(FILE *f, void *, const size_t); BOOL dm_fwrite_str(FILE *f, const void *, const size_t); BOOL dm_fread_byte(FILE *f, Uint8 *); BOOL dm_fwrite_byte(FILE *f, const Uint8); #ifdef __cplusplus } #endif #endif // DMFILE_H