~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/lex_symbol.h

  • Committer: Joe Daly
  • Date: 2010-05-21 02:16:56 UTC
  • mto: This revision was merged to the branch mainline in revision 1555.
  • Revision ID: skinny.moey@gmail.com-20100521021656-bx6piitfh77jnl28
add statistics_variables.h

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 2000-2001, 2004 MySQL AB
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 as published by
5
 
   the Free Software Foundation; version 2 of the License.
6
 
 
7
 
   This program is distributed in the hope that it will be useful,
8
 
   but WITHOUT ANY WARRANTY; without even the implied warranty of
9
 
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10
 
   GNU General Public License for more details.
11
 
 
12
 
   You should have received a copy of the GNU General Public License
13
 
   along with this program; if not, write to the Free Software
14
 
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
 
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
 
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
 
3
 *
 
4
 *  Copyright (C) 2008 Sun Microsystems
 
5
 *
 
6
 *  This program is free software; you can redistribute it and/or modify
 
7
 *  it under the terms of the GNU General Public License as published by
 
8
 *  the Free Software Foundation; version 2 of the License.
 
9
 *
 
10
 *  This program is distributed in the hope that it will be useful,
 
11
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
 *  GNU General Public License for more details.
 
14
 *
 
15
 *  You should have received a copy of the GNU General Public License
 
16
 *  along with this program; if not, write to the Free Software
 
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
18
 */
15
19
 
16
20
 
17
21
/* This struct includes all reserved words and functions */
18
22
 
19
 
#ifndef _lex_symbol_h
20
 
#define _lex_symbol_h
 
23
#ifndef DRIZZLED_LEX_SYMBOL_H
 
24
#define DRIZZLED_LEX_SYMBOL_H
21
25
 
22
 
#include "thr_lock.h"
23
 
/* A helper type for transactional locking. */
24
 
struct st_table_lock_info
 
26
namespace drizzled
25
27
{
26
 
  thr_lock_type lock_type;
27
 
  int           lock_timeout;
28
 
  bool          lock_transactional;
29
 
};
30
28
 
31
 
struct st_sym_group;
 
29
typedef struct st_sym_group {
 
30
  const char *name;
 
31
  const char *needed_define;
 
32
} SYM_GROUP;
32
33
 
33
34
typedef struct st_symbol {
34
35
  const char *name;
35
36
  uint  tok;
36
 
  uint length;
37
 
  struct st_sym_group *group;
38
37
} SYMBOL;
39
38
 
40
39
typedef struct st_lex_symbol
41
40
{
42
 
  SYMBOL *symbol;
 
41
  const SYMBOL *symbol;
43
42
  char   *str;
44
 
  uint   length;
 
43
  uint32_t   length;
45
44
} LEX_SYMBOL;
46
45
 
47
 
typedef struct st_sym_group {
48
 
  const char *name;
49
 
  const char *needed_define;
50
 
} SYM_GROUP;
51
46
 
52
47
extern SYM_GROUP sym_group_common;
53
48
extern SYM_GROUP sym_group_geom;
54
49
extern SYM_GROUP sym_group_rtree;
55
50
 
56
 
#endif /* _lex_symbol_h */
 
51
} /* namespace drizzled */
 
52
 
 
53
#endif /* DRIZZLED_LEX_SYMBOL_H */