|
Revision 10643, 2.5 kB
(checked in by olly, 8 months ago)
|
|
Backport change from trunk:
backends/flint/flint_btreeutil.h: Fix some out-of-date comments.
configure.ac: Use AC_CHECK_SIZEOF to define SIZEOF_INT and
SIZEOF_LONG.
backends/flint/flint_types.h: Use SIZEOF_INT and SIZEOF_LONG to
determine the type of uint4 rather than always using unsigned long
(which is 64 bits on most 64 bit Unix platforms). Drop int4 for
the time being, as we don't actually use it.
backends/quartz/quartz_types.h: Adapt flint change for quartz
(required to avoid differing uint4 types which clash in
backends/database.cc).
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
| Line | |
|---|
| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | |
|---|
| 16 | |
|---|
| 17 | |
|---|
| 18 | |
|---|
| 19 | |
|---|
| 20 | |
|---|
| 21 | |
|---|
| 22 | #ifndef OM_HGUARD_FLINT_TYPES_H |
|---|
| 23 | #define OM_HGUARD_FLINT_TYPES_H |
|---|
| 24 | |
|---|
| 25 | typedef unsigned char byte; |
|---|
| 26 | |
|---|
| 27 | #ifndef SIZEOF_INT |
|---|
| 28 | # error SIZEOF_INT is not defined |
|---|
| 29 | #endif |
|---|
| 30 | #ifndef SIZEOF_LONG |
|---|
| 31 | # error SIZEOF_LONG is not defined |
|---|
| 32 | #endif |
|---|
| 33 | #if SIZEOF_INT >= 4 |
|---|
| 34 | typedef unsigned int uint4; |
|---|
| 35 | #elif SIZEOF_LONG >= 4 |
|---|
| 36 | typedef unsigned long uint4; |
|---|
| 37 | #else |
|---|
| 38 | # error Type long is less than 32 bits, which ISO does not allow! |
|---|
| 39 | #endif |
|---|
| 40 | |
|---|
| 41 | typedef unsigned int flint_blocksize_t; |
|---|
| 42 | |
|---|
| 43 | |
|---|
| 44 | |
|---|
| 45 | |
|---|
| 46 | |
|---|
| 47 | |
|---|
| 48 | |
|---|
| 49 | |
|---|
| 50 | |
|---|
| 51 | |
|---|
| 52 | |
|---|
| 53 | typedef unsigned int flint_revision_number_t; |
|---|
| 54 | |
|---|
| 55 | |
|---|
| 56 | |
|---|
| 57 | |
|---|
| 58 | |
|---|
| 59 | typedef unsigned int flint_tablesize_t; |
|---|
| 60 | |
|---|
| 61 | |
|---|
| 62 | |
|---|
| 63 | |
|---|
| 64 | typedef unsigned int flint_doclen_t; |
|---|
| 65 | |
|---|
| 66 | |
|---|
| 67 | |
|---|
| 68 | |
|---|
| 69 | typedef unsigned long long int flint_totlen_t; |
|---|
| 70 | |
|---|
| 71 | |
|---|
| 72 | |
|---|
| 73 | |
|---|
| 74 | |
|---|
| 75 | #define FLINT_DEFAULT_BLOCK_SIZE 8192 |
|---|
| 76 | |
|---|
| 77 | #endif |
|---|