Changeset 3aa7f9 in git for Singular/countedref.cc


Ignore:
Timestamp:
Sep 6, 2012, 2:45:44 PM (12 years ago)
Author:
Alexander Dreyer <alexander.dreyer@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
6dffa9e5b66ac5a81df2b68ff1c38dafc918b1f9
Parents:
33936298b27e507c591a13f92cf3fd26d58c02a0
git-author:
Alexander Dreyer <alexander.dreyer@itwm.fraunhofer.de>2012-09-06 14:45:44+02:00
git-committer:
Alexander Dreyer <alexander.dreyer@itwm.fraunhofer.de>2012-09-06 14:57:23+02:00
Message:
Allow for explicitly derefercing of lists
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/countedref.cc

    r339362 r3aa7f9  
    549549
    550550  CountedRefShared ref = CountedRefShared::cast(head);
     551
     552  if ((op == LINK_CMD) ) {
     553    if (ref.dereference(head)) return TRUE;
     554    res->Copy(head);
     555    return (res->Typ() == NONE);
     556  }
     557
    551558  CountedRefShared wrap = ref.wrapid();
    552559  int typ = head->Typ();
    553   return wrap.dereference(head) ||
    554     iiExprArith1(res, head, op == LINK_CMD? head->Typ(): op) ||
     560  return wrap.dereference(head) || iiExprArith1(res, head, op) ||
    555561    wrap.retrieve(res, typ);
    556562}
Note: See TracChangeset for help on using the changeset viewer.