~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_error.c

  • Committer: Brian Aker
  • Date: 2008-10-06 06:47:29 UTC
  • Revision ID: brian@tangent.org-20081006064729-2i9mhjkzyvow9xsm
RemoveĀ uint.

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
18
#include "mysys_err.h"
18
19
#include <mystrings/m_string.h>
 
20
#include <stdarg.h>
19
21
#include <mystrings/m_ctype.h>
20
 
#include <drizzled/gettext.h>
21
 
#include <stdio.h>
22
 
#include <stdarg.h>
23
22
 
24
23
/* Define some external variables for error handling */
25
24
 
163
162
  struct my_err_head **search_meh_pp;
164
163
 
165
164
  /* Allocate a new header structure. */
166
 
  if (! (meh_p= (struct my_err_head*) malloc(sizeof(struct my_err_head))))
 
165
  if (! (meh_p= (struct my_err_head*) my_malloc(sizeof(struct my_err_head),
 
166
                                                MYF(MY_WME))))
167
167
    return 1;
168
168
  meh_p->meh_errmsgs= errmsgs;
169
169
  meh_p->meh_first= first;
244
244
 
245
245
  if (is_globerrs)
246
246
    return NULL;
247
 
 
 
247
  
248
248
  return errmsgs;
249
249
}
250
250