Allow split path/level to be specified in XSLT conf.
[idzebra-moved-to-github.git] / recctrl / marcomp.c
index fa898ba..23b4044 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    $Id: marcomp.c,v 1.3 2004-12-10 11:56:22 heikki Exp $
+    $Id: marcomp.c,v 1.5 2005-01-03 19:27:53 adam Exp $
 
     marcomp.c - compiler of MARC statements.
 */
@@ -9,19 +9,7 @@
 #include <string.h>
 #include <ctype.h>
 
-
-/* Old yaz-util includes (FIXME - clean up what is not needed)*/
-#include <yaz/yconfig.h>
-#include <yaz/yaz-version.h>
-#include <yaz/xmalloc.h>
-#include <yaz/ylog.h>  
-#include <yaz/tpath.h>
-#include <yaz/options.h>
-#include <yaz/wrbuf.h>
-#include <yaz/nmem.h>
-#include <yaz/readconf.h>
-#include <yaz/marcdisp.h>
-#include <yaz/yaz-iconv.h>
+#include <yaz/yaz-util.h>
 
 #include "marcomp.h"
 
@@ -100,7 +88,8 @@ mc_token mc_gettoken(mc_context *c)
        case '[': c->crrtok = LINTERVAL; break;
        case ']': c->crrtok = RINTERVAL; break;
        default:
-           if (isspace(*(c->data+c->offset)) || *(c->data+c->offset) == '\n')
+           if (isspace(*(unsigned char *) (c->data+c->offset)) 
+                           || *(c->data+c->offset) == '\n')
            {
                c->crrtok = NOP;
            }