From 9d4aafa68700c76b6d82203bc53592875bb83825 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 17 Apr 2007 07:56:29 +0000 Subject: [PATCH] Removed dotted2oid which exists in YAZ already --- Makefile.PL | 4 ++-- SimpleServer.xs | 43 +------------------------------------------ 2 files changed, 3 insertions(+), 44 deletions(-) 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; -- 1.7.10.4