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

Function killid

Singular/ipid.cc:389–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

387 return NULL;
388}
389void killid(const char * id, idhdl * ih)
390{
391 if (id!=NULL)
392 {
393 idhdl h = (*ih)->get(id,myynest);
394
395 // id not found in global list, is it defined in current ring ?
396 if (h==NULL)
397 {
398 if ((currRing!=NULL) && (*ih != (currRing->idroot)))
399 {
400 h = currRing->idroot->get(id,myynest);
401 if (h!=NULL)
402 {
403 killhdl2(h,&(currRing->idroot),currRing);
404 return;
405 }
406 }
407 Werror("`%s` is not defined",id);
408 return;
409 }
410 killhdl2(h,ih,currRing);
411 }
412 else
413 WerrorS("kill what ?");
414}
415
416void killhdl(idhdl h, package proot)
417{

Callers 3

yyerrorFunction · 0.85
sync_contextsFunction · 0.85
test_enteridMethod · 0.85

Calls 4

killhdl2Function · 0.85
WerrorFunction · 0.85
WerrorSFunction · 0.85
getMethod · 0.45

Tested by 1

test_enteridMethod · 0.68