~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to libdrizzle/errmsg.h

  • 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:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#ifndef LIBDRIZZLECLIENT_ERRMSG_H
21
 
#define LIBDRIZZLECLIENT_ERRMSG_H
 
20
#ifndef _libdrizzle_errmsg_h
 
21
#define _libdrizzle_errmsg_h
22
22
 
23
23
/* Error messages for MySQL clients */
24
24
/* (Error messages for the daemon are in sql/share/errmsg.txt) */
25
25
 
26
26
#ifdef  __cplusplus
27
 
extern "C"
28
 
#endif
29
 
const char * drizzleclient_get_client_error(unsigned int err_index);
 
27
extern "C" {
 
28
#endif
 
29
const char * get_client_error(unsigned int err_index);
 
30
#ifdef  __cplusplus
 
31
}
 
32
#endif
30
33
 
31
34
#define CR_MIN_ERROR    2000  /* For easier client code */
32
35
#define CR_MAX_ERROR    2999
33
36
#if !defined(ER)
34
 
#define ER(X) drizzleclient_get_client_error((X)-CR_MIN_ERROR)
 
37
#define ER(X) get_client_error((X)-CR_MIN_ERROR)
35
38
#endif
36
39
#define CLIENT_ERRMAP    2  /* Errormap used by my_error() */
37
40