projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Enhancements and new bugs in Generic Frontend Server..
[yaz-moved-to-github.git]
/
client
/
tabcomplete.c
diff --git
a/client/tabcomplete.c
b/client/tabcomplete.c
index
07cb0f0
..
61bec92
100644
(file)
--- a/
client/tabcomplete.c
+++ b/
client/tabcomplete.c
@@
-1,8
+1,8
@@
/*
/*
- * Copyright (c) 2002, Index Data
+ * Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
* See the file LICENSE for details.
*
- * $Id: tabcomplete.c,v 1.7 2002-08-29 19:34:44 ja7 Exp $
+ * $Id: tabcomplete.c,v 1.10 2005-01-15 19:47:08 adam Exp $
*/
#include <string.h>
*/
#include <string.h>
@@
-14,11
+14,11
@@
extern char** curret_global_list;
extern char** curret_global_list;
-/* *****************************************************************************
+/* ***************************************************************************
*
*
- * generic compleater
+ * generic completer
*
*
- * *****************************************************************************/
+ * ***************************************************************************/
char* complete_from_list(char* completions[], const char *text, int state)
{
char* complete_from_list(char* completions[], const char *text, int state)
{
@@
-44,11
+44,11
@@
char* complete_from_list(char* completions[], const char *text, int state)
}
}
-/* *****************************************************************************
+/* ***************************************************************************
*
* code for getting a list of valid strings from the oid subsystem
*
*
* code for getting a list of valid strings from the oid subsystem
*
- * *****************************************************************************/
+ * ***************************************************************************/
typedef struct {
typedef struct {
@@
-59,8
+59,8
@@
typedef struct {
} oid_callback_t;
/*!
} oid_callback_t;
/*!
- This is the call back function given to oid_trav... it updates the list of pointers into the oid
- owned data
+ This is the call back function given to oid_trav... it updates the list
+ of pointers into the oid owned data
*/
void oid_loader(struct oident* oid, void* data_)
*/
void oid_loader(struct oident* oid, void* data_)
@@
-80,7
+80,7
@@
void oid_loader(struct oident* oid, void* data_)
char** build_list_for_oclass(oid_class oclass) {
oid_callback_t data;
char** build_list_for_oclass(oid_class oclass) {
oid_callback_t data;
- data.values = calloc(10,sizeof(char*));
+ data.values = (char **) calloc(10,sizeof(char*));
data.index = 0;
data.max = 9;
data.oclass = oclass;
data.index = 0;
data.max = 9;
data.oclass = oclass;
@@
-91,15
+91,15
@@
char** build_list_for_oclass(oid_class oclass) {
return data.values;
}
return data.values;
}
-/* *****************************************************************************
+/* ***************************************************************************
*
*
- * the compleater functions
+ * the completer functions
*
*
- * *****************************************************************************/
+ * ***************************************************************************/
char* complete_querytype(const char *text, int state)
{
char* complete_querytype(const char *text, int state)
{
- char* querytypes[] = {"ccl2rpn","prefix","cclrpn","ccl",0};
+ char* querytypes[] = {"ccl2rpn","prefix","cclrpn","ccl","cql", 0};
return complete_from_list(querytypes,text,state);
}
return complete_from_list(querytypes,text,state);
}