1 /* Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
2 
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License, version 2.0,
5 as published by the Free Software Foundation.
6 
7 This program is also distributed with certain software (including
8 but not limited to OpenSSL) that is licensed under separate terms,
9 as designated in a particular file or component or in included license
10 documentation.  The authors of MySQL hereby grant you an additional
11 permission to link the program and your derivative works with the
12 separately licensed software that they have included with MySQL.
13 
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 GNU General Public License, version 2.0, for more details.
18 
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */
22 
23 #ifndef _my_check_opt_h
24 #define _my_check_opt_h
25 
26 #ifdef	__cplusplus
27 extern "C" {
28 #endif
29 
30 /*
31   All given definitions needed for MyISAM storage engine:
32   myisamchk.c or/and ha_myisam.cc or/and micheck.c
33   Some definitions are needed by the MySQL parser.
34 */
35 
36 #define T_AUTO_INC		(1UL << 0)
37 #define T_AUTO_REPAIR		(1UL << 1)
38 #define T_BACKUP_DATA		(1UL << 2)
39 #define T_CALC_CHECKSUM		(1UL << 3)
40 #define T_CHECK			(1UL << 4)
41 #define T_CHECK_ONLY_CHANGED	(1UL << 5)
42 #define T_CREATE_MISSING_KEYS	(1UL << 6)
43 #define T_DESCRIPT		(1UL << 7)
44 #define T_DONT_CHECK_CHECKSUM	(1UL << 8)
45 #define T_EXTEND		(1UL << 9)
46 #define T_FAST			(1UL << 10)
47 #define T_FORCE_CREATE		(1UL << 11)
48 #define T_FORCE_UNIQUENESS	(1UL << 12)
49 #define T_INFO			(1UL << 13)
50 /** CHECK TABLE...MEDIUM (the default) */
51 #define T_MEDIUM		(1UL << 14)
52 /** CHECK TABLE...QUICK */
53 #define T_QUICK			(1UL << 15)
54 #define T_READONLY		(1UL << 16)
55 #define T_REP			(1UL << 17)
56 #define T_REP_BY_SORT		(1UL << 18)
57 #define T_REP_PARALLEL		(1UL << 19)
58 #define T_RETRY_WITHOUT_QUICK	(1UL << 20)
59 #define T_SAFE_REPAIR		(1UL << 21)
60 #define T_SILENT		(1UL << 22)
61 #define T_SORT_INDEX		(1UL << 23)
62 #define T_SORT_RECORDS		(1UL << 24)
63 #define T_STATISTICS		(1UL << 25)
64 #define T_UNPACK		(1UL << 26)
65 #define T_UPDATE_STATE		(1UL << 27)
66 #define T_VERBOSE		(1UL << 28)
67 #define T_VERY_SILENT		(1UL << 29)
68 #define T_WAIT_FOREVER		(1UL << 30)
69 #define T_WRITE_LOOP		(1UL << 31)
70 
71 #define T_REP_ANY		(T_REP | T_REP_BY_SORT | T_REP_PARALLEL)
72 
73 #ifdef	__cplusplus
74 }
75 #endif
76 #endif
77