BBPort.h

Go to the documentation of this file.
00001 /*
00002 // $Id: //open/dev/fennel/lucidera/colstore/BBPort.h#5 $
00003 // Fennel is a library of data storage and processing components.
00004 // Copyright (C) 2005-2009 LucidEra, Inc.
00005 // Copyright (C) 2005-2009 The Eigenbase Project
00006 //
00007 // This program is free software; you can redistribute it and/or modify it
00008 // under the terms of the GNU General Public License as published by the Free
00009 // Software Foundation; either version 2 of the License, or (at your option)
00010 // any later version approved by The Eigenbase Project.
00011 //
00012 // This program is distributed in the hope that it will be useful,
00013 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 // GNU General Public License for more details.
00016 //
00017 // You should have received a copy of the GNU General Public License
00018 // along with this program; if not, write to the Free Software
00019 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00020 */
00021 
00022 #ifndef Fennel_BBPort_Included
00023 #define Fennel_BBPort_Included
00024 
00025 FENNEL_BEGIN_NAMESPACE
00026 
00027 // This file defines some types and macros used in the Broadbase code.
00028 // Code being ported can include it temporarily until all references to these
00029 // constructs have been cleaned up.
00030 
00031 typedef int INT;
00032 typedef uint8_t BYTE;
00033 typedef BYTE *PBYTE;
00034 typedef bool BOOL;
00035 typedef int16_t SWORD;
00036 typedef uint32_t DWORD;
00037 typedef DWORD HANDLE;
00038 typedef uint32_t ULONG;
00039 typedef int32_t LONG;
00040 typedef int64_t INT64;
00041 typedef uint16_t WORD;
00042 typedef WORD *PWORD;
00043 typedef uint UINT;
00044 typedef char TCHAR;
00045 typedef char BCHAR;
00046 typedef UINT *PUINT;
00047 typedef TCHAR BBCHAR;
00048 typedef TCHAR *PBBCHAR;
00049 typedef unsigned char UCHAR;
00050 typedef int16_t INT16;
00051 typedef int32_t INT32;
00052 typedef int64_t INT64;
00053 typedef float REAL32;
00054 typedef double REAL64;
00055 
00056 typedef INT16 SMALLINT;
00057 typedef INT32 INTEGER;
00058 typedef INT64 BIGINT;
00059 typedef INT64 TIMESTAMP;
00060 typedef WORD OFFSET, *POFFSET;
00061 typedef DWORD RID, *PRID;
00062 
00063 #define FALSE false
00064 #define TRUE true
00065 
00066 enum BBRC
00067 {
00068     // Success
00069     BBRC_SUCCESS = 0,
00070 
00071     // Success-with-information
00072     BBRC_ENDOFDATA,
00073     BBRC_OUTOFSPACE,
00074     BBRC_ERR_NOTFOUND,
00075 
00076     // Error
00077     BBRC_ERR,
00078     BBRC_ERR_INTERNAL,
00079     BBRC_ERR_MEM_OUT,
00080     BBRC_ERR_ALLOC_ERROR_STACK_BUFFER,
00081 
00082     // todo: obsolete all following codes
00083     BBRC_ERR_FILEIO,
00084     BBRC_ERR_FILEIO_UNKNOWN,
00085     BBRC_ERR_FILEIO_FILE_NOT_ACTIVE,
00086     BBRC_ERR_FILEIO_FILE_EXISTS,
00087     BBRC_ERR_FILEIO_MAX_EXTENT,
00088     BBRC_ERR_FILEIO_FILEFULL,
00089 };
00090 
00091 // Fennel uses exception handling,  so these macros are dummied out
00092 #define BB_PRELUDE()
00093 #define BB_FINALE()
00094 #define BB_RETURN() return
00095 #define BB_DROP(rc, label)
00096 
00097 FENNEL_END_NAMESPACE
00098 
00099 #endif
00100 
00101 // End BBPort.h

Generated on Mon Jun 22 04:00:19 2009 for Fennel by  doxygen 1.5.1