- Main Page
- Related Pages
- Modules
- Data Structures
- Files
- Examples

- File List
- Globals

# /home/v/Kate/WORK_TREES/kate-sorceress-backup/v/src/kate/include/kate/kate_config.h

    00001 /* Copyright (C) 2008 Vincent Penquerc'h.
    00002    This file is part of the Kate codec library.
    00003    Written by Vincent Penquerc'h.
    00004
    00005    Use, distribution and reproduction of this library is governed
    00006    by a BSD style source license included with this source in the
    00007    file 'COPYING'. Please read these terms before distributing. */
    00008
    00009 #ifndef KATE_kate_config_h_GUARD
    00010 #define KATE_kate_config_h_GUARD
    00011
    00012 #ifdef HAVE_CONFIG_H
    00013 #include "config.h"
    00014 #endif
    00015
    00016 #define __STDC_FORMAT_MACROS
    00017
    00018 #include <stddef.h>
    00019 #include <limits.h>
    00020 #include <sys/types.h>
    00021
    00022 #ifdef HAVE_INTTYPES_H
    00023 #include <inttypes.h>
    00024 #endif
    00025
    00026 #ifdef HAVE_STDINT_H
    00027 #include <stdint.h>
    00028 #endif
    00029
    00030 #ifdef KATE_INTERNAL
    00031 #define kate_const
    00032 #else
    00033 #define kate_const const
    00034 #endif
    00035
    00036 #ifndef kate_malloc
    00037 #define kate_malloc malloc
    00038 #endif
    00039 #ifndef kate_realloc
    00040 #define kate_realloc realloc
    00041 #endif
    00042 #ifndef kate_free
    00043 #define kate_free free
    00044 #endif
    00045
    00046 #if defined HAVE_STDINT_H || defined HAVE_INTTYPES_H
    00047 typedef int32_t kate_int32_t;
    00048 #elif defined int32_t
    00049 typedef int32_t kate_int32_t;
    00050 #elif defined INT_MAX && INT_MAX==2147483647
    00051 typedef int kate_int32_t;
    00052 #elif defined SHRT_MAX && SHRT_MAX==2147483647
    00053 typedef short int kate_int32_t;
    00054 #elif defined LONG_MAX && LONG_MAX==2147483647
    00055 typedef long int kate_int32_t;
    00056 #elif defined LLONG_MAX && LLONG_MAX==2147483647
    00057 typedef long long int kate_int32_t;
    00058 #else
    00059 #error No 32 bit signed integer found
    00060 #endif
    00061
    00062 #if defined HAVE_STDINT_H || defined HAVE_INTTYPES_H
    00063 typedef uint32_t kate_uint32_t;
    00064 #elif defined uint32_t
    00065 typedef uint32_t kate_uint32_t;
    00066 #elif defined UINT_MAX && UINT_MAX==4294967295u
    00067 typedef unsigned int kate_uint32_t;
    00068 #elif defined USHRT_MAX && USHRT_MAX==4294967295u
    00069 typedef short unsigned int kate_uint32_t;
    00070 #elif defined ULONG_MAX && ULONG_MAX==4294967295ul
    00071 typedef long unsigned int kate_uint32_t;
    00072 #elif defined ULLONG_MAX && ULLONG_MAX==4294967295ull
    00073 typedef long long unsigned int kate_uint32_t;
    00074 #else
    00075 #error No 32 bit unsigned integer found
    00076 #endif
    00077
    00078 #if defined HAVE_STDINT_H || defined HAVE_INTTYPES_H
    00079 typedef int64_t kate_int64_t;
    00080 #elif defined int64_t
    00081 typedef int64_t kate_int64_t;
    00082 #elif defined INT_MAX && INT_MAX>2147483647
    00083 typedef int kate_int64_t;
    00084 #elif defined SHRT_MAX && SHRT_MAX>2147483647
    00085 typedef short int kate_int64_t;
    00086 #elif defined LONG_MAX && LONG_MAX>2147483647
    00087 typedef long int kate_int64_t;
    00088 #elif defined LLONG_MAX && LLONG_MAX>2147483647
    00089 typedef long long int kate_int64_t;
    00090 #elif defined LONG_LONG_MAX && LONG_LONG_MAX>2147483647
    00091 typedef long long int kate_int64_t;
    00092 #elif defined __GNUC__ && __GNUC__>=4 && defined __WORDSIZE && __WORDSIZE==64
    00093 /* this case matches glibc, check conservative GCC version just in case */
    00094 typedef long int kate_int64_t;
    00095 #elif defined __GNUC__ && __GNUC__>=4 && defined __WORDSIZE && __WORDSIZE==32
    00096 /* this case matches glibc, check conservative GCC version just in case */
    00097 typedef long long int kate_int64_t;
    00098 #else
    00099 #error No 64 bit signed integer found
    00100 #endif
    00101
    00102 #if defined HAVE_STDINT_H || defined HAVE_INTTYPES_H
    00103 typedef uint64_t kate_uint64_t;
    00104 #elif defined uint64_t
    00105 typedef uint64_t kate_uint64_t;
    00106 #elif defined UINT_MAX && UINT_MAX>2147483647
    00107 typedef unsigned int kate_uint64_t;
    00108 #elif defined USHRT_MAX && USHRT_MAX>2147483647
    00109 typedef unsigned short int kate_uint64_t;
    00110 #elif defined ULONG_MAX && ULONG_MAX>2147483647
    00111 typedef unsigned long int kate_uint64_t;
    00112 #elif defined ULLONG_MAX && ULLONG_MAX>2147483647
    00113 typedef unsigned long long int kate_uint64_t;
    00114 #elif defined ULONG_LONG_MAX && ULONG_LONG_MAX>2147483647
    00115 typedef unsigned long long int kate_uint64_t;
    00116 #elif defined __GNUC__ && __GNUC__>=4 && defined __WORDSIZE && __WORDSIZE==64
    00117 /* this case matches glibc, check conservative GCC version just in case */
    00118 typedef unsigned long int kate_uint64_t;
    00119 #elif defined __GNUC__ && __GNUC__>=4 && defined __WORDSIZE && __WORDSIZE==32
    00120 /* this case matches glibc, check conservative GCC version just in case */
    00121 typedef unsigned long long int kate_uint64_t;
    00122 #else
    00123 #error No 64 bit unsigned signed integer found
    00124 #endif
    00125
    00126 #if defined HAVE_STDINT_H || defined HAVE_INTTYPES_H
    00127 typedef uintptr_t kate_uintptr_t;
    00128 #elif defined uintptr_t
    00129 typedef uintptr_t kate_uintptr_t;
    00130 #else
    00131 typedef size_t kate_uintptr_t;
    00132 #endif
    00133
    00134 typedef float kate_float;
    00135
    00136 #endif
    00137