Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

35 lines
696 B

// 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" );
}
}