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

Function iiParameter

Singular/ipshell.cc:1375–1409  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1373 return FALSE;
1374}
1375BOOLEAN iiParameter(leftv p)
1376{
1377 if (iiCurrArgs==NULL)
1378 {
1379 if (strcmp(p->name,"#")==0)
1380 return iiDefaultParameter(p);
1381 Werror("not enough arguments for proc %s",VoiceName());
1382 p->CleanUp();
1383 return TRUE;
1384 }
1385 leftv h=iiCurrArgs;
1386 leftv rest=h->next; /*iiCurrArgs is not NULL here*/
1387 BOOLEAN is_default_list=FALSE;
1388 if (strcmp(p->name,"#")==0)
1389 {
1390 is_default_list=TRUE;
1391 rest=NULL;
1392 }
1393 else
1394 {
1395 h->next=NULL;
1396 }
1397 BOOLEAN res=iiAssign(p,h);
1398 if (is_default_list)
1399 {
1400 iiCurrArgs=NULL;
1401 }
1402 else
1403 {
1404 iiCurrArgs=rest;
1405 }
1406 h->CleanUp();
1407 omFreeBin((ADDRESS)h, sleftv_bin);
1408 return res;
1409}
1410
1411static BOOLEAN iiInternalExport (leftv v, int toLev)
1412{

Callers 1

grammar.ccFile · 0.85

Calls 5

iiDefaultParameterFunction · 0.85
WerrorFunction · 0.85
VoiceNameFunction · 0.85
omFreeBinFunction · 0.85
CleanUpMethod · 0.80

Tested by

no test coverage detected