windows-nt/Source/XPSP1/NT/com/rpc/tools/yacc/yptitm.c

36 lines
661 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
// Copyright (c) 1993-1999 Microsoft Corporation
#include "y1.h"
/*
* yptitm.1c
*
* Modified to make debug code conditionally compile.
* 28-Aug-81
* Bob Denny
*/
void
putitem( SSIZE_T * ptr, struct looksets * lptr )
{
register struct item *j;
#ifdef debug
if( foutput!=NULL )
{
fprintf( foutput, "putitem(%s), state %d\n", writem(ptr), nstate );
}
#endif
j = pstate[nstate+1];
j->pitem = ptr;
if( !nolook ) j->look = flset( lptr );
pstate[nstate+1] = ++j;
if( (SSIZE_T *)j > zzmemsz )
{
zzmemsz = (SSIZE_T *)j;
if( zzmemsz >= &mem0[MEMSIZE] ) error( "out of state space" );
}
}