Changeset 6c22988 in git for Singular/attrib.cc
- Timestamp:
- Mar 7, 2011, 6:09:06 PM (13 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- e6d9a323c902660e10dd19e2d01e633460b3a37e
- Parents:
- 052f0bdbb64b60e46cee19530fc0f76d8e9042da
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/attrib.cc
r052f0b r6c22988 198 198 idhdl h=(idhdl)root->data; 199 199 h->attribute=h->attribute->set(name,data,typ); 200 root->attribute=h->attribute;200 //??// root->attribute=h->attribute; 201 201 } 202 202 else … … 258 258 leftv v=a; 259 259 int t; 260 attr at; 260 261 if (a->e!=NULL) 261 262 { … … 263 264 if (v==NULL) return TRUE; 264 265 } 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 } 266 271 BOOLEAN haveNoAttribute=TRUE; 267 272 if (hasFlag(v,FLAG_STD)) … … 325 330 else 326 331 { 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); 328 337 if (at!=NULL) 329 338 { … … 350 359 h=NULL; 351 360 } 361 if (a->rtyp!=IDHDL) h=NULL; 362 352 363 attr *at=&(v->attribute); 364 if (h!=NULL) at=&(IDATTR(h)); 353 365 char *name=(char *)b->Data(); 354 366 if (strcmp(name,"isSB")==0) … … 420 432 { 421 433 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()*/); 424 436 } 425 437 return FALSE;
Note: See TracChangeset
for help on using the changeset viewer.