Changeset 879


Ignore:
Timestamp:
Jun 29, 2003, 1:58:03 AM (18 years ago)
Author:
orlov
Message:
  • Methods for flat expressions equality checks have been removed.
Location:
to-imperative/trunk/runtime
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • to-imperative/trunk/runtime/rf_expr.hh

    r873 r879  
    165165  inline bool eq (Expr const& _expr, uintptr_t _index) ;
    166166  ///
    167   /// As previous, but works correctly only when at least one of the
    168   /// expressions is flat.
    169   inline bool flat_eq (Expr const& _expr, uintptr_t _index) ;
    170   ///
    171   /// Same methods for const expressions.
     167  /// Same method for const expression.
    172168  inline bool eq (Expr const& _expr, uintptr_t _index) const ;
    173   inline bool flat_eq (Expr const& _expr, uintptr_t _index) const ;
    174169  ///
    175170  /// Compare our first term with some one of another expression as flat
  • to-imperative/trunk/runtime/rf_term.hh

    r873 r879  
    163163  ) ;
    164164  ///
    165   /// Check whether two flat term sequences are equal
    166   static inline bool flat_eq (
    167     Term const* _p1, Term const* _p2, uintptr_t _len
    168   ) ;
    169   ///
    170165  /// Check whether a term is a symbol
    171166  inline bool is_sym () const ;
  • to-imperative/trunk/runtime/rf_term.ih

    r873 r879  
    169169  {
    170170    if (*_p1 != *_p2) return false;
    171   }
    172   return true;
    173 }
    174 
    175 inline bool Term::flat_eq (
    176   Term const* _p1, Term const* _p2, uintptr_t _len
    177 )
    178 {
    179   for (; _len--; _p1++, _p2++)
    180   {
    181     if (_p1->data1 != _p2->data1 || _p1->uint_data2 != _p2->uint_data2)
    182       return false;
    183171  }
    184172  return true;
Note: See TracChangeset for help on using the changeset viewer.