Update source headers for 2008. Omit CVS ID keyword subst.
[yaz-moved-to-github.git] / src / cqlstrer.c
index f8b29ce..84bfac8 100644 (file)
@@ -1,18 +1,19 @@
-/* $Id: cqlstrer.c,v 1.1 2003-10-27 12:21:30 adam Exp $
-   Copyright (C) 2002-2003
-   Index Data Aps
-
-This file is part of the YAZ toolkit.
+/* This file is part of the YAZ toolkit.
+ * Copyright (C) 1995-2008 Index Data
+ * See the file LICENSE for details.
+ */
 
-See the file LICENSE.
-*/
+/**
+ * \file cqlstrer.c
+ * \brief Implements CQL error code map to description string.
+ */
 
 #include <yaz/cql.h>
 
 /*
  * The error-messages associated with these codes are taken from
  * the SRW diagnostic specifications at
- *     http://www.loc.gov/srw/diagnostic-list.html
+ *      http://www.loc.gov/standards/sru/diagnostics-list.html
  */
 const char *cql_strerror(int code) {
     static char buf[80];
@@ -22,9 +23,9 @@ const char *cql_strerror(int code) {
     case 12: return "Too many characters in query";
     case 13: return "Unbalanced or illegal use of parentheses";
     case 14: return "Unbalanced or illegal use of quotes";
-    case 15: return "Illegal or unsupported index set";
+    case 15: return "Illegal or unsupported context set";
     case 16: return "Illegal or unsupported index";
-    case 17: return "Illegal or unsupported combination of index and index set";
+    case 17: return "Illegal or unsupported combination of index and context set";
     case 18: return "Illegal or unsupported combination of indexes";
     case 19: return "Illegal or unsupported relation";
     case 20: return "Illegal or unsupported relation modifier";
@@ -52,10 +53,18 @@ const char *cql_strerror(int code) {
     case 42: return "Illegal or unsupported proximity unit";
     case 43: return "Illegal or unsupported proximity ordering";
     case 44: return "Illegal or unsupported combination of proximity modifiers";
-    case 45: return "Index set name (prefix) assigned to multiple identifiers";
+    case 45: return "Context set name (prefix) assigned to multiple identifiers";
     default: break;
     }
 
     sprintf(buf, "Unknown CQL error #%d", code);
     return buf;
 }
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+