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

Function lInsert

Singular/lists.cc:120–130  ·  view source on GitHub ↗

2 * insert v into list u, at the beginning */

Source from the content-addressed store, hash-verified

118* insert v into list u, at the beginning
119*/
120BOOLEAN lInsert(leftv res, leftv u, leftv v)
121{
122 lists ul=(lists)u->CopyD();
123 res->data=(char *)lInsert0(ul,v,0);
124 if (res->data==NULL)
125 {
126 Werror("cannot insert type `%s`",Tok2Cmdname(v->Typ()));
127 return TRUE;
128 }
129 return FALSE;
130}
131
132/*2
133* insert v into list u at pos w

Callers

nothing calls this directly

Calls 5

lInsert0Function · 0.85
WerrorFunction · 0.85
Tok2CmdnameFunction · 0.70
CopyDMethod · 0.45
TypMethod · 0.45

Tested by

no test coverage detected