[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lpeg SHRT_MAX
- From: roberto@... (Roberto Ierusalimschy)
- Date: Mon, 28 May 2007 12:39:56 -0300
> Is there any problem with changing the 'short's in lpeg.c to 'long's to
> enable larger patterns? (Is there something else I'd have to change as
> well?)
I guess it is ok to change that (although I never tested it). You have
to change also MAXPATTSIZE (of course...) and 'short idx' in struct
Capture.
Why do you need patterns that large? Can't you compact them?
-- Roberto