~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function_hash.gperf

  • Committer: Monty Taylor
  • Date: 2008-08-01 22:33:44 UTC
  • mto: (236.1.42 codestyle)
  • mto: This revision was merged to the branch mainline in revision 261.
  • Revision ID: monty@inaugust.com-20080801223344-vzhlflfmtijp1imv
First pass at gettexizing the error messages.

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/foreign_key.h>
25
 
#include <drizzled/sql_yacc.h>
26
 
#include <drizzled/lex_symbol.h>
27
 
 
28
 
/*
29
 
  Symbols are broken into separated arrays to allow field names with
30
 
  same name as functions.
31
 
  These are kept sorted for human lookup (the symbols are hashed).
32
 
 
33
 
  NOTE! The symbol tables should be the same regardless of what features
34
 
  are compiled into the server. Don't add ifdef'ed symbols to the
35
 
  lists
36
 
*/
37
 
%}
38
 
struct st_symbol {
39
 
  const char *name;
40
 
  unsigned int  tok;
41
 
};
42
 
%%
43
 
ADDDATE,ADDDATE_SYM
44
 
CAST,CAST_SYM
45
 
COUNT,COUNT_SYM
46
 
CURDATE,CURDATE
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
 
%%