Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site burl.UUCP Path: utzoo!linus!vaxine!wjh12!genrad!decvax!harpo!ulysses!burl!rcj From: rcj@burl.UUCP (R. Curtis Jackson) Newsgroups: net.unix-wizards,net.bugs.usg,net.lang.c Subject: way to fix lex bug mentioned earlier Message-ID: <445@burl.UUCP> Date: Mon, 23-Apr-84 18:11:18 EST Article-I.D.: burl.445 Posted: Mon Apr 23 18:11:18 1984 Date-Received: Tue, 24-Apr-84 07:36:08 EST Organization: AT&T Technologies; Burlington, NC Lines: 18 Several people have asked me questions like this: >>> Any ideas on how to get lex to check YYLMAX rather than overwriting or >>> increasing the buffer size. I consider it a bug to allow overwriting >>> in system software. Well, I don't have the time right now to make them, but if you feel like changing the function yylook() in /usr/lib/lex/ncform it shouldn't be very difficult. Just make sure that every assignment into yytext and/or yysbuf has a check for YYLMAX chars already being present in those character arrays. I think that should do it. Happy renovating [why call it nasty things like 'overhauling' or 'debugging' or 'patching'?], -- The MAD Programmer -- 919-228-3313 (Cornet 291) alias: Curtis Jackson ...![ ihnp4 ulysses cbosgd clyde ]!burl!rcj