Changeset 781


Ignore:
Timestamp:
May 28, 2003, 9:46:35 PM (18 years ago)
Author:
pooh
Message:
  • Added ability to create flat expressions. Fixed Char::create_expr().
Location:
to-imperative/trunk/runtime
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • to-imperative/trunk/runtime/rf_char.cc

    r723 r781  
    1010  size_t len = _wstr.get_length();
    1111  const wchar_t* pstr = _wstr.get_data();
    12  
    13   Expr  e = Term::create_expr(len);
     12
     13  Expr  e = Term::create_flat_expr(len);
    1414  Term* p = e.get_first();
    1515
  • to-imperative/trunk/runtime/rf_term.hh

    r723 r781  
    125125  /// Create expression with specified length
    126126  static inline Expr create_expr (size_t _len, int _align = 0) ;
     127  ///
     128  /// Create flat expression with specified length
     129  static inline Expr create_flat_expr (size_t _len, int _align = 0) ;
    127130private:
    128131  ///
  • to-imperative/trunk/runtime/rf_term.ih

    r723 r781  
    8787}
    8888
     89inline Expr Term::create_flat_expr (size_t _len, int _align /* = 0 */)
     90{
     91  Expr e(_len, _align);
     92  e.flags |= FLAT_BIT;
     93  return e;
     94}
     95
    8996inline bool Term::is_ref () const
    9097{
Note: See TracChangeset for help on using the changeset viewer.