xref: /csrg-svn/usr.bin/pascal/libpc/STLIM.c (revision 40865)
1*40865Sbostic /*-
2*40865Sbostic  * Copyright (c) 1979 The Regents of the University of California.
3*40865Sbostic  * All rights reserved.
4*40865Sbostic  *
5*40865Sbostic  * %sccs.include.redist.c%
6*40865Sbostic  */
71703Smckusick 
8*40865Sbostic #ifndef lint
9*40865Sbostic static char sccsid[] = "@(#)STLIM.c	1.3 (Berkeley) 04/09/90";
10*40865Sbostic #endif /* not lint */
111703Smckusick 
121703Smckusick #include "h00vars.h"
131703Smckusick 
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