MCPcopy Create free account
hub / github.com/Singular/Singular / LData

Method LData

Singular/subexpr.cc:1519–1556  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1517}
1518
1519leftv sleftv::LData()
1520{
1521 if (e!=NULL)
1522 {
1523 lists l=NULL;
1524 blackbox *b=getBlackboxStuff(rtyp);
1525
1526 if ((rtyp==LIST_CMD)
1527 || ((b!=NULL)&&(BB_LIKE_LIST(b))))
1528 l=(lists)data;
1529 else if ((rtyp==IDHDL)&& (IDTYP((idhdl)data)==LIST_CMD))
1530 l=IDLIST((idhdl)data);
1531 else if ((rtyp==IDHDL)&& (IDTYP((idhdl)data)>MAX_TOK))
1532 {
1533 b=getBlackboxStuff(IDTYP((idhdl)data));
1534 if (BB_LIKE_LIST(b)) l=IDLIST((idhdl)data);
1535 }
1536 else if (rtyp==ALIAS_CMD)
1537 {
1538 idhdl h=(idhdl)data;
1539 l= (lists)(((idhdl)h->data.ustring)->data.ustring);
1540 }
1541 if (l!=NULL)
1542 {
1543 if ((0>=e->start)||(e->start>l->nr+1))
1544 return NULL;
1545 if (e->next!=NULL)
1546 {
1547 l->m[e->start-1].e=e->next;
1548 leftv r=l->m[e->start-1].LData();
1549 l->m[e->start-1].e=NULL;
1550 return r;
1551 }
1552 return &(l->m[e->start-1]);
1553 }
1554 }
1555 return this;
1556}
1557
1558#if 0
1559leftv sleftv::LHdl()

Callers 10

atATTRIB1Function · 0.80
atATTRIB2Function · 0.80
atATTRIB3Function · 0.80
jjHOMOG1Function · 0.80
assumeStdFlagFunction · 0.80
jiAssignAttrFunction · 0.80
jjA_L_LISTFunction · 0.80
ipassign.ccFile · 0.80
shared_assignFunction · 0.80
rlock_assignFunction · 0.80

Calls 1

getBlackboxStuffFunction · 0.85

Tested by

no test coverage detected