- strncasecmp
-#endif
- (completions[idx],text,strlen(text))) {
- ++idx; /* skip this entry on the next run */
- return (char*)strdup(completions[idx-1]);
- };
- };
- return NULL;
+ strncasecmp
+#endif
+ (completions[idx],text,strlen(text))) {
+ ++idx; /* skip this entry on the next run */
+ return (char*)strdup(completions[idx-1]);
+ };
+ };
+ return NULL;
- oid_callback_t* data=(oid_callback_t*) data_;
-
-
- if((oid->oclass == CLASS_GENERAL) || (oid->oclass == data->oclass)) {
- if(data->index==data->max) {
- data->values=(char**)realloc(data->values,((data->max+1)*2)*sizeof(char*));
- data->max=(data->max+1)*2 - 1;
- };
- data->values[data->index]=oid->desc;
- ++data->index;
- }
+ oid_callback_t* data=(oid_callback_t*) data_;
+
+
+ if((oid->oclass == CLASS_GENERAL) || (oid->oclass == data->oclass)) {
+ if(data->index==data->max) {
+ data->values=(char**)realloc(data->values,((data->max+1)*2)*sizeof(char*));
+ data->max=(data->max+1)*2 - 1;
+ };
+ data->values[data->index]=oid->desc;
+ ++data->index;
+ }
-char** build_list_for_oclass(oid_class oclass) {
- oid_callback_t data;
- data.values = calloc(10,sizeof(char*));
- data.index = 0;
- data.max = 9;
- data.oclass = oclass;
-
- oid_trav(oid_loader, &data);
-
- data.values[data.index]=0;
- return data.values;
+char** build_list_for_oclass(oid_class oclass) {
+ oid_callback_t data;
+ data.values = (char **) calloc(10,sizeof(char*));
+ data.index = 0;
+ data.max = 9;
+ data.oclass = oclass;
+
+ oid_trav(oid_loader, &data);
+
+ data.values[data.index]=0;
+ return data.values;
- char* querytypes[] = {"ccl2rpn","prefix","cclrpn","ccl",0};
+ char* querytypes[] = {"ccl2rpn","prefix","cclrpn","ccl","cql", 0};
- char** list=build_list_for_oclass(CLASS_RECSYN);
- char* res=complete_from_list(list,text,state);
-
- free(list);
- return res;
+ char** list=build_list_for_oclass(CLASS_RECSYN);
+ char* res=complete_from_list(list,text,state);
+
+ free(list);
+ return res;
- char** list=build_list_for_oclass(CLASS_SCHEMA);
- char* res=complete_from_list(list,text,state);
-
- free(list);
- return res;
+ char** list=build_list_for_oclass(CLASS_SCHEMA);
+ char* res=complete_from_list(list,text,state);
+
+ free(list);
+ return res;
- char** list=build_list_for_oclass(CLASS_ATTSET);
- char* res=complete_from_list(list,text,state);
-
- free(list);
- return res;
+ char** list=build_list_for_oclass(CLASS_ATTSET);
+ char* res=complete_from_list(list,text,state);
+
+ free(list);
+ return res;