Changeset 879
- Timestamp:
- Jun 29, 2003, 1:58:03 AM (18 years ago)
- Location:
- to-imperative/trunk/runtime
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
to-imperative/trunk/runtime/rf_expr.hh
r873 r879 165 165 inline bool eq (Expr const& _expr, uintptr_t _index) ; 166 166 /// 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. 172 168 inline bool eq (Expr const& _expr, uintptr_t _index) const ; 173 inline bool flat_eq (Expr const& _expr, uintptr_t _index) const ;174 169 /// 175 170 /// Compare our first term with some one of another expression as flat -
to-imperative/trunk/runtime/rf_term.hh
r873 r879 163 163 ) ; 164 164 /// 165 /// Check whether two flat term sequences are equal166 static inline bool flat_eq (167 Term const* _p1, Term const* _p2, uintptr_t _len168 ) ;169 ///170 165 /// Check whether a term is a symbol 171 166 inline bool is_sym () const ; -
to-imperative/trunk/runtime/rf_term.ih
r873 r879 169 169 { 170 170 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 _len177 )178 {179 for (; _len--; _p1++, _p2++)180 {181 if (_p1->data1 != _p2->data1 || _p1->uint_data2 != _p2->uint_data2)182 return false;183 171 } 184 172 return true;
Note: See TracChangeset
for help on using the changeset viewer.