home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume16 / xfmt / flex.skel.diff < prev    next >
Encoding:
Text File  |  1988-11-10  |  1.6 KB  |  80 lines

  1. *** flex.skel.orig    Tue May 31 16:32:11 1988
  2. --- flex.skel        Tue May 31 16:35:25 1988
  3. ***************
  4. *** 12,18
  5.   /* these variables are all declared out here so that section 3 code can
  6.    * manipulate them
  7.    */
  8. ! static int yy_start, yy_b_buf_p, yy_c_buf_p, yy_e_buf_p;
  9.   static int yy_saw_eof, yy_init = 1;
  10.   
  11.   /* yy_ch_buf has to be 1 character longer than YY_BUF_SIZE, since when
  12.  
  13. --- 12,18 -----
  14.   /* these variables are all declared out here so that section 3 code can
  15.    * manipulate them
  16.    */
  17. ! static int yy_start = 0, yy_b_buf_p, yy_c_buf_p, yy_e_buf_p;
  18.   static int yy_saw_eof, yy_init = 1;
  19.   
  20.   /* yy_ch_buf has to be 1 character longer than YY_BUF_SIZE, since when
  21. ***************
  22. *** 28,33
  23.   YY_DECL
  24.       {
  25.       int yy_n_chars, yy_lp, yy_iii, yy_buf_pos, yy_act;
  26.   
  27.   %% user's declarations go here
  28.   
  29.  
  30. --- 28,36 -----
  31.   YY_DECL
  32.       {
  33.       int yy_n_chars, yy_lp, yy_iii, yy_buf_pos, yy_act;
  34. + #ifdef FLEX_REJECT_ENABLED
  35. +     int yy_full_match;
  36. + #endif
  37.   
  38.   %% user's declarations go here
  39.   
  40. ***************
  41. *** 34,40
  42.       if ( yy_init )
  43.       {
  44.       YY_INIT;
  45. !     yy_start = 1;
  46.       yy_init = 0;
  47.       }
  48.   
  49.  
  50. --- 37,43 -----
  51.       if ( yy_init )
  52.       {
  53.       YY_INIT;
  54. !     if (!yy_start) yy_start = 1;
  55.       yy_init = 0;
  56.       }
  57.   
  58. ***************
  59. *** 41,46
  60.       goto get_next_token;
  61.   
  62.   do_action:
  63.       for ( ; ; )
  64.       {
  65.       YY_DO_BEFORE_ACTION
  66.  
  67. --- 44,55 -----
  68.       goto get_next_token;
  69.   
  70.   do_action:
  71. + #ifdef FLEX_REJECT_ENABLED
  72. +     /* remember matched text in case we back up due to trailing context */
  73. +     yy_full_match = yy_c_buf_p;
  74. + #endif
  75.       for ( ; ; )
  76.       {
  77.       YY_DO_BEFORE_ACTION
  78.