~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/definitions.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:
48
48
#define PLUGINDIR       "lib/plugin"
49
49
#endif
50
50
 
51
 
#define ER(X) _(drizzled_error_messages[(X) - ER_ERROR_FIRST])
52
 
#define ER_SAFE(X) (((X) >= ER_ERROR_FIRST && (X) <= ER_ERROR_LAST) ? ER(X) : _("Invalid error code"))
 
51
#define ER(X) error_message((X))
53
52
 
54
 
#define ERRMAPP 1                               /* Errormap f|r my_error */
55
53
#define LIBLEN FN_REFLEN-FN_LEN                 /* Max l{ngd p} dev */
56
54
/* extra 4+4 bytes for slave tmp tables */
57
55
#define MAX_DBKEY_LENGTH (NAME_LEN*2+1+1+4+4)