Difference for common/loader.c from version 1.1 to 1.2


version 1.1 version 1.2
Line 1
 
Line 1
 /* A lexical scanner generated by flex */  /* A lexical scanner generated by flex */
   
 /* Scanner skeleton version:  /* Scanner skeleton version:
  * $Header: /cvsroot/crossfire/crossfire/common/loader.c,v 1.1 1999/04/02 19:10:03 uid200 Exp $   * $Header: /cvsroot/crossfire/crossfire/common/loader.c,v 1.2 1999/05/08 22:52:41 cvs Exp $
  */   */
   
 #define FLEX_SCANNER  #define FLEX_SCANNER
Line 126
 
Line 126
  { \   { \
  /* Undo effects of setting up yytext. */ \   /* Undo effects of setting up yytext. */ \
  *yy_cp = yy_hold_char; \   *yy_cp = yy_hold_char; \
    YY_RESTORE_YY_MORE_OFFSET \
  yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \   yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
  YY_DO_BEFORE_ACTION; /* set up yytext again */ \   YY_DO_BEFORE_ACTION; /* set up yytext again */ \
  } \   } \
Line 235
 
Line 236
 #define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )  #define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
   
 YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));  YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
 YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *str ));  YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
 YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));  YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
   
 static void *yy_flex_alloc YY_PROTO(( yy_size_t ));  static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
Line 1250
 
Line 1251
 #define REJECT reject_used_but_not_detected  #define REJECT reject_used_but_not_detected
 #define yymore() yymore_used_but_not_detected  #define yymore() yymore_used_but_not_detected
 #define YY_MORE_ADJ 0  #define YY_MORE_ADJ 0
   #define YY_RESTORE_YY_MORE_OFFSET
 char *yytext;  char *yytext;
 #line 1 "loader.l"  #line 1 "loader.l"
 #define INITIAL 0  #define INITIAL 0
 #line 2 "loader.l"  #line 2 "loader.l"
 /*  /*
  * static char *rcsid_object_c =   * static char *rcsid_object_c =
  *   "$Id: loader.c,v 1.1 1999/04/02 19:10:03 uid200 Exp $";   *   "$Id: loader.c,v 1.2 1999/05/08 22:52:41 cvs Exp $";
  */   */
   
 /*  /*
Line 1380
 
Line 1382
 static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));  static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
 #endif  #endif
   
   #ifdef YY_NEED_STRLEN
   static int yy_flex_strlen YY_PROTO(( yyconst char * ));
   #endif
   
 #ifndef YY_NO_INPUT  #ifndef YY_NO_INPUT
 #ifdef __cplusplus  #ifdef __cplusplus
 static int yyinput YY_PROTO(( void ));  static int yyinput YY_PROTO(( void ));
Line 2578
 
Line 2584
   
  /* Undo the effects of YY_DO_BEFORE_ACTION. */   /* Undo the effects of YY_DO_BEFORE_ACTION. */
  *yy_cp = yy_hold_char;   *yy_cp = yy_hold_char;
    YY_RESTORE_YY_MORE_OFFSET
   
  if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )   if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
  {   {
Line 2723
 
Line 2730
  { /* Don't try to fill the buffer, so this is an EOF. */   { /* Don't try to fill the buffer, so this is an EOF. */
  if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )   if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
  {   {
  /* We matched a singled characater, the EOB, so   /* We matched a single character, the EOB, so
  * treat this as a final EOF.   * treat this as a final EOF.
  */   */
  return EOB_ACT_END_OF_FILE;   return EOB_ACT_END_OF_FILE;
Line 2750
 
Line 2757
  /* don't do the read, it's not guaranteed to return an EOF,   /* don't do the read, it's not guaranteed to return an EOF,
  * just force an EOF   * just force an EOF
  */   */
  yy_n_chars = 0;   yy_current_buffer->yy_n_chars = yy_n_chars = 0;
   
  else   else
  {   {
Line 2805
 
Line 2812
  /* Read in more data. */   /* Read in more data. */
  YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),   YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
  yy_n_chars, num_to_read );   yy_n_chars, num_to_read );
   
    yy_current_buffer->yy_n_chars = yy_n_chars;
  }   }
   
  if ( yy_n_chars == 0 )   if ( yy_n_chars == 0 )
Line 2930
 
Line 2939
   
  yy_cp += (int) (dest - source);   yy_cp += (int) (dest - source);
  yy_bp += (int) (dest - source);   yy_bp += (int) (dest - source);
    yy_current_buffer->yy_n_chars =
  yy_n_chars = yy_current_buffer->yy_buf_size;   yy_n_chars = yy_current_buffer->yy_buf_size;
   
  if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )   if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
Line 2968
 
Line 2978
   
  else   else
  { /* need more input */   { /* need more input */
  yytext_ptr = yy_c_buf_p;   int offset = yy_c_buf_p - yytext_ptr;
  ++yy_c_buf_p;   ++yy_c_buf_p;
   
  switch ( yy_get_next_buffer() )   switch ( yy_get_next_buffer() )
  {   {
    case EOB_ACT_LAST_MATCH:
    /* This happens because yy_g_n_b()
    * sees that we've accumulated a
    * token and flags that we need to
    * try matching the token before
    * proceeding.  But for input(),
    * there's no matching to consider.
    * So convert the EOB_ACT_LAST_MATCH
    * to EOB_ACT_END_OF_FILE.
    */
   
    /* Reset buffer status. */
    yyrestart( yyin );
   
    /* fall through */
   
  case EOB_ACT_END_OF_FILE:   case EOB_ACT_END_OF_FILE:
  {   {
  if ( yywrap() )   if ( yywrap() )
  {  
  yy_c_buf_p =  
  yytext_ptr + YY_MORE_ADJ;  
  return EOF;   return EOF;
  }  
   
  if ( ! yy_did_buffer_switch_on_eof )   if ( ! yy_did_buffer_switch_on_eof )
  YY_NEW_FILE;   YY_NEW_FILE;
Line 2992
 
Line 3014
  }   }
   
  case EOB_ACT_CONTINUE_SCAN:   case EOB_ACT_CONTINUE_SCAN:
  yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;   yy_c_buf_p = yytext_ptr + offset;
  break;   break;
   
  case EOB_ACT_LAST_MATCH:  
 #ifdef __cplusplus  
  YY_FATAL_ERROR(  
  "unexpected last match in yyinput()" );  
 #else  
  YY_FATAL_ERROR(  
  "unexpected last match in input()" );  
 #endif  
  }   }
  }   }
  }   }
Line 3167
 
Line 3180
 #endif  #endif
   
  {   {
    if ( ! b )
    return;
   
  b->yy_n_chars = 0;   b->yy_n_chars = 0;
   
  /* We always need two end-of-buffer characters.  The first causes   /* We always need two end-of-buffer characters.  The first causes
Line 3226
 
Line 3242
   
 #ifndef YY_NO_SCAN_STRING  #ifndef YY_NO_SCAN_STRING
 #ifdef YY_USE_PROTOS  #ifdef YY_USE_PROTOS
 YY_BUFFER_STATE yy_scan_string( yyconst char *str )  YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
 #else  #else
 YY_BUFFER_STATE yy_scan_string( str )  YY_BUFFER_STATE yy_scan_string( yy_str )
 yyconst char *str;  yyconst char *yy_str;
 #endif  #endif
  {   {
  int len;   int len;
  for ( len = 0; str[len]; ++len )   for ( len = 0; yy_str[len]; ++len )
  ;   ;
   
  return yy_scan_bytes( str, len );   return yy_scan_bytes( yy_str, len );
  }   }
 #endif  #endif
   
Line 3357
 
Line 3373
  { \   { \
  /* Undo effects of setting up yytext. */ \   /* Undo effects of setting up yytext. */ \
  yytext[yyleng] = yy_hold_char; \   yytext[yyleng] = yy_hold_char; \
  yy_c_buf_p = yytext + n - YY_MORE_ADJ; \   yy_c_buf_p = yytext + n; \
  yy_hold_char = *yy_c_buf_p; \   yy_hold_char = *yy_c_buf_p; \
  *yy_c_buf_p = '\0'; \   *yy_c_buf_p = '\0'; \
  yyleng = n; \   yyleng = n; \
Line 3383
 
Line 3399
  }   }
 #endif  #endif
   
   #ifdef YY_NEED_STRLEN
   #ifdef YY_USE_PROTOS
   static int yy_flex_strlen( yyconst char *s )
   #else
   static int yy_flex_strlen( s )
   yyconst char *s;
   #endif
    {
    register int n;
    for ( n = 0; s[n]; ++n )
    ;
   
    return n;
    }
   #endif
   
   
 #ifdef YY_USE_PROTOS  #ifdef YY_USE_PROTOS
 static void *yy_flex_alloc( yy_size_t size )  static void *yy_flex_alloc( yy_size_t size )
Line 3575
 
Line 3607
 {FLAG_READY_WEAPON,V_HAS_READY_WEAPON},{FLAG_NO_SKILL_IDENT,V_NO_SKILL_IDENT},  {FLAG_READY_WEAPON,V_HAS_READY_WEAPON},{FLAG_NO_SKILL_IDENT,V_NO_SKILL_IDENT},
 {FLAG_BLIND,V_BLIND},{FLAG_SEE_IN_DARK,V_SEE_IN_DARK},  {FLAG_BLIND,V_BLIND},{FLAG_SEE_IN_DARK,V_SEE_IN_DARK},
 {FLAG_IS_CAULDRON,V_IS_CAULDRON},{FLAG_DUST,V_DUST},{FLAG_NO_STEAL,V_NO_STEAL},  {FLAG_IS_CAULDRON,V_IS_CAULDRON},{FLAG_DUST,V_DUST},{FLAG_NO_STEAL,V_NO_STEAL},
 {FLAG_ONE_HIT, V_ONE_HIT}  {FLAG_ONE_HIT, V_ONE_HIT}, {-1, -1 /* Client send debug flag */ }
 };  };
   
   


Legend:
line(s) removed in v.1.1 
line(s) changed
 line(s) added in v.1.2

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:11