~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function_hash.gperf

  • Committer: Monty Taylor
  • Date: 2009-01-30 00:53:14 UTC
  • mto: (779.3.19 devel)
  • mto: This revision was merged to the branch mainline in revision 823.
  • Revision ID: mordred@inaugust.com-20090130005314-3ufwrbqxnxu2aevi
Replaced gen_lex_hash with gperf. Yay for no more building tools to build source!!!

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
%{
 
2
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
 
3
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
 
4
 *
 
5
 *  Copyright (C) 2008 Sun Microsystems
 
6
 *
 
7
 *  This program is free software; you can redistribute it and/or modify
 
8
 *  it under the terms of the GNU General Public License as published by
 
9
 *  the Free Software Foundation; version 2 of the License.
 
10
 *
 
11
 *  This program is distributed in the hope that it will be useful,
 
12
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 *  GNU General Public License for more details.
 
15
 *
 
16
 *  You should have received a copy of the GNU General Public License
 
17
 *  along with this program; if not, write to the Free Software
 
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
19
 */
 
20
 
 
21
 
 
22
/* This file includes all functions */
 
23
 
 
24
#include <drizzled/sql_yacc.h>
 
25
#include <drizzled/lex_symbol.h>
 
26
 
 
27
/*
 
28
  Symbols are broken into separated arrays to allow field names with
 
29
  same name as functions.
 
30
  These are kept sorted for human lookup (the symbols are hashed).
 
31
 
 
32
  NOTE! The symbol tables should be the same regardless of what features
 
33
  are compiled into the server. Don't add ifdef'ed symbols to the
 
34
  lists
 
35
*/
 
36
%}
 
37
struct st_symbol {
 
38
  const char *name;
 
39
  unsigned int  tok;
 
40
};
 
41
%%
 
42
ADDDATE,ADDDATE_SYM
 
43
CAST,CAST_SYM
 
44
COUNT,COUNT_SYM
 
45
CURDATE,CURDATE
 
46
CURTIME,CURTIME
 
47
DATE_ADD,DATE_ADD_INTERVAL
 
48
DATE_SUB,DATE_SUB_INTERVAL
 
49
EXTRACT,EXTRACT_SYM
 
50
GROUP_CONCAT,GROUP_CONCAT_SYM
 
51
MAX,MAX_SYM
 
52
# unireg function
 
53
MID,SUBSTRING
 
54
MIN,MIN_SYM
 
55
NOW,NOW_SYM
 
56
POSITION,POSITION_SYM
 
57
SESSION_USER,USER
 
58
STD,STD_SYM
 
59
STDDEV,STD_SYM
 
60
STDDEV_POP,STD_SYM
 
61
STDDEV_SAMP,STDDEV_SAMP_SYM
 
62
SUBDATE,SUBDATE_SYM
 
63
SUBSTR,SUBSTRING
 
64
SUBSTRING,SUBSTRING
 
65
SUM,SUM_SYM
 
66
SYSDATE,SYSDATE
 
67
SYSTEM_USER,USER
 
68
TRIM,TRIM
 
69
VARIANCE,VARIANCE_SYM
 
70
VAR_POP,VARIANCE_SYM
 
71
VAR_SAMP,VAR_SAMP_SYM
 
72
%%