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

Function killlocals_list

Singular/ipshell.cc:366–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364 }
365}
366BOOLEAN killlocals_list(int v, lists L)
367{
368 if (L==NULL) return FALSE;
369 BOOLEAN changed=FALSE;
370 int n=L->nr;
371 for(;n>=0;n--)
372 {
373 leftv h=&(L->m[n]);
374 void *d=h->data;
375 if ((h->rtyp==RING_CMD)
376 && (((ring)d)->idroot!=NULL))
377 {
378 if (d!=currRing) {changed=TRUE;rChangeCurrRing((ring)d);}
379 killlocals0(v,&(((ring)h->data)->idroot),(ring)h->data);
380 }
381 else if (h->rtyp==LIST_CMD)
382 changed|=killlocals_list(v,(lists)d);
383 }
384 return changed;
385}
386void killlocals(int v)
387{
388 BOOLEAN changed=FALSE;

Callers 1

killlocalsFunction · 0.85

Calls 2

rChangeCurrRingFunction · 0.85
killlocals0Function · 0.85

Tested by

no test coverage detected