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
nmake: build yaz_url
[yaz-moved-to-github.git]
/
src
/
ccltoken.c
diff --git
a/src/ccltoken.c
b/src/ccltoken.c
index
ed45762
..
538cd56
100644
(file)
--- a/
src/ccltoken.c
+++ b/
src/ccltoken.c
@@
-1,16
+1,18
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2010 Index Data
+ * Copyright (C) 1995-2011 Index Data
* See the file LICENSE for details.
*/
/**
* \file ccltoken.c
* \brief Implements CCL lexical analyzer (scanner)
*/
* See the file LICENSE for details.
*/
/**
* \file ccltoken.c
* \brief Implements CCL lexical analyzer (scanner)
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <string.h>
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
-#include <ctype.h>
-
+#include <yaz/yaz-iconv.h>
#include "cclp.h"
/*
#include "cclp.h"
/*
@@
-102,7
+104,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 (isdigit(*cp))
+ while (yaz_isdigit(*cp))
{
++ last->len;
cp++;
{
++ last->len;
cp++;
@@
-198,6
+200,7
@@
struct ccl_token *ccl_token_add(struct ccl_token *at)
n->next->prev = n;
n->kind = CCL_TOK_TERM;
n->next->prev = n;
n->kind = CCL_TOK_TERM;
+ n->left_trunc = n->right_trunc = 0;
n->name = 0;
n->len = 0;
n->ws_prefix_buf = 0;
n->name = 0;
n->len = 0;
n->ws_prefix_buf = 0;