~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_error.cc

Merged in latest plugin-slot-reorg.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
   along with this program; if not, write to the Free Software
14
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
16
 
#include "mysys_priv.h"
17
 
#include <libdrizzle/gettext.h>
18
 
#include "mysys_err.h"
 
16
#include "mysys/mysys_priv.h"
 
17
#include "mysys/mysys_err.h"
19
18
#include <mystrings/m_string.h>
 
19
#include <mystrings/m_ctype.h>
 
20
#include <drizzled/gettext.h>
 
21
#include <stdio.h>
20
22
#include <stdarg.h>
21
 
#include <mystrings/m_ctype.h>
22
23
 
23
24
/* Define some external variables for error handling */
24
25
 
31
32
  my_printf_error(ER_CODE, format, MYF(N), ...)
32
33
*/
33
34
 
34
 
char errbuff[NRERRBUFFS][ERRMSGSIZE];
35
 
 
36
35
/*
37
36
  Message texts are registered into a linked list of 'my_err_head' structs.
38
37
  Each struct contains (1.) an array of pointers to C character strings with
162
161
  struct my_err_head **search_meh_pp;
163
162
 
164
163
  /* Allocate a new header structure. */
165
 
  if (! (meh_p= (struct my_err_head*) my_malloc(sizeof(struct my_err_head),
166
 
                                                MYF(MY_WME))))
 
164
  if (! (meh_p= (struct my_err_head*) malloc(sizeof(struct my_err_head))))
167
165
    return 1;
168
166
  meh_p->meh_errmsgs= errmsgs;
169
167
  meh_p->meh_first= first;
244
242
 
245
243
  if (is_globerrs)
246
244
    return NULL;
247
 
  
 
245
 
248
246
  return errmsgs;
249
247
}
250
248