~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/lex_symbol.h

  • Committer: Andy Lester
  • Date: 2008-08-09 05:23:39 UTC
  • mto: (266.1.29 use-replace-funcs)
  • mto: This revision was merged to the branch mainline in revision 287.
  • Revision ID: andy@petdance.com-20080809052339-iafoesszmesweq6b
use NULL, not 0

Show diffs side-by-side

added added

removed removed

Lines of Context:
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, Inc.
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
 
 */
 
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 */
19
15
 
20
16
 
21
17
/* This struct includes all reserved words and functions */
22
18
 
23
 
#ifndef DRIZZLED_LEX_SYMBOL_H
24
 
#define DRIZZLED_LEX_SYMBOL_H
 
19
#ifndef _lex_symbol_h
 
20
#define _lex_symbol_h
25
21
 
26
 
namespace drizzled
 
22
#include <mysys/thr_lock.h>
 
23
/* A helper type for transactional locking. */
 
24
struct st_table_lock_info
27
25
{
 
26
  thr_lock_type lock_type;
 
27
  int           lock_timeout;
 
28
  bool          lock_transactional;
 
29
};
28
30
 
29
 
typedef struct st_sym_group {
30
 
  const char *name;
31
 
  const char *needed_define;
32
 
} SYM_GROUP;
 
31
struct st_sym_group;
33
32
 
34
33
typedef struct st_symbol {
35
34
  const char *name;
36
35
  uint  tok;
 
36
  uint length;
 
37
  struct st_sym_group *group;
37
38
} SYMBOL;
38
39
 
39
40
typedef struct st_lex_symbol
40
41
{
41
 
  const SYMBOL *symbol;
 
42
  SYMBOL *symbol;
42
43
  char   *str;
43
 
  uint32_t   length;
 
44
  uint   length;
44
45
} LEX_SYMBOL;
45
46
 
 
47
typedef struct st_sym_group {
 
48
  const char *name;
 
49
  const char *needed_define;
 
50
} SYM_GROUP;
 
51
 
46
52
extern SYM_GROUP sym_group_common;
47
53
extern SYM_GROUP sym_group_geom;
48
54
extern SYM_GROUP sym_group_rtree;
49
55
 
50
 
} /* namespace drizzled */
51
 
 
52
 
#endif /* DRIZZLED_LEX_SYMBOL_H */
 
56
#endif /* _lex_symbol_h */