YAZ  5.34.0
cclerrms.c
Go to the documentation of this file.
1 /* This file is part of the YAZ toolkit.
2  * Copyright (C) Index Data
3  * See the file LICENSE for details.
4  */
12 #if HAVE_CONFIG_H
13 #include <config.h>
14 #endif
15 
16 #include <yaz/ccl.h>
17 
18 static char *err_msg_array[] = {
19  "Ok",
20  "Search word expected",
21  "')' expected",
22  "Set name expected",
23  "Operator expected",
24  "Unbalanced ')'",
25  "Unknown qualifier",
26  "Qualifiers applied twice",
27  "'=' expected",
28  "Bad relation",
29  "Left truncation not supported",
30  "Both left - and right truncation not supported",
31  "Right truncation not supported",
32  "Embedded truncation not supported",
33  "Single character mask not supported"
34 };
35 
36 const char *ccl_err_msg(int ccl_errno)
37 {
38  if (ccl_errno >= 0 &&
39  ccl_errno < sizeof(err_msg_array)/sizeof(*err_msg_array))
40  return err_msg_array[ccl_errno];
41  else
42  return 0;
43 }
44 /*
45  * Local variables:
46  * c-basic-offset: 4
47  * c-file-style: "Stroustrup"
48  * indent-tabs-mode: nil
49  * End:
50  * vim: shiftwidth=4 tabstop=8 expandtab
51  */
52 
Header with public definitions for CCL.
const char * ccl_err_msg(int ccl_errno)
Definition: cclerrms.c:36
static char * err_msg_array[]
Definition: cclerrms.c:18