Changeset 8c94ba in git


Ignore:
Timestamp:
Mar 4, 2011, 5:36:10 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
f879c970de289aab8f2db926f544e08fa94402ac
Parents:
2993b20aa873e3b3bca98f8c038825f3e2a88c38
Message:

git-svn-id: file:///usr/local/Singular/svn/trunk@13931 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/subexpr.cc

    r2993b2 r8c94ba  
    272272      store->rtyp=t/*Typ()*/;
    273273      store->data=CopyD();
    274       if(e!=NULL)
    275       {
    276         if(attribute!=NULL)
    277         {
    278           store->attribute=attribute->Copy();
    279         }
    280         store->flag=flag;
    281       }
    282       //else
    283       //{
    284       //}
     274      if(attribute!=NULL)
     275      {
     276        store->attribute=CopyA();
     277      }
     278      store->flag=flag;
    285279    }
    286280  }
     
    561555  {
    562556    data=s_internalCopy(rtyp,d);
    563     if(source->e==NULL)
    564     {
    565       if (source->attribute!=NULL)
    566         attribute=source->attribute->Copy();
    567       flag=source->flag;
    568     }
    569     //else
    570     //{
    571     //}
     557    if ((source->attribute!=NULL)||(source->e!=NULL))
     558      attribute=source->CopyA();
     559    flag=source->flag;
    572560    if (source->next!=NULL)
    573561    {
     
    607595//}
    608596
    609 //attr sleftv::CopyA()
    610 //{
    611 //  attr *a=Attribute();
    612 //  if ((a!=NULL) && (*a!=NULL))
    613 //    return (*a)->Copy();
    614 //  return NULL;
    615 //}
     597attr sleftv::CopyA()
     598{
     599  attr *a=Attribute();
     600  if ((a!=NULL) && (*a!=NULL))
     601    return (*a)->Copy();
     602  return NULL;
     603}
    616604
    617605char *  sleftv::String(void *d, BOOLEAN typed, int dim)
     
    11781166attr * sleftv::Attribute()
    11791167{
    1180   if (e==NULL)
    1181   {
    1182     if (rtyp==IDHDL) return(&(IDATTR((idhdl)data)));
    1183     return &attribute;
    1184   }
     1168  if (e==NULL) return &attribute;
    11851169  if ((rtyp==LIST_CMD)
    11861170  ||((rtyp==IDHDL)&&(IDTYP((idhdl)data)==LIST_CMD)))
Note: See TracChangeset for help on using the changeset viewer.