Changeset 6c22988 in git for Singular/attrib.cc


Ignore:
Timestamp:
Mar 7, 2011, 6:09:06 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
e6d9a323c902660e10dd19e2d01e633460b3a37e
Parents:
052f0bdbb64b60e46cee19530fc0f76d8e9042da
Message:
fix tr. 318

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

Legend:

Unmodified
Added
Removed
  • Singular/attrib.cc

    r052f0b r6c22988  
    198198        idhdl h=(idhdl)root->data;
    199199        h->attribute=h->attribute->set(name,data,typ);
    200         root->attribute=h->attribute;
     200        //??// root->attribute=h->attribute;
    201201      }
    202202      else
     
    258258  leftv v=a;
    259259  int t;
     260  attr at;
    260261  if (a->e!=NULL)
    261262  {
     
    263264    if (v==NULL) return TRUE;
    264265  }
    265   attr at=v->attribute;
     266  at=v->attribute;
     267  if ((a->rtyp==IDHDL)&&(a->e==NULL))
     268  {
     269    at=IDATTR((idhdl)v->data);
     270  }
    266271  BOOLEAN haveNoAttribute=TRUE;
    267272  if (hasFlag(v,FLAG_STD))
     
    325330  else
    326331  {
    327     attr at=v->attribute->get(name);
     332    attr at;
     333    if (v->rtyp==IDHDL)
     334      at=IDATTR((idhdl)v->data);
     335    else
     336      at=v->attribute->get(name);
    328337    if (at!=NULL)
    329338    {
     
    350359    h=NULL;
    351360  }
     361  if (a->rtyp!=IDHDL) h=NULL;
     362
    352363  attr *at=&(v->attribute);
     364  if (h!=NULL) at=&(IDATTR(h));
    353365  char *name=(char *)b->Data();
    354366  if (strcmp(name,"isSB")==0)
     
    420432  {
    421433    int typ=c->Typ();
    422     atSet(v,omStrDup(name),c->CopyD(typ),typ/*c->T(yp()*/);
    423     if (h!=NULL) IDATTR(h)=v->attribute;
     434    if (h!=NULL) atSet(h,omStrDup(name),c->CopyD(typ),typ/*c->T(yp()*/);
     435    else         atSet(v,omStrDup(name),c->CopyD(typ),typ/*c->T(yp()*/);
    424436  }
    425437  return FALSE;
Note: See TracChangeset for help on using the changeset viewer.