~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/mysql_priv.h

  • Committer: Jay Pipes
  • Date: 2008-08-01 03:17:46 UTC
  • mto: (264.1.6 codestyle)
  • mto: This revision was merged to the branch mainline in revision 247.
  • Revision ID: jay@mysql.com-20080801031746-9kd72jin3n134r6q
Pulled locale stuff out into drizzled/locale.h where it should be...Oh, and named it locale.h and not sql_locale.h because it doesn't have anything to do with SQL

Show diffs side-by-side

added added

removed removed

Lines of Context:
113
113
  DERIVATION_EXPLICIT= 0
114
114
};
115
115
 
116
 
 
117
 
typedef struct my_locale_st
118
 
{
119
 
  uint  number;
120
 
  const char *name;
121
 
  const char *description;
122
 
  const bool is_ascii;
123
 
  TYPELIB *month_names;
124
 
  TYPELIB *ab_month_names;
125
 
  TYPELIB *day_names;
126
 
  TYPELIB *ab_day_names;
127
 
#ifdef __cplusplus 
128
 
  my_locale_st(uint number_par,
129
 
               const char *name_par, const char *descr_par, bool is_ascii_par,
130
 
               TYPELIB *month_names_par, TYPELIB *ab_month_names_par,
131
 
               TYPELIB *day_names_par, TYPELIB *ab_day_names_par) : 
132
 
    number(number_par),
133
 
    name(name_par), description(descr_par), is_ascii(is_ascii_par),
134
 
    month_names(month_names_par), ab_month_names(ab_month_names_par),
135
 
    day_names(day_names_par), ab_day_names(ab_day_names_par)
136
 
  {}
137
 
#endif
138
 
} MY_LOCALE;
139
 
 
140
 
extern MY_LOCALE my_locale_en_US;
141
 
extern MY_LOCALE *my_locales[];
142
 
extern MY_LOCALE *my_default_lc_time_names;
143
 
 
144
 
MY_LOCALE *my_locale_by_name(const char *name);
145
 
MY_LOCALE *my_locale_by_number(uint number);
146
 
 
 
116
#include <drizzled/locale.h>
147
117
#include <drizzled/object_creation_ctx.h>
148
118
/**
149
119
  Opening modes for open_temporary_table and open_table_from_share