/***********************************************************************
* *
* 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
/*
* prefix table interface definitions
*
* Glenn Fowler
* AT&T Research
*/
#ifndef _PTV_H
#define _PTV_H
#include <ast.h>
#include <cdt.h>
#include <pt.h>
typedef unsigned char* Ptvaddr_t;
struct Ptvprefix_s
{
unsigned char* min;
unsigned char* max;
union
{
long number;
void* pointer;
} data;
};
struct Ptv_s
{
int size;
unsigned char* r[PTV_REGISTERS];
#ifdef _PTV_PRIVATE_
#endif
};
#if _BLD_pt && defined(__EXPORT__)
#define extern __EXPORT__
#endif
extern unsigned char* ptvmin(int, unsigned char*, const unsigned char*, int);
extern unsigned char* ptvmax(int, unsigned char*, const unsigned char*, int);
extern int ptvaddresses(Ptv_t*, unsigned char*);
#undef extern
#endif