~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_init.cc

  • Committer: Toru Maesaka
  • Date: 2008-12-17 07:16:37 UTC
  • mto: (685.1.40 devel) (713.1.5 devel)
  • mto: This revision was merged to the branch mainline in revision 713.
  • Revision ID: dev@torum.net-20081217071637-7j9040w7lpms77r2
Removed my_time() and added error checking

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#include <mysys/mysys_err.h>
19
19
#include <mystrings/m_string.h>
20
20
#include <mystrings/m_ctype.h>
21
 
#include <signal.h>
 
21
#include <stdio.h>
 
22
#include <stdlib.h>
22
23
 
23
24
bool my_init_done= 0;
24
25
uint    mysys_usage_id= 0;              /* Incremented for each my_init() */
25
 
uint32_t   my_thread_stack_size= 65536;
26
26
 
27
27
static uint32_t atoi_octal(const char *str)
28
28
{
110
110
  }
111
111
  free_charsets();
112
112
  my_error_unregister_all();
113
 
  my_once_free();
114
113
 
115
114
  if ((infoflag & MY_GIVE_INFO) || print_info)
116
115
  {
150
149
    Check on destroying of mutexes. A few may be left that will get cleaned
151
150
    up by C++ destructors
152
151
  */
153
 
  safe_mutex_end((infoflag & (MY_GIVE_INFO | MY_CHECK_ERROR)) ? stderr :
154
 
                 (FILE *) 0);
 
152
  safe_mutex_end();
 
153
 
155
154
#endif /* defined(SAFE_MUTEX) */
156
155
 
157
156
  my_init_done=0;