Fixed bug #2068: pkg-config trouble.
[yaz-moved-to-github.git] / src / cclerrms.c
1 /*
2  * Copyright (C) 1995-2008, Index Data ApS
3  * See the file LICENSE for details.
4  *
5  * $Id: cclerrms.c,v 1.4 2008-01-09 21:32:27 adam Exp $
6  */
7 /** 
8  * \file cclerrms.c
9  * \brief Implements CCL error code to error string map.
10  *
11  * This source file implements mapping between CCL error code and
12  * their string equivalents.
13  */
14
15 #include <yaz/ccl.h>
16
17 static char *err_msg_array[] = {
18     "Ok",
19     "Search word expected",
20     "')' expected",
21     "Set name expected",
22     "Operator expected",
23     "Unbalanced ')'",
24     "Unknown qualifier",
25     "Qualifiers applied twice",
26     "'=' expected",
27     "Bad relation",
28     "Left truncation not supported",
29     "Both left - and right truncation not supported",
30     "Right truncation not supported"
31 };
32
33 /*
34  * ccl_err_msg: return name of CCL error
35  * ccl_errno:   Error no.
36  * return:      Name of error.
37  */
38 const char *ccl_err_msg (int ccl_errno)
39 {
40     return err_msg_array[ccl_errno];
41 }
42 /*
43  * Local variables:
44  * c-basic-offset: 4
45  * indent-tabs-mode: nil
46  * End:
47  * vim: shiftwidth=4 tabstop=8 expandtab
48  */
49