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

Function module_help_main

Singular/iplib.cc:1356–1370  ·  view source on GitHub ↗

-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/

Source from the content-addressed store, hash-verified

1354}
1355/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
1356void module_help_main(const char *newlib,const char *help)
1357{
1358 char *plib = iiConvName(newlib);
1359 idhdl pl = basePack->idroot->get(plib,0);
1360 if ((pl==NULL)||(IDTYP(pl)!=PACKAGE_CMD))
1361 Werror(">>%s<< is not a package (trying to add package help)",plib);
1362 else
1363 {
1364 package s=currPack;
1365 currPack=IDPACKAGE(pl);
1366 idhdl h=enterid("info",0,STRING_CMD,&IDROOT,FALSE);
1367 IDSTRING(h)=omStrDup(help);
1368 currPack=s;
1369 }
1370}
1371void module_help_proc(const char *newlib,const char *p, const char *help)
1372{
1373 char *plib = iiConvName(newlib);

Callers 2

SI_MOD_INIT(Order)Function · 0.85
mod_initFunction · 0.85

Calls 4

iiConvNameFunction · 0.85
WerrorFunction · 0.85
enteridFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected