Changeset 13e2da in git


Ignore:
Timestamp:
May 23, 1997, 5:00:03 PM (26 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
f4e7560a91d98a1109351a6fd0f38752bab73b09
Parents:
98d771101d480909901201f82772865c6c6b5046
Message:
* hannes: list elements coming from expr-list could not have attributes
  (ipassign.cc subexpr.cc)


git-svn-id: file:///usr/local/Singular/svn/trunk@326 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
Singular
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/ipassign.cc

    r98d771 r13e2da  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: ipassign.cc,v 1.10 1997-05-02 15:10:14 Singular Exp $ */
     4/* $Id: ipassign.cc,v 1.11 1997-05-23 15:00:01 Singular Exp $ */
    55
    66/*
     
    740740      return TRUE;
    741741    }
    742     if ((rt==RING_CMD)||(rt==QRING_CMD))
    743     {
    744       L->m[i].rtyp=rt;
    745       L->m[i].data=h->Data();
    746       ((ring)L->m[i].data)->ref++;
    747     }
    748     else
     742    //if ((rt==RING_CMD)||(rt==QRING_CMD))
     743    //{
     744    //  L->m[i].rtyp=rt;
     745    //  L->m[i].data=h->Data();
     746    //  ((ring)L->m[i].data)->ref++;
     747    //}
     748    //else
    749749      L->m[i].Copy(h);
    750750  }
  • Singular/subexpr.cc

    r98d771 r13e2da  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: subexpr.cc,v 1.17 1997-05-18 11:13:15 Singular Exp $ */
     4/* $Id: subexpr.cc,v 1.18 1997-05-23 15:00:03 Singular Exp $ */
    55
    66/*
     
    488488  }
    489489  flag=source->flag;
    490   if (source->attribute!=NULL)
    491     attribute=source->attribute->Copy();
     490  if ((source->attribute!=NULL)||(source->e!=NULL))
     491    attribute=source->CopyA();
    492492  if (source->next!=NULL)
    493493  {
     
    555555    case LINK_CMD:
    556556      return (void *)slCopy((si_link) d);
     557    case RING_CMD:
     558    case QRING_CMD:
     559      {
     560        ring r=(ring)d;
     561        r->ref++;
     562        return d;
     563      }
    557564    case 0:
    558565    case DEF_CMD:
    559566      break;
    560567#ifdef TEST
    561     //case RING_CMD:
    562     //case QRING_CMD:
    563568    //case COMMAND:
    564569    default:
     
    583588attr sleftv::CopyA()
    584589{
    585   if ((rtyp!=IDHDL)&&(e==NULL))
    586   {
    587     attr x=attribute;
    588     attribute=NULL;
    589     return x;
    590   }
    591   if (attribute==NULL)
    592     return NULL;
    593   return attribute->Copy();
     590  attr *a=Attribute();
     591  if (a!=NULL)
     592    return (*a)->Copy();
     593  return NULL; 
    594594}
    595595
     
    944944{
    945945  if (e==NULL) return &attribute;
    946   if (Typ()==LIST_CMD)
     946  if ((rtyp==LIST_CMD)
     947  ||((rtyp==IDHDL)&&(IDTYP((idhdl)data)==LIST_CMD)))
    947948  {
    948949    leftv v=LData();
Note: See TracChangeset for help on using the changeset viewer.