X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fccltoken.c;h=c4f0a601ead32f37d89b6f75e0e64a3d684d59c6;hb=b0ac22df7abdd45011addef4e726b278d5ba0f02;hp=758447308cb28145265c9ef437725a71555c9a9b;hpb=05c274ef315384faafcc5900c17468f0ea2474e6;p=yaz-moved-to-github.git diff --git a/src/ccltoken.c b/src/ccltoken.c index 7584473..c4f0a60 100644 --- a/src/ccltoken.c +++ b/src/ccltoken.c @@ -48,7 +48,7 @@ /* CCL - lexical analysis * Europagate, 1995 * - * $Id: ccltoken.c,v 1.5 2004-10-15 00:19:00 adam Exp $ + * $Id: ccltoken.c,v 1.6 2005-03-15 16:32:52 adam Exp $ * * Old Europagate Log: * @@ -211,6 +211,7 @@ struct ccl_token *ccl_parser_tokenize (CCL_parser cclp, const char *command) while (1) { + const unsigned char *cp0 = cp; while (*cp && strchr (" \t\r\n", *cp)) { cp++; @@ -229,6 +230,8 @@ struct ccl_token *ccl_parser_tokenize (CCL_parser cclp, const char *command) last->next->prev = last; last = last->next; } + last->ws_prefix_buf = cp0; + last->ws_prefix_len = cp - cp0; last->next = NULL; last->name = (const char *) cp; last->len = 1;