From: Adam Dickmeiss Date: Tue, 17 Apr 2007 07:56:29 +0000 (+0000) Subject: Removed dotted2oid which exists in YAZ already X-Git-Tag: CPAN.1.12~98 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=9d4aafa68700c76b6d82203bc53592875bb83825;p=simpleserver-moved-to-github.git Removed dotted2oid which exists in YAZ already --- diff --git a/Makefile.PL b/Makefile.PL index 7972e3b..0a3c361 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,8 +1,8 @@ use ExtUtils::MakeMaker; -## $Id: Makefile.PL,v 1.13 2007-04-17 07:55:02 adam Exp $ +## $Id: Makefile.PL,v 1.14 2007-04-17 07:56:29 adam Exp $ -my $yazconf = "yaz-config"; +my $yazconf = "../yaz/yaz-config"; my $yazver = `$yazconf --version`; my $yazinc = `$yazconf --cflags threads`; my $yazlibs = `$yazconf --libs threads`; diff --git a/SimpleServer.xs b/SimpleServer.xs index 54d61f8..f3899e7 100644 --- a/SimpleServer.xs +++ b/SimpleServer.xs @@ -1,5 +1,5 @@ /* - * $Id: SimpleServer.xs,v 1.57 2007-04-17 07:55:02 adam Exp $ + * $Id: SimpleServer.xs,v 1.58 2007-04-17 07:56:29 adam Exp $ * ---------------------------------------------------------------------- * * Copyright (c) 2000-2004, Index Data. @@ -791,47 +791,6 @@ WRBUF oid2dotted(int *oid) return buf; } - -int dotted2oid(char *dotted, int *buffer) -{ - int *oid; - char ibuf[16]; - char *ptr; - int n = 0; - - ptr = ibuf; - oid = buffer; - while (*dotted) - { - if (*dotted == '.') - { - n++; - if (n == MAX_OID) /* Terminate if more than MAX_OID entries */ - { - *oid = -1; - return -1; - } - *ptr = 0; - sscanf(ibuf, "%d", oid++); - ptr = ibuf; - dotted++; - - } - else - { - *ptr++ = *dotted++; - } - } - if (n < MAX_OID) - { - *ptr = 0; - sscanf(ibuf, "%d", oid++); - } - *oid = -1; - return 0; -} - - int bend_fetch(void *handle, bend_fetch_rr *rr) { HV *href;