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

Function getBlackboxTypes

Singular/blackbox.cc:245–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245struct blackbox_list *getBlackboxTypes()
246{
247 int i = 0;
248 void **l = (void **)omalloc0(blackboxTableCnt * sizeof(void *));
249 struct blackbox_list *list_struct = (struct blackbox_list *) omAlloc0(sizeof(struct blackbox_list));
250 list_struct->count = blackboxTableCnt;
251 list_struct->list = l;
252
253 for (i = blackboxTableCnt-1; i >= 0 ;i--)
254 {
255 if (blackboxName[i]!=NULL) {
256 l[i] = (void *)omStrDup(blackboxName[i]);
257 //Print("type %d: %s\n",i,blackboxName[i]);
258 } else {
259 l[i] = NULL;
260 }
261 }
262 return list_struct;
263}

Callers 1

jjRESERVEDLIST0Function · 0.85

Calls 2

omalloc0Function · 0.85
omAlloc0Function · 0.85

Tested by

no test coverage detected