xref: /csrg-svn/usr.bin/pascal/libpc/STLIM.c (revision 62096)
140865Sbostic /*-
2*62096Sbostic  * Copyright (c) 1979, 1993
3*62096Sbostic  *	The Regents of the University of California.  All rights reserved.
440865Sbostic  *
540865Sbostic  * %sccs.include.redist.c%
640865Sbostic  */
71703Smckusick 
840865Sbostic #ifndef lint
9*62096Sbostic static char sccsid[] = "@(#)STLIM.c	8.1 (Berkeley) 06/06/93";
1040865Sbostic #endif /* not lint */
111703Smckusick 
121703Smckusick #include "h00vars.h"
131703Smckusick 
STLIM(limit)141703Smckusick STLIM(limit)
151703Smckusick 
161703Smckusick 	long	limit;
171703Smckusick {
181703Smckusick 	if (_stcnt >= limit) {
193869Smckusic 		ERROR("Statement count limit of %D exceeded\n", _stcnt);
201703Smckusick 		return;
211703Smckusick 	}
221703Smckusick 	_stlim = limit;
231703Smckusick }
24