[BACK]Return to initscan.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / lex

Diff for /src/usr.bin/lex/Attic/initscan.c between version 1.5 and 1.6

version 1.5, 1997/07/25 21:05:29 version 1.6, 2001/11/19 19:02:14
Line 1481 
Line 1481 
   
 YY_DECL  YY_DECL
         {          {
         register yy_state_type yy_current_state;          yy_state_type yy_current_state;
         register char *yy_cp, *yy_bp;          char *yy_cp, *yy_bp;
         register int yy_act;          int yy_act;
   
 #line 94 "scan.l"  #line 94 "scan.l"
   
Line 1539 
Line 1539 
 yy_match:  yy_match:
                 do                  do
                         {                          {
                         register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];                          YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
                         if ( yy_accept[yy_current_state] )                          if ( yy_accept[yy_current_state] )
                                 {                                  {
                                 yy_last_accepting_state = yy_current_state;                                  yy_last_accepting_state = yy_current_state;
Line 2292 
Line 2292 
 YY_RULE_SETUP  YY_RULE_SETUP
 #line 435 "scan.l"  #line 435 "scan.l"
 {  {
                         register Char *nmdefptr;                          Char *nmdefptr;
                         Char *ndlookup();                          Char *ndlookup();
   
                         strcpy( nmstr, yytext + 1 );                          strcpy( nmstr, yytext + 1 );
Line 2891 
Line 2891 
   
 static int yy_get_next_buffer()  static int yy_get_next_buffer()
         {          {
         register char *dest = yy_current_buffer->yy_ch_buf;          char *dest = yy_current_buffer->yy_ch_buf;
         register char *source = yytext_ptr;          char *source = yytext_ptr;
         register int number_to_move, i;          int number_to_move, i;
         int ret_val;          int ret_val;
   
         if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )          if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
Line 3023 
Line 3023 
   
 static yy_state_type yy_get_previous_state()  static yy_state_type yy_get_previous_state()
         {          {
         register yy_state_type yy_current_state;          yy_state_type yy_current_state;
         register char *yy_cp;          char *yy_cp;
   
         yy_current_state = yy_start;          yy_current_state = yy_start;
         yy_current_state += YY_AT_BOL();          yy_current_state += YY_AT_BOL();
   
         for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )          for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
                 {                  {
                 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);                  YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
                 if ( yy_accept[yy_current_state] )                  if ( yy_accept[yy_current_state] )
                         {                          {
                         yy_last_accepting_state = yy_current_state;                          yy_last_accepting_state = yy_current_state;
Line 3063 
Line 3063 
 yy_state_type yy_current_state;  yy_state_type yy_current_state;
 #endif  #endif
         {          {
         register int yy_is_jam;          int yy_is_jam;
         register char *yy_cp = yy_c_buf_p;          char *yy_cp = yy_c_buf_p;
   
         register YY_CHAR yy_c = 1;          YY_CHAR yy_c = 1;
         if ( yy_accept[yy_current_state] )          if ( yy_accept[yy_current_state] )
                 {                  {
                 yy_last_accepting_state = yy_current_state;                  yy_last_accepting_state = yy_current_state;
Line 3087 
Line 3087 
   
 #ifndef YY_NO_UNPUT  #ifndef YY_NO_UNPUT
 #ifdef YY_USE_PROTOS  #ifdef YY_USE_PROTOS
 static void yyunput( int c, register char *yy_bp )  static void yyunput( int c, char *yy_bp )
 #else  #else
 static void yyunput( c, yy_bp )  static void yyunput( c, yy_bp )
 int c;  int c;
 register char *yy_bp;  char *yy_bp;
 #endif  #endif
         {          {
         register char *yy_cp = yy_c_buf_p;          char *yy_cp = yy_c_buf_p;
   
         /* undo effects of setting up yytext */          /* undo effects of setting up yytext */
         *yy_cp = yy_hold_char;          *yy_cp = yy_hold_char;
Line 3102 
Line 3102 
         if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )          if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
                 { /* need to shift things up to make room */                  { /* need to shift things up to make room */
                 /* +2 for EOB chars. */                  /* +2 for EOB chars. */
                 register int number_to_move = yy_n_chars + 2;                  int number_to_move = yy_n_chars + 2;
                 register char *dest = &yy_current_buffer->yy_ch_buf[                  char *dest = &yy_current_buffer->yy_ch_buf[
                                         yy_current_buffer->yy_buf_size + 2];                                          yy_current_buffer->yy_buf_size + 2];
                 register char *source =                  char *source =
                                 &yy_current_buffer->yy_ch_buf[number_to_move];                                  &yy_current_buffer->yy_ch_buf[number_to_move];
   
                 while ( source > yy_current_buffer->yy_ch_buf )                  while ( source > yy_current_buffer->yy_ch_buf )
Line 3567 
Line 3567 
 int n;  int n;
 #endif  #endif
         {          {
         register int i;          int i;
         for ( i = 0; i < n; ++i )          for ( i = 0; i < n; ++i )
                 s1[i] = s2[i];                  s1[i] = s2[i];
         }          }
Line 3581 
Line 3581 
 yyconst char *s;  yyconst char *s;
 #endif  #endif
         {          {
         register int n;          int n;
         for ( n = 0; s[n]; ++n )          for ( n = 0; s[n]; ++n )
                 ;                  ;
   

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6