Mercurial > hg > dmlib
view src/dmfile.h @ 1397:01d9bd6e88a8
Indentation cosmetics.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 28 Oct 2017 04:25:42 +0300 |
parents | 1e5cf1144f36 |
children | c543f5ae92d5 |
line wrap: on
line source
/* * DMLib * -- Standard I/O (stdio) file write/read endianess helpers * Programmed and designed by Matti 'ccr' Hamalainen * (C) Copyright 2011 Tecnic Software productions (TNSP) */ #ifndef DMFILE_H #define DMFILE_H #include "dmlib.h" #ifdef __cplusplus extern "C" { #endif /* 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); int dmReadDataFile(FILE *inFile, const char *filename, Uint8 **buf, size_t *size); #ifdef __cplusplus } #endif #endif // DMFILE_H