X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=ccl%2Fccltoken.c;fp=ccl%2Fccltoken.c;h=c89b155c50b4e406465f059b586cdbda4dd61f30;hp=b0e1b81629833648d72523564d9f1f7060773375;hb=bd6a2e5050dfc5ea460202106fe396c584c31838;hpb=ab6f8762c003a867d0e1eb8ac5686a99de47976a diff --git a/ccl/ccltoken.c b/ccl/ccltoken.c index b0e1b81..c89b155 100644 --- a/ccl/ccltoken.c +++ b/ccl/ccltoken.c @@ -45,7 +45,10 @@ * Europagate, 1995 * * $Log: ccltoken.c,v $ - * Revision 1.16 2001-03-07 13:24:40 adam + * Revision 1.17 2001-10-03 23:54:41 adam + * Fixes for numeric ranges (date=1980-1990). + * + * Revision 1.16 2001/03/07 13:24:40 adam * Member and_not in Z_Operator is kept for backwards compatibility. * Added support for definition of CCL operators in field spec file. * @@ -317,10 +320,13 @@ struct ccl_token *ccl_parser_tokenize (CCL_parser cclp, const char *command) cp++; break; default: - while (*cp && !strchr ("(),%!><=- \t\n\r", *cp)) + if (!strchr ("(),%!><=- \t\n\r", cp[-1])) { - cp++; - ++ last->len; + while (*cp && !strchr ("(),%!><=- \t\n\r", *cp)) + { + cp++; + ++ last->len; + } } last->kind = CCL_TOK_TERM;