fvstypes.h
Go to the documentation of this file.00001 /*######################################################################## 00002 00003 The contents of this file are subject to the Mozilla Public License 00004 Version 1.0(the "License"); You may NOT use this file except in 00005 compliance with the License. You may obtain a copy of the License at 00006 http:// www.mozilla.org/MPL/ 00007 Software distributed under the License is distributed on an "AS IS" 00008 basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See 00009 the License for the specific language governing rights and limitations 00010 under the License. 00011 00012 The Initial Developer of the Original Code is Shivang Patel. 00013 00014 Copyright(C) 2002-2003. All Rights Reserved. 00015 00016 Authors: Shivang Patel 00017 Jaap de Haan(jdh) 00018 00019 ########################################################################*/ 00020 00021 #if !defined FVS__FVSTYPES_HEADER__INCLUDED__ 00022 #define FVS__FVSTYPES_HEADER__INCLUDED__ 00023 00024 00025 #include "config.h" 00026 00027 00028 /* Some of the following types may already be defines in stddef.h on some 00029 ** systems. The code here will certainly be improved here (when we will 00030 ** provide a configure script). The typedefs provided here are only valid 00031 ** on some systems. Modify them according to your systems till we provide 00032 ** sufficient self detection. 00033 */ 00034 00035 #if defined(HAVE_STDINT_H) || defined(HAVE_INTTYPES_H) 00036 00037 #if defined(HAVE_STDINT_H) 00038 #include <stdint.h> 00039 #endif 00040 00041 #if defined(HAVE_INTTYPES_H) 00042 #include <inttypes.h> 00043 #endif 00044 00045 #else 00046 00047 /* for windows users? */ 00048 typedef unsigned char uint8_t; 00049 typedef unsigned short uint16_t; 00050 typedef unsigned int uint32_t; 00051 00052 typedef signed char int8_t; 00053 typedef signed short int16_t; 00054 typedef signed int int32_t; 00055 00056 #endif 00057 00058 00062 typedef int FvsInt_t; 00063 00064 00068 typedef unsigned int FvsUint_t; 00069 00070 00074 typedef int8_t FvsInt8_t; 00075 typedef int16_t FvsInt16_t; 00076 typedef int32_t FvsInt32_t; 00077 00078 00082 typedef uint8_t FvsUint8_t; 00083 typedef uint16_t FvsUint16_t; 00084 typedef uint32_t FvsUint32_t; 00085 00086 typedef uint8_t FvsByte_t; 00087 typedef uint16_t FvsWord_t; 00088 typedef uint32_t FvsDword_t; 00089 00090 00094 typedef double FvsFloat_t; 00095 00096 00100 typedef void* FvsPointer_t; 00101 00102 00106 typedef void* FvsHandle_t; 00107 00108 00112 typedef char* FvsString_t; 00113 00114 00118 typedef enum FvsBool_t 00119 { 00121 FvsFalse = 0, 00123 FvsTrue = 1 00124 } FvsBool_t; 00125 00126 00130 #ifndef M_PI 00131 #define M_PI 3.1415926535897932384626433832795 00132 #endif 00133 00134 00140 typedef enum FvsError_t 00141 { 00143 FvsFailure = -1, 00145 FvsOK = 0, 00147 FvsMemory, 00149 FvsBadParameter, 00151 FvsBadFormat, 00153 FvsIoError, 00154 } FvsError_t; 00155 00156 00157 #endif /* FVS__FVSTYPES_HEADER__INCLUDED__ */ 00158