summaryrefslogtreecommitdiffstats
path: root/vformat
diff options
context:
space:
mode:
authorGravatar Mathias Palm2013-02-10 20:09:14 +0100
committerGravatar Nikias Bassen2013-02-10 20:09:14 +0100
commit0b61fda9ab740a100f8f49f2bd0ed7468c79f55c (patch)
tree2e44dba1e85fbb6677c773c4a5f5f9f5ace7cbf6 /vformat
parentd3a53b82aa57f5090d95b69e6f567b06eb544df9 (diff)
downloadlibvformat-0b61fda9ab740a100f8f49f2bd0ed7468c79f55c.tar.gz
libvformat-0b61fda9ab740a100f8f49f2bd0ed7468c79f55c.tar.bz2
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.
Diffstat (limited to 'vformat')
-rw-r--r--vformat/vf_iface.h45
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.
*/