bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: patch to avoid huge buffer in scan-skel.l


From: Akim Demaille
Subject: Re: patch to avoid huge buffer in scan-skel.l
Date: Sun, 05 Jan 2003 14:23:47 +0100
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu)

| I installed this:
| 2003-01-03  Paul Eggert  <address@hidden>
| 
|       * src/scan-skel.l (address@hidden): Renamed from address@hidden so that 
the
|       token buffer does not grow to a huge size with typical
|       invocation.
| 
| --- src/scan-skel.l   3 Jan 2003 21:56:01 -0000       1.22
| +++ src/scan-skel.l   4 Jan 2003 00:31:28 -0000       1.23
| @@ -76,7 +76,7 @@ int skel_lex (void);
|  
|  "@"     abort ();
|  \n      lineno++; ECHO;
| address@hidden           ECHO;
| address@hidden           ECHO;
|  
|  <<EOF>>         xfclose (yyout); free (outname); return EOF;
|  %%

Did you actually observe problems?  I did put that + on purpose there,
since it avoids calling yylex zillions of times for a single character
each time.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]