X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=index%2Fzrpn.c;h=f7a233084e789b0ebfb08a6dd4723e4c24b074ce;hb=062978fe7432da086bd0cb468149d88d1b6414cf;hp=a51d937479aba67cc95940b5a454efaf5fcef1b9;hpb=62f6cad37f14a19d9c1ce763ea54a61b350c7881;p=idzebra-moved-to-github.git diff --git a/index/zrpn.c b/index/zrpn.c index a51d937..f7a2330 100644 --- a/index/zrpn.c +++ b/index/zrpn.c @@ -4,7 +4,14 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: zrpn.c,v $ - * Revision 1.38 1995-12-11 09:12:55 adam + * Revision 1.40 1996-02-02 13:44:44 adam + * The public dictionary functions simply use char instead of Dict_char + * to represent search strings. Dict_char is used internally only. + * + * Revision 1.39 1996/01/03 16:22:13 quinn + * operator->roperator + * + * Revision 1.38 1995/12/11 09:12:55 adam * The rec_get function returns NULL if record doesn't exist - will * happen in the server if the result set records have been deleted since * the creation of the set (i.e. the search). @@ -491,7 +498,7 @@ static void add_isam_p (const char *info, struct grep_info *p) (p->isam_p_indx)++; } -static int grep_handle (Dict_char *name, const char *info, void *p) +static int grep_handle (char *name, const char *info, void *p) { logf (LOG_DEBUG, "dict name: %s", name); add_isam_p (info, p); @@ -1145,7 +1152,7 @@ static RSET rpn_search_structure (ZServerInfo *zi, Z_RPNStructure *zs, bool_parms.key_size = sizeof(struct it_key); bool_parms.cmp = key_compare; - switch (zs->u.complex->operator->which) + switch (zs->u.complex->roperator->which) { case Z_Operator_and: r = rset_create (soft ? rset_kind_sand:rset_kind_and, &bool_parms); @@ -1277,8 +1284,7 @@ struct scan_info { char prefix[20]; }; -static int scan_handle (Dict_char *name, const char *info, int pos, - void *client) +static int scan_handle (char *name, const char *info, int pos, void *client) { int len_prefix, idx; ISAM_P isam_p; @@ -1313,7 +1319,7 @@ static int scan_handle (Dict_char *name, const char *info, int pos, } -static int dummy_handle (Dict_char *name, const char *info, void *p) +static int dummy_handle (char *name, const char *info, void *p) { return 0; }