/***********************************************************************
* *
* 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 "vchdr.h"
/* If a method carries states across vcapply() calls, it needs to
** provide a way so that the invoker can set multiple contexts for
**
** Written by Kiem-Phong Vo (kpv@research.att.com)
*/
#if __STD_C
#else
#endif
{
Vccontext_t *c, *p;
if(ctxt)
if(c == ctxt)
break;
if(!c) /* non-existing context */
return NIL(Vccontext_t*);
if(!p) /* already at head of list */
return ctxt;
}
else
return NIL(Vccontext_t*);
}
return ctxt;
}
#if __STD_C
#else
#endif
{
if(ctxt)
return -1;
}
else
}
return -1;
}
return 0;
}