~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/error.h

  • Committer: Monty Taylor
  • Date: 2008-10-23 02:48:56 UTC
  • Revision ID: monty@inaugust.com-20081023024856-31i4hijejds1cp2f
Took gettext.h out of header files.
Made error messages come through a function.
Removed ER_SAFE.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#ifndef _drizzled_error_h
21
21
#define _drizzled_error_h
22
22
 
23
 
#include <drizzled/gettext.h>
 
23
#ifdef  __cplusplus
 
24
extern "C" {
 
25
#endif
 
26
 
 
27
const char * error_message(unsigned int err_index);
24
28
 
25
29
enum drizzled_error_code {
26
30
  ER_ERROR_FIRST= 1000,
27
 
  ER_HASHCHK= 1000,
 
31
  ER_HASHCHK= ER_ERROR_FIRST,
28
32
  ER_NISAMCHK,
29
33
  ER_NO,
30
34
  ER_YES,
709
713
  ER_ERROR_LAST= ER_CONST_EXPR_IN_VCOL
710
714
};
711
715
 
 
716
#ifdef  __cplusplus
 
717
}
 
718
#endif
 
719
 
712
720
#endif
713
721