~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/my_error.h

  • Committer: Monty Taylor
  • Date: 2010-02-04 08:14:46 UTC
  • mfrom: (1277.2.1 build) (1280.2.1 build)
  • mto: This revision was merged to the branch mainline in revision 1283.
  • Revision ID: mordred@inaugust.com-20100204081446-ldh9m486va30uap6
Put everything in drizzled into drizzled namespace.
Put internal stuff into drizzled::internal namespace.
Removed some cruft.
Now every symbol that is shipped in a header is in the drizzled namespace
and everything in the server that's not shipped is labeled internal. woot. 
Removed a lot of the extra extern "C" stuff that was in there. Less ugliness for
internal callbacks now for Sun Studio.

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