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

Function pSingular_register_init

factory/threadsupport.cc:24–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24void pSingular_register_init(void (*f)()) {
25 InitList *next = (InitList *) malloc(sizeof(InitList));
26 next->next = inits;
27 next->func = f;
28 inits = next;
29 (*f)();
30}
31
32void pSingular_init_var(void *s, void *t, long n) {
33 memcpy(s, t, n);

Callers

nothing calls this directly

Calls 1

mallocFunction · 0.85

Tested by

no test coverage detected