/[bison]/bison/src/symtab.c
ViewVC logotype

Diff of /bison/src/symtab.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.47 by eggert, Mon Aug 12 14:53:26 2002 UTC revision 1.48 by eggert, Tue Oct 22 04:39:44 2002 UTC
# Line 228  symbol_check_defined (symbol_t *this) Line 228  symbol_check_defined (symbol_t *this)
228        this->number = nvars++;        this->number = nvars++;
229      }      }
230    
231    return TRUE;    return true;
232  }  }
233    
234    
# Line 299  symbol_check_alias_consistence (symbol_t Line 299  symbol_check_alias_consistence (symbol_t
299              this->assoc = this->alias->assoc;              this->assoc = this->alias->assoc;
300          }          }
301      }      }
302    return TRUE;    return true;
303  }  }
304    
305    
# Line 332  symbol_pack (symbol_t *this) Line 332  symbol_pack (symbol_t *this)
332          }          }
333        /* Do not do processing below for USER_NUMBER_ALIASs.  */        /* Do not do processing below for USER_NUMBER_ALIASs.  */
334        if (this->user_token_number == USER_NUMBER_ALIAS)        if (this->user_token_number == USER_NUMBER_ALIAS)
335          return TRUE;          return true;
336      }      }
337    else /* this->class == token_sym */    else /* this->class == token_sym */
338      {      {
# Line 340  symbol_pack (symbol_t *this) Line 340  symbol_pack (symbol_t *this)
340      }      }
341    
342    symbols[this->number] = this;    symbols[this->number] = this;
343    return TRUE;    return true;
344  }  }
345    
346    
# Line 367  symbol_translation (symbol_t *this) Line 367  symbol_translation (symbol_t *this)
367        token_translations[this->user_token_number] = this->number;        token_translations[this->user_token_number] = this->number;
368      }      }
369    
370    return TRUE;    return true;
371  }  }
372    
373    
# Line 383  static struct hash_table *symbol_table = Line 383  static struct hash_table *symbol_table =
383  static bool  static bool
384  hash_compare_symbol_t (const symbol_t *m1, const symbol_t *m2)  hash_compare_symbol_t (const symbol_t *m1, const symbol_t *m2)
385  {  {
386    return strcmp (m1->tag, m2->tag) ? FALSE : TRUE;    return strcmp (m1->tag, m2->tag) == 0;
387  }  }
388    
389  static unsigned int  static unsigned int
# Line 501  symbols_check_defined (void) Line 501  symbols_check_defined (void)
501  static void  static void
502  symbols_token_translations_init (void)  symbols_token_translations_init (void)
503  {  {
504    int num_256_available_p = TRUE;    bool num_256_available_p = true;
505    int i;    int i;
506    
507    /* Find the highest user token number, and whether 256, the POSIX    /* Find the highest user token number, and whether 256, the POSIX
# Line 515  symbols_token_translations_init (void) Line 515  symbols_token_translations_init (void)
515            if (this->user_token_number > max_user_token_number)            if (this->user_token_number > max_user_token_number)
516              max_user_token_number = this->user_token_number;              max_user_token_number = this->user_token_number;
517            if (this->user_token_number == 256)            if (this->user_token_number == 256)
518              num_256_available_p = FALSE;              num_256_available_p = false;
519          }          }
520      }      }
521    

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.48

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26