/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1995-2012 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 "vdelhdr.h"
/* IO subsystem for the delta routines
**
** Written by Kiem-Phong Vo (12/15/94)
*/
#if __STD_C
#else
#endif
{
else
}
}
#if __STD_C
#else
#endif
{ reg int n;
}
return n;
}
#if __STD_C
#else
#endif
{ reg int n;
return -1;
}
#if __STD_C
#else
#endif
{ reg int c;
for(v &= I_MORE-1;;)
return (ulong)(-1L);
if(!(c&I_MORE) )
return ((v<<I_SHIFT) | c);
}
}
#if __STD_C
#else
#endif
{
s = next = &c[sizeof(c)-1];
*s = I_CODE(v);
while((v >>= I_SHIFT) )
return -1;
switch(len)
{
case 3: *next++ = *s++;
case 2: *next++ = *s++;
case 1: *next++ = *s;
}
return len;
}
#if __STD_C
#else
reg int n;
#endif
{
reg int r, m;
for(m = n; m > 0; )
break;
if(r > m)
r = m;
m -= r;
}
return n-m;
}
#if __STD_C
#else
reg int n;
#endif
{
reg int w, m;
for(m = n; m > 0; )
break;
if(w > m)
w = m;
m -= w;
}
return n-m;
}
{ _vdfilbuf,
};