~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/include/univ.i

  • Committer: Brian Aker
  • Date: 2011-02-05 10:53:26 UTC
  • mto: (2147.3.1 alter-table)
  • mto: This revision was merged to the branch mainline in revision 2148.
  • Revision ID: brian@tangent.org-20110205105326-hjmn5xehw5rs46tp
Fix bad error in warnings/errors.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (c) 1994, 2010, Innobase Oy. All Rights Reserved.
4
 
Copyright (c) 2008, Google Inc.
5
 
Copyright (c) 2009, Sun Microsystems, Inc.
 
3
Copyright (C) 1994, 2010, Innobase Oy. All Rights Reserved.
 
4
Copyright (C) 2008 Google Inc.
 
5
Copyright (C) 2009 Sun Microsystems, Inc.
6
6
 
7
7
Portions of this file contain modifications contributed and copyrighted by
8
8
Google, Inc. Those modifications are gratefully acknowledged and are described
52
52
 
53
53
#define INNODB_VERSION_MAJOR    1
54
54
#define INNODB_VERSION_MINOR    1
55
 
#define INNODB_VERSION_BUGFIX   1
 
55
#define INNODB_VERSION_BUGFIX   4
56
56
 
57
57
/* The following is the InnoDB version as shown in
58
58
SELECT plugin_version FROM information_schema.plugins;
84
84
# define ha_innobase ha_innodb
85
85
#endif /* MYSQL_DYNAMIC_PLUGIN */
86
86
 
87
 
/* if any of the following macros is defined at this point this means
88
 
that the code from the "right" plug.in was executed and we do not
89
 
need to include ut0auxconf.h which would either define the same macros
90
 
or will be empty */
91
 
#if !defined(HAVE_GCC_ATOMIC_BUILTINS) \
92
 
 && !defined(HAVE_IB_ATOMIC_PTHREAD_T_GCC) \
93
 
 && !defined(HAVE_SOLARIS_ATOMICS) \
94
 
 && !defined(HAVE_IB_ATOMIC_PTHREAD_T_SOLARIS) \
95
 
 && !defined(SIZEOF_PTHREAD_T) \
96
 
 && !defined(IB_HAVE_PAUSE_INSTRUCTION)
97
 
# include "ut0auxconf.h"
98
 
#endif
99
 
 
100
87
#if (defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)) && !defined(MYSQL_SERVER) && !defined(__WIN__)
101
88
# undef __WIN__
102
89
# define __WIN__
127
114
 
128
115
/* Include <sys/stat.h> to get S_I... macros defined for os0file.c */
129
116
# include <sys/stat.h>
130
 
# if !defined(__NETWARE__) && !defined(__WIN__) 
 
117
# if !defined(__WIN__) 
131
118
#  include <sys/mman.h> /* mmap() for os0proc.c */
132
119
# endif
133
120
 
150
137
#  define UNIV_MUST_NOT_INLINE
151
138
# endif
152
139
 
 
140
# if defined(__GNUC__)
 
141
#  define UNIV_WARN_UNUSED_RESULT_NONNULL __attribute__((nonnull, warn_unused_result))
 
142
#  define UNIV_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
 
143
#else
 
144
#  define UNIV_WARN_UNUSED_RESULT
 
145
#  define UNIV_WARN_UNUSED_RESULT_NONNULL
 
146
#endif
 
147
 
153
148
# ifdef HAVE_PREAD
154
149
#  define HAVE_PWRITE
155
150
# endif
309
304
/* The following alignment is used in aligning lints etc. */
310
305
#define UNIV_WORD_ALIGNMENT     UNIV_WORD_SIZE
311
306
 
 
307
/* The maximum length of a table name. This is the MySQL limit and is
 
308
defined in mysql_com.h like NAME_CHAR_LEN*SYSTEM_CHARSET_MBMAXLEN, the
 
309
number does not include a terminating '\0'. InnoDB probably can handle
 
310
longer names internally */
 
311
#define MAX_TABLE_NAME_LEN      192
 
312
 
312
313
/*
313
314
                        DATABASE VERSION CONTROL
314
315
                        ========================
322
323
/* Maximum number of parallel threads in a parallelized operation */
323
324
#define UNIV_MAX_PARALLELISM    32
324
325
 
 
326
/* The maximum length of a table name. This is the MySQL limit and is
 
327
defined in mysql_com.h like NAME_CHAR_LEN*SYSTEM_CHARSET_MBMAXLEN, the
 
328
number does not include a terminating '\0'. InnoDB probably can handle
 
329
longer names internally */
 
330
#define MAX_TABLE_NAME_LEN      192
 
331
 
325
332
/*
326
333
                        UNIVERSAL TYPE DEFINITIONS
327
334
                        ==========================
386
393
/* The 'undefined' value for a ulint */
387
394
#define ULINT_UNDEFINED         ((ulint)(-1))
388
395
 
 
396
/** The bitmask of 32-bit unsigned integer */
 
397
#define ULINT32_MASK            0xFFFFFFFF
389
398
/* The undefined 32-bit unsigned integer */
390
 
#define ULINT32_UNDEFINED       0xFFFFFFFF
 
399
#define ULINT32_UNDEFINED       ULINT32_MASK
391
400
 
392
401
/* Maximum value for a ulint */
393
402
#define ULINT_MAX               ((ulint)(-2))
395
404
/* Maximum value for ib_uint64_t */
396
405
#define IB_ULONGLONG_MAX        ((ib_uint64_t) (~0ULL))
397
406
 
 
407
/** The generic InnoDB system object identifier data type */
 
408
typedef ib_uint64_t     ib_id_t;
 
409
 
 
410
/* THe 'undefined' value for ullint */
 
411
#define ULLINT_UNDEFINED        ((ullint)(-1))
 
412
 
398
413
/* This 'ibool' type is used within Innobase. Remember that different included
399
414
headers may define 'bool' differently. Do not assume that 'bool' is a ulint! */
400
415
#define ibool                   ulint