/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 2000-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* Phong Vo <kpv@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
/*
* pt handle operations
*
* Glenn Fowler
* AT&T Research
*/
#include "ptlib.h"
/*
* order by prefix
*/
static int
{
return -1;
return 1;
return 0;
}
static void*
{
register Ptprefix_t* b;
{
}
return b;
}
static void
{
free(a);
}
/*
* open a new table
*/
Pt_t*
{
Pt_t* a;
{
if (a)
free(a);
return 0;
}
return a;
}
/*
* close a table
*/
int
{
if (!a)
return -1;
free(a);
return 0;
}
/*
* insert prefix range min..max into tab
* prefix pointer returned on success
*/
{
pp = 0;
if (xp)
{
return xp;
{
do
{
}
}
}
/*
* delete prefix range min..max from tab
* 0 returned on success
*/
int
{
{
do
{
{
goto bad;
{
goto bad;
break;
}
}
{
goto bad;
}
}
return 0;
bad:
return -1;
}