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

Function decode_shared

Singular/dyn_modules/systhreads/shared.cc:1276–1283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1274}
1275
1276leftv decode_shared(LinTree::LinTree &lintree) {
1277 int type = lintree.get_prev<int>();
1278 SharedObject *obj = lintree.get<SharedObject *>();
1279 leftv result = (leftv) omAlloc0Bin(sleftv_bin);
1280 result->rtyp = type;
1281 result->data = (void *)new_shared(obj);
1282 return result;
1283}
1284
1285void ref_shared(LinTree::LinTree &lintree, int by) {
1286 SharedObject *obj = lintree.get<SharedObject *>();

Callers

nothing calls this directly

Calls 2

omAlloc0BinFunction · 0.85
new_sharedFunction · 0.85

Tested by

no test coverage detected