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 */ 71662Smckusick 8*40865Sbostic #ifndef lint 9*40865Sbostic static char sccsid[] = "@(#)LLIMIT.c 1.4 (Berkeley) 04/09/90"; 10*40865Sbostic #endif /* not lint */ 111662Smckusick 121662Smckusick #include "h00vars.h" 131662Smckusick 141662Smckusick LLIMIT(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