Changeset 9373f0 in git
- Timestamp:
- Sep 2, 2012, 1:25:32 AM (10 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/countedref.cc
r2cdc84 r9373f0 286 286 } 287 287 288 leftv access() { return m_data; }289 290 291 288 /// Check a given context for our identifier 292 289 BOOLEAN brokenid(idhdl context) const { … … 295 292 ((context != (idhdl) m_data->data) && brokenid(IDNEXT(context))); 296 293 } 297 BOOLEAN get(leftv result) { 294 295 /// Put a shallow copy to given @c leftv 296 BOOLEAN put(leftv result) { 298 297 leftv next = result->next; 299 298 result->next = NULL; … … 305 304 } 306 305 306 /// Get additional data (e.g. subexpression data) from likewise instances 307 307 BOOLEAN retrieve(leftv res) { 308 308 if (res->data == m_data->data) { … … 386 386 387 387 /// 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); } 389 389 390 390 /// Extract (shallow) copy of stored data … … 422 422 return FALSE; 423 423 } 424 return get(result) || iiAssign(result, arg) || rering();424 return put(result) || iiAssign(result, arg) || rering(); 425 425 } 426 426 /// Recover additional information (e.g. subexpression) from likewise object … … 535 535 /// Replaces argument by a shallow copy of the references data 536 536 BOOLEAN dereference(leftv arg) { 537 // assume(is_ref(arg));538 537 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)); 540 539 m_data.release(); 541 540 return b;
Note: See TracChangeset
for help on using the changeset viewer.