~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/lex_symbol.h

  • Committer: Monty Taylor
  • Date: 2008-11-16 23:47:43 UTC
  • mto: (584.1.10 devel)
  • mto: This revision was merged to the branch mainline in revision 589.
  • Revision ID: monty@inaugust.com-20081116234743-c38gmv0pa2kdefaj
BrokeĀ outĀ cached_item.

Show diffs side-by-side

added added

removed removed

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