home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d1xx / d156 / flex.lha / Flex / Flex2 / patch.2 < prev    next >
Text File  |  1988-10-02  |  916b  |  35 lines

  1. flex scanners compiled using -f or -F can generate bogus "NULL in input"
  2. messages (and then die).  The fix follows.
  3.  
  4.         Vern
  5.  
  6. *** parse.y     Thu May  5 13:36:18 1988
  7. --- /tmp/da1569 Thu May  5 14:43:06 1988
  8. ***************
  9. *** 27,48 ****
  10.   
  11.   %%
  12.   goal            :  initlex sect1 sect1end sect2
  13. -                       { /* add default rule */
  14. -                       int def_rule;
  15. -                       pat = cclinit();
  16. -                       cclnegate( pat );
  17. -                       def_rule = mkstate( -pat );
  18. -                       add_accept( def_rule, 0, 0 );
  19. -                       for ( i = 1; i <= lastsc; ++i )
  20. -                           scset[i] = mkbranch( scset[i], def_rule );
  21. -                       fputs( "YY_DEFAULT_ACTION;\n\tYY_BREAK\n",
  22. -                              temp_action_file );
  23. -                       }
  24.                 ;
  25.   
  26.   initlex         :
  27. --- 27,32 ----
  28.  
  29.  
  30.