~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_error.c

  • Committer: Brian Aker
  • Date: 2008-11-04 15:39:09 UTC
  • mfrom: (575.1.2 devel)
  • Revision ID: brian@tangent.org-20081104153909-c72hn65udxs1ccal
Merge of Monty's work

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
16
16
#include "mysys_priv.h"
17
 
#include <libdrizzle/gettext.h>
 
17
#include <drizzled/gettext.h>
18
18
#include "mysys_err.h"
19
19
#include <mystrings/m_string.h>
20
20
#include <stdarg.h>
106
106
      ...       variable list
107
107
*/
108
108
 
109
 
void my_printf_error(uint error, const char *format, myf MyFlags, ...)
 
109
void my_printf_error(uint32_t error, const char *format, myf MyFlags, ...)
110
110
{
111
111
  va_list args;
112
112
  char ebuff[ERRMSGSIZE+20];
128
128
      MyFlags   Flags
129
129
*/
130
130
 
131
 
void my_message(uint error, const char *str, register myf MyFlags)
 
131
void my_message(uint32_t error, const char *str, register myf MyFlags)
132
132
{
133
133
  (*error_handler_hook)(error, str, MyFlags);
134
134
}
182
182
  /* Error numbers must be unique. No overlapping is allowed. */
183
183
  if (*search_meh_pp && ((*search_meh_pp)->meh_first <= last))
184
184
  {
185
 
    my_free((uchar*)meh_p, MYF(0));
 
185
    free((unsigned char*)meh_p);
186
186
    return 1;
187
187
  }
188
188
 
240
240
  errmsgs= meh_p->meh_errmsgs;
241
241
  bool is_globerrs= meh_p->is_globerrs;
242
242
 
243
 
  my_free((uchar*) meh_p, MYF(0));
 
243
  free((unsigned char*) meh_p);
244
244
 
245
245
  if (is_globerrs)
246
246
    return NULL;
255
255
  for (list= my_errmsgs_globerrs.meh_next; list; list= next)
256
256
  {
257
257
    next= list->meh_next;
258
 
    my_free((uchar*) list, MYF(0));
 
258
    free((unsigned char*) list);
259
259
  }
260
260
  my_errmsgs_list= &my_errmsgs_globerrs;
261
261
}