Go to the source code of this file.
◆ bigintm_setup()
Definition at line 271 of file bigintm.cc.
272{
273#ifndef HAVE_BIGINTM
274 Werror(
"bigintm_setup: Sorry BIGINTM was not compiled in!");
276#else
277
278 if( bigintm_type_id == -1 )
279 {
280 blackbox *
b=(blackbox*)
omAlloc0(
sizeof(blackbox));
281
282
283
284 b->blackbox_destroy=bigintm_destroy;
285 b->blackbox_String=bigintm_String;
286
287
288 b->blackbox_Copy=bigintm_Copy;
289 b->blackbox_Assign=bigintm_Assign;
290 b->blackbox_Op1=bigintm_Op1;
291 b->blackbox_Op2=bigintm_Op2;
292
293 b->blackbox_OpM=bigintm_OpM;
294
296
297 Print(
"bigintm_setup: created a blackbox type [%d] '%s'",bigintm_type_id,
getBlackboxName(bigintm_type_id));
299
301 }
302 else
303 {
304 Werror(
"bigintm_setup: Sorry should NOT be run twice!");
306 }
307
308#endif
309}
int setBlackboxStuff(blackbox *bb, const char *n)
define a new type
const char * getBlackboxName(const int t)
return the name to the type given by t (r/o)
void Werror(const char *fmt,...)