From 0b61fda9ab740a100f8f49f2bd0ed7468c79f55c Mon Sep 17 00:00:00 2001 From: Mathias Palm Date: Sun, 10 Feb 2013 20:09:14 +0100 Subject: Copy common/types.h to vformat/vf_iface.h Copy the content of common/types.h into vformat/vf_iface.h. Keep common/types.h because some files depends on it. --- vformat/vf_iface.h | 45 ++++++++++++++++++++++++++++++++++----------- 1 file changed, 34 insertions(+), 11 deletions(-) (limited to 'vformat') 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 +#include + +/*============================================================================* + Public defines + *============================================================================*/ -#include +#undef NULL +#define NULL 0 -#include +#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 + +/* + * Basic types. + */ +#if defined(HAVE_INTTYPES_H) +#include #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. */ -- cgit v1.1-32-gdbae