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
SRW, CQL, 2003
[yaz-moved-to-github.git]
/
ccl
/
ccltoken.c
diff --git
a/ccl/ccltoken.c
b/ccl/ccltoken.c
index
afbac9c
..
e530e11
100644
(file)
--- a/
ccl/ccltoken.c
+++ b/
ccl/ccltoken.c
@@
-44,7
+44,7
@@
/* CCL - lexical analysis
* Europagate, 1995
*
/* CCL - lexical analysis
* Europagate, 1995
*
- * $Id: ccltoken.c,v 1.19 2002-06-06 12:54:24 adam Exp $
+ * $Id: ccltoken.c,v 1.21 2002-12-28 12:13:03 adam Exp $
*
* Old Europagate Log:
*
*
* Old Europagate Log:
*
@@
-244,7
+244,7
@@
struct ccl_token *ccl_parser_tokenize (CCL_parser cclp, const char *command)
case '%':
case '!':
last->kind = CCL_TOK_PROX;
case '%':
case '!':
last->kind = CCL_TOK_PROX;
- while (*cp == '%' || *cp == '!')
+ while (isdigit(*cp))
{
++ last->len;
cp++;
{
++ last->len;
cp++;
@@
-277,9
+277,9
@@
struct ccl_token *ccl_parser_tokenize (CCL_parser cclp, const char *command)
cp++;
break;
default:
cp++;
break;
default:
- if (!strchr ("(),%!><=- \t\n\r", cp[-1]))
+ if (!strchr ("(),%!><= \t\n\r", cp[-1]))
{
{
- while (*cp && !strchr ("(),%!><=- \t\n\r", *cp))
+ while (*cp && !strchr ("(),%!><= \t\n\r", *cp))
{
cp++;
++ last->len;
{
cp++;
++ last->len;