Changeset 9373f0 in git


Ignore:
Timestamp:
Sep 2, 2012, 1:25:32 AM (10 years ago)
Author:
Alexander Dreyer <alexander.dreyer@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'ad2543eab51733612ba7d118afc77edca719600e')
Children:
d919cdb0ce12fcfcaaeebf0f6f31de8ca803c3ba
Parents:
2cdc84e758384927d435934f4ed945fbbdf5cedf
git-author:
Alexander Dreyer <alexander.dreyer@itwm.fraunhofer.de>2012-09-02 01:25:32+02:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-09-05 15:52:17+02:00
Message:
Fix using 'put' instead of get
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/countedref.cc

    r2cdc84 r9373f0  
    286286  }
    287287
    288   leftv access() { return m_data; }
    289 
    290 
    291288  /// Check a given context for our identifier
    292289  BOOLEAN brokenid(idhdl context) const {
     
    295292      ((context != (idhdl) m_data->data) && brokenid(IDNEXT(context)));
    296293  }
    297   BOOLEAN get(leftv result) {
     294
     295  /// Put a shallow copy to given @c leftv
     296  BOOLEAN put(leftv result) {
    298297    leftv next = result->next;
    299298    result->next = NULL;
     
    305304  }
    306305
     306  /// Get additional data (e.g. subexpression data) from likewise instances
    307307  BOOLEAN retrieve(leftv res) {
    308308    if (res->data == m_data->data)  {
     
    386386
    387387  /// Write (shallow) copy to given handle
    388   BOOLEAN get(leftv res) { return broken() || m_data.get(res);  }
     388  BOOLEAN put(leftv res) { return broken() || m_data.put(res);  }
    389389
    390390  /// Extract (shallow) copy of stored data
     
    422422      return FALSE;
    423423    }
    424     return get(result) || iiAssign(result, arg) || rering();
     424    return put(result) || iiAssign(result, arg) || rering();
    425425  }
    426426  /// Recover additional information (e.g. subexpression) from likewise object
     
    535535  /// Replaces argument by a shallow copy of the references data
    536536  BOOLEAN dereference(leftv arg) {
    537     //    assume(is_ref(arg));
    538537    m_data.reclaim();
    539     BOOLEAN b= m_data->get(arg) || ((arg->next != NULL) && resolve(arg->next));
     538    BOOLEAN b= m_data->put(arg) || ((arg->next != NULL) && resolve(arg->next));
    540539    m_data.release();
    541540    return b;
Note: See TracChangeset for help on using the changeset viewer.