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

Function newstructShow

Singular/newstruct.cc:837–855  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

835}
836
837void newstructShow(newstruct_desc d)
838{
839 newstruct_member elem;
840 Print("id: %d\n",d->id);
841 elem=d->member;
842 while (elem!=NULL)
843 {
844 Print(">>%s<< at pos %d, type %d (%s)\n",elem->name,elem->pos,elem->typ,Tok2Cmdname(elem->typ));
845 if (NeedShadowRing(elem->typ))
846 Print(">>r_%s<< at pos %d, shadow ring\n",elem->name,elem->pos-1);
847 elem=elem->next;
848 }
849 newstruct_proc p=d->procs;
850 while (p!=NULL)
851 {
852 Print("op:%d(%s) with %d args -> %s\n",p->t,iiTwoOps(p->t),p->args,p->p->procname);
853 p=p->next;
854 }
855}
856
857BOOLEAN newstruct_set_proc(const char *bbname,const char *func, int args,procinfov pr)
858{

Callers 1

jjSYSTEMFunction · 0.85

Calls 4

NeedShadowRingFunction · 0.85
Tok2CmdnameFunction · 0.70
iiTwoOpsFunction · 0.70
PrintFunction · 0.50

Tested by

no test coverage detected