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

Function jjSetRing

Singular/iparith.cc:3848–3867  ·  view source on GitHub ↗

dummy for python_module.so and similiar

Source from the content-addressed store, hash-verified

3846}
3847// dummy for python_module.so and similiar
3848static BOOLEAN jjSetRing(leftv, leftv u)
3849{
3850 if (u->rtyp==IDHDL) rSetHdl((idhdl)u->data);
3851 else
3852 {
3853 ring r=(ring)u->Data();
3854 idhdl h=rFindHdl(r,NULL);
3855 if (h==NULL)
3856 {
3857 char name_buffer[100];
3858 STATIC_VAR int ending=1000000;
3859 ending++;
3860 snprintf(name_buffer,100, "PYTHON_RING_VAR%d",ending);
3861 h=enterid(name_buffer,0,RING_CMD,&IDROOT);
3862 IDRING(h)=rIncRefCnt(r);
3863 }
3864 rSetHdl(h);
3865 }
3866 return FALSE;
3867}
3868static BOOLEAN jjPROC1(leftv res, leftv u)
3869{
3870 return jjPROC(res,u,NULL);

Callers

nothing calls this directly

Calls 5

rSetHdlFunction · 0.85
rFindHdlFunction · 0.85
enteridFunction · 0.85
rIncRefCntFunction · 0.85
DataMethod · 0.45

Tested by

no test coverage detected