/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 2003-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 *
* *
* Phong Vo <kpv@research.att.com> *
* *
***********************************************************************/
#include "vcdhdr.h"
**
** Written by Kiem-Phong Vo (kpv@research.att.com)
*/
#if __STD_C
#else
void vcdkaclose(ka)
Vcdcache_t* ka;
#endif
{
if(ka)
}
/* initialize address caches */
#if __STD_C
#else
#endif
{
return NIL(Vcdcache_t*);
return ka;
}
#if __STD_C
#else
void vcdkaclear(ka)
Vcdcache_t* ka;
#endif
{
ssize_t i;
if(ka)
ka->n = 0;
}
}
/* update address caches */
#if __STD_C
#else
Vcdcache_t* ka;
#endif
{
if(ka)
ka->n = 0;
}
}
}
/* compute encoding for COPY addresses */
#if __STD_C
#else
Vcdcache_t* ka;
#endif
{
goto done;
{ bestd = d;
goto done;
}
if(ka)
continue;
{ bestd = d;
goto done;
}
}
{ bestd = d%256;
}
}
return bestd;
}
#if __STD_C
#else
Vcdcache_t* ka;
#endif
{
ssize_t a, m;
else if(ka)
else return -1;
}
else return -1;
vcdkaupdate(ka, a);
return a;
}