backends/flint/flint_types.h

Go to the documentation of this file.
00001 /* flint_types.h: Types used by flint backend and the Btree manager
00002  *
00003  * Copyright 1999,2000,2001 BrightStation PLC
00004  * Copyright 2002,2003,2004,2008 Olly Betts
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License as
00008  * published by the Free Software Foundation; either version 2 of the
00009  * License, or (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301
00019  * USA
00020  */
00021 
00022 #ifndef OM_HGUARD_FLINT_TYPES_H
00023 #define OM_HGUARD_FLINT_TYPES_H
00024 
00025 typedef unsigned char byte;
00026 
00027 #ifndef SIZEOF_INT
00028 # error SIZEOF_INT is not defined
00029 #endif
00030 #ifndef SIZEOF_LONG
00031 # error SIZEOF_LONG is not defined
00032 #endif
00033 #if SIZEOF_INT >= 4
00034 typedef unsigned int uint4;
00035 #elif SIZEOF_LONG >= 4
00036 typedef unsigned long uint4;
00037 #else
00038 # error Type long is less than 32 bits, which ISO does not allow!
00039 #endif
00040 
00041 typedef unsigned int flint_blocksize_t;
00042 
00053 typedef unsigned int flint_revision_number_t;
00054 
00059 typedef unsigned int flint_tablesize_t;
00060 
00064 typedef unsigned int flint_doclen_t;
00065 
00069 typedef unsigned long long int flint_totlen_t;
00070 
00075 #define FLINT_DEFAULT_BLOCK_SIZE 8192
00076 
00077 #endif /* OM_HGUARD_FLINT_TYPES_H */

Documentation for Xapian (version 1.0.10).
Generated on 24 Dec 2008 by Doxygen 1.5.2.