~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/my_time.c

  • Committer: Monty Taylor
  • Date: 2008-07-31 18:57:38 UTC
  • mto: (202.3.5 gettextize)
  • mto: This revision was merged to the branch mainline in revision 243.
  • Revision ID: monty@inaugust.com-20080731185738-uihwm9pdcswimfcj
my_bool cleanup in libdrizzle time stuff.

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
    1  error
76
76
*/
77
77
 
78
 
my_bool check_date(const DRIZZLE_TIME *ltime, my_bool not_zero_date,
 
78
bool check_date(const DRIZZLE_TIME *ltime, bool not_zero_date,
79
79
                   ulong flags, int *was_cut)
80
80
{
81
81
  if (not_zero_date)
164
164
  uint date[MAX_DATE_PARTS], date_len[MAX_DATE_PARTS];
165
165
  uint add_hours= 0, start_loop;
166
166
  ulong not_zero_date, allow_space;
167
 
  my_bool is_internal_format;
 
167
  bool is_internal_format;
168
168
  const char *pos, *last_field_pos=NULL;
169
169
  const char *end=str+length;
170
170
  const uchar *format_position;
171
 
  my_bool found_delimitier= 0, found_space= 0;
 
171
  bool found_delimitier= 0, found_space= 0;
172
172
  uint frac_pos, frac_len;
173
173
 
174
174
  *was_cut= 0;
468
468
     1  error
469
469
*/
470
470
 
471
 
my_bool str_to_time(const char *str, uint length, DRIZZLE_TIME *l_time,
 
471
bool str_to_time(const char *str, uint length, DRIZZLE_TIME *l_time,
472
472
                    int *warning)
473
473
{
474
474
  ulong date[5];
475
475
  uint64_t value;
476
476
  const char *end=str+length, *end_of_days;
477
 
  my_bool found_days,found_hours;
 
477
  bool found_days,found_hours;
478
478
  uint state;
479
479
 
480
480
  l_time->neg=0;