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

Function flint_mod_init

Singular/misc_ip.cc:1284–1306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1282}
1283#endif
1284extern "C" int flint_mod_init(SModulFunctions* psModulFunctions)
1285{
1286 package save=currPack;
1287 currPack=basePack;
1288 n_FlintQ=nRegister(n_unknown,flintQ_InitChar);
1289 if (n_FlintQ!=n_unknown)
1290 {
1291 iiAddCproc("kernel","flintQp",FALSE,ii_FlintQ_init);
1292 nRegisterCfByName(flintQInitCfByName,n_FlintQ);
1293 }
1294#if __FLINT_RELEASE >= 20503
1295 iiAddCproc("kernel","flintQ",FALSE,ii_FlintQrat_init);
1296 nRegisterCfByName(flintQInitCfByName,n_FlintQ);
1297#endif
1298 n_FlintZn=nRegister(n_unknown,flintZn_InitChar);
1299 if (n_FlintZn!=n_unknown)
1300 {
1301 iiAddCproc("kernel","flintZn",FALSE,ii_FlintZn_init);
1302 nRegisterCfByName(flintZnInitCfByName,n_FlintZn);
1303 }
1304 currPack=save;
1305 return MAX_TOK;
1306}
1307#endif
1308
1309static BOOLEAN iiFloat(leftv res, leftv pnn)

Callers

nothing calls this directly

Calls 3

nRegisterFunction · 0.85
iiAddCprocFunction · 0.85
nRegisterCfByNameFunction · 0.85

Tested by

no test coverage detected