view dmfile.h @ 96:6bf5220fa47e

Urgh .. use memset to silence some bogus GCC warnings about using potentially uninitialized values, while that will not actually be possible. In any case, it is annoying.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 02 Oct 2012 18:52:28 +0300
parents 32250b436bca
children d0257d0004f6
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, xtype v);

#include "dmfiletmpl.h"

#undef DM_DEFINE_FFUNC

BOOL    dm_fread_str(FILE *f, void *, size_t);
BOOL    dm_fwrite_str(FILE *f, void *, size_t);


#ifdef __cplusplus
}
#endif
#endif // DMFILE_H