/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1996-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> *
* Glenn Fowler <gsf@research.att.com> *
* *
***********************************************************************/
#include "rshdr.h"
/* Change discipline for a context
**
** Written by Kiem-Phong Vo (07/29/96).
*/
#if __STD_C
#else
int op;
#endif
{
switch (op)
{
case RS_DISC:
if(disc)
}
return old;
case RS_NEXT:
if (disc)
{
break;
}
return cur;
case RS_POP:
prv = 0;
if (disc)
if (cur)
{
if (prv)
else
return 0;
{
}
}
else
disc = 0;
return disc;
case RS_PUSH:
if (!disc)
return 0;
{
if (prv)
{
/*
* move to front
*/
}
return disc;
}
return disc;
}
return 0;
}