diff options
Diffstat (limited to 'vformat')
-rw-r--r-- | vformat/vf_iface.h | 45 |
1 files changed, 34 insertions, 11 deletions
diff --git a/vformat/vf_iface.h b/vformat/vf_iface.h index 8dc1b62..ab5e8d9 100644 --- a/vformat/vf_iface.h +++ b/vformat/vf_iface.h @@ -28,7 +28,7 @@ FILE $Workfile: vf_iface.h $ - $Revision: 1.30 $ + $Revision: 1.31 $ $Author: monos $ ORIGINAL AUTHOR @@ -42,6 +42,9 @@ REFERENCES MODIFICATION HISTORY * $Log: vf_iface.h,v $ + * Revision 1.31 2003/04/10 12:49:16 monos + * included type defs in vf_iface.h, started info documentation + * * Revision 1.30 2002/12/07 17:25:44 monos * *** empty log message *** * @@ -135,28 +138,47 @@ MODIFICATION HISTORY #define _VF_IFACE_H_ #ifndef NORCSID -static const char vf_iface_h_vss_id[] = "$Header: /cvsroot/vformat/src/vformat/vf_iface.h,v 1.30 2002/12/07 17:25:44 monos Exp $"; +static const char vf_iface_h_vss_id[] = "$Header: /cvsroot/vformat/src/vformat/vf_iface.h,v 1.31 2003/04/10 12:49:16 monos Exp $"; #endif /*============================================================================* Public Includes *============================================================================*/ +#include <stdarg.h> +#include <time.h> + +/*============================================================================* + Public defines + *============================================================================*/ -#include <common/types.h> +#undef NULL +#define NULL 0 -#include <stdarg.h> +#undef FALSE +#define FALSE ((bool_t)(0)) -/* c2man (for producing man pages) can't handle some lines in time.h */ +#undef TRUE +#define TRUE ((bool_t)(1)) -#ifndef __C2MAN__ -#include <time.h> + +/* + * Basic types. + */ +#if defined(HAVE_INTTYPES_H) +#include <inttypes.h> #else -#define time_t long int +typedef unsigned char uint8_t; +typedef unsigned short int uint16_t; +typedef unsigned int uint32_t; #endif -/*============================================================================* - Public defines - *============================================================================*/ +/* + * Please avoide 'BOOL' (from Windows) and 'bool' (from C++) - vformat is used + * extensively in pure C embedded applications where neither are relevant. + */ +typedef unsigned char bool_t; + + #if defined(__cplusplus) extern "C" { @@ -434,6 +456,7 @@ extern "C" { Public Types *============================================================================*/ + /* * Type representing "parser" - an object used to parse VOBJECTS. */ |