~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/my_error.h

Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
#include "drizzled/definitions.h"
24
24
 
 
25
namespace drizzled
 
26
{
 
27
 
25
28
/* Max width of screen (for error messages) */
26
29
#define SC_MAXWIDTH 256
27
30
#define ERRMSGSIZE      (SC_MAXWIDTH)   /* Max length of a error message */
91
94
#define GLOBERRS (EE_ERROR_LAST - EE_ERROR_FIRST + 1) /* Nr of global errors */
92
95
#define EE(X)    (globerrs[(X) - EE_ERROR_FIRST])
93
96
 
94
 
#ifdef __cplusplus
95
 
extern "C" {
96
 
#endif
97
 
 
98
97
/* Error message numbers in global map */
99
98
extern const char * globerrs[GLOBERRS];
100
99
 
109
108
void my_message(uint32_t my_err, const char *str,myf MyFlags);
110
109
void my_message_no_curses(uint32_t my_err, const char *str,myf MyFlags);
111
110
 
112
 
#ifdef __cplusplus
113
 
}
114
 
#endif
 
111
} /* namespace drizzled */
115
112
 
116
113
#endif /* DRIZZLED_MY_ERROR_H */
117
114