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

Function newstruct_Assign_same

Singular/newstruct.cc:237–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237static BOOLEAN newstruct_Assign_same(leftv l, leftv r)
238{
239 assume(l->Typ() == r->Typ());
240 if (l->Data()!=NULL)
241 {
242 lists n1=(lists)l->Data();
243 lClean_newstruct(n1);
244 }
245 lists n2=(lists)r->Data();
246 n2=lCopy_newstruct(n2);
247 r->CleanUp();
248 if (l->rtyp==IDHDL)
249 {
250 IDDATA((idhdl)l->data)=(char *)n2;
251 }
252 else
253 {
254 l->data=(void *)n2;
255 }
256 return FALSE;
257}
258
259BOOLEAN newstruct_Op1(int op, leftv res, leftv arg)
260{

Callers 1

newstruct_AssignFunction · 0.85

Calls 5

lClean_newstructFunction · 0.85
lCopy_newstructFunction · 0.85
CleanUpMethod · 0.80
TypMethod · 0.45
DataMethod · 0.45

Tested by

no test coverage detected