Source code of Windows XP (NT5)
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
661 B

  1. // Copyright (c) 1993-1999 Microsoft Corporation
  2. #include "y1.h"
  3. /*
  4. * yptitm.1c
  5. *
  6. * Modified to make debug code conditionally compile.
  7. * 28-Aug-81
  8. * Bob Denny
  9. */
  10. void
  11. putitem( SSIZE_T * ptr, struct looksets * lptr )
  12. {
  13. register struct item *j;
  14. #ifdef debug
  15. if( foutput!=NULL )
  16. {
  17. fprintf( foutput, "putitem(%s), state %d\n", writem(ptr), nstate );
  18. }
  19. #endif
  20. j = pstate[nstate+1];
  21. j->pitem = ptr;
  22. if( !nolook ) j->look = flset( lptr );
  23. pstate[nstate+1] = ++j;
  24. if( (SSIZE_T *)j > zzmemsz )
  25. {
  26. zzmemsz = (SSIZE_T *)j;
  27. if( zzmemsz >= &mem0[MEMSIZE] ) error( "out of state space" );
  28. }
  29. }