#13 Re: [ 1297658 ] underestimation of n in YYFILL(n)

closed-fixed
None
5
2005-11-02
2005-11-02
Antal K
No

> It seems you analyzed this in more detail, could you
perhaps
> create a patch also?

This patch appears to work. Only ran on tests coming
with re2c-0.9.10, but

$ diff cnokw.c cnokw.temp
136c136
< if((YYLIMIT - YYCURSOR) < 4) YYFILL(4);
---
> if((YYLIMIT - YYCURSOR) < 5) YYFILL(5);

suggests it is OK. (Other tests show no difference).

----

Discussion

  • Antal K
    Antal K
    2005-11-02

     
    Attachments
  • Marcus Börger
    Marcus Börger
    2005-11-02

    Logged In: YES
    user_id=271023

    Thanks, that fixed the code generation.

     
  • Marcus Börger
    Marcus Börger
    2005-11-02

    • status: open --> closed-fixed
     
  • Marcus Börger
    Marcus Börger
    2005-11-02

    • assigned_to: nobody --> helly