X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fmarc_read_line.c;h=7bfa198326c8fd87a9d2e1a976f1df8c1ea86801;hp=684a52238b5b331f6c55ace62d64cc32686ed9b0;hb=7fc72f3ae149e416a297ef1f55c09271056e98f1;hpb=0c46d2e66bdeea1600e700124a81a5d0a65d349e diff --git a/src/marc_read_line.c b/src/marc_read_line.c index 684a522..7bfa198 100644 --- a/src/marc_read_line.c +++ b/src/marc_read_line.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2013 Index Data + * Copyright (C) Index Data * See the file LICENSE for details. */ @@ -24,10 +24,10 @@ #include #include -int yaz_gets(int (*getbyte)(void *client_data), - void (*ungetbyte)(int b, void *client_data), - void *client_data, - WRBUF w) +static int yaz_gets(int (*getbyte)(void *client_data), + void (*ungetbyte)(int b, void *client_data), + void *client_data, + WRBUF w) { size_t sz = 0; int ch = getbyte(client_data); @@ -202,7 +202,8 @@ int yaz_marc_read_line(yaz_marc_t mt, while ((next = strchr(next, marker_ch))) { if ((next[1] >= 'A' && next[1] <= 'Z') - ||(next[1] >= 'a' && next[1] <= 'z')) + ||(next[1] >= 'a' && next[1] <= 'z') + ||(next[1] >= '0' && next[1] <= '9')) { if (!marker_skip) break;