~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/derror.cc

  • 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:
23
23
 
24
24
#include "mysql_priv.h"
25
25
#include <mysys/mysys_err.h>
 
26
#include <drizzled/drizzled_error_messages.h>
26
27
 
27
28
static bool read_texts(const char *file_name,const char ***point,
28
29
                       uint error_messages);
29
30
static void init_myfunc_errs(void);
30
31
 
 
32
 
 
33
 
31
34
/**
32
35
  Read messages from errorfile.
33
36
 
64
67
  }
65
68
 
66
69
  /* Register messages for use with my_error(). */
67
 
  if (my_error_register(errmsgs, ER_ERROR_FIRST, ER_ERROR_LAST))
 
70
  if (my_error_register(drizzled_error_messages,
 
71
                        ER_ERROR_FIRST, ER_ERROR_LAST))
68
72
  {
69
 
    x_free((uchar*) errmsgs);
70
73
    return(true);
71
74
  }
72
75
 
73
 
  errmesg= errmsgs;                     /* Init global variabel */
74
76
  init_myfunc_errs();                   /* Init myfunc messages */
75
77
  return(false);
76
78
}