140865Sbostic /*- 2*62092Sbostic * Copyright (c) 1979, 1993 3*62092Sbostic * The Regents of the University of California. All rights reserved. 440865Sbostic * 540865Sbostic * %sccs.include.redist.c% 640865Sbostic */ 71662Smckusick 840865Sbostic #ifndef lint 9*62092Sbostic static char sccsid[] = "@(#)LLIMIT.c 8.1 (Berkeley) 06/06/93"; 1040865Sbostic #endif /* not lint */ 111662Smckusick 121662Smckusick #include "h00vars.h" 131662Smckusick LLIMIT(curfile,limit)141662SmckusickLLIMIT(curfile, limit) 151662Smckusick 161662Smckusick register struct iorec *curfile; 173010Smckusic long limit; 181662Smckusick { 191662Smckusick if (limit <= 0) 201662Smckusick limit = 0x7fffffff; 211662Smckusick curfile->llimit = limit; 221662Smckusick if (curfile->lcount >= curfile->llimit) { 233867Smckusic ERROR("%s: Line limit exceeded\n", curfile->pfname); 241662Smckusick return; 251662Smckusick } 261662Smckusick } 27