comparison cpp/plml.cpp @ 37:89688ebc447f tip

Deprecating this repository.
author samer
date Mon, 05 Jan 2015 17:42:03 +0000
parents 4269030c3f55
children
comparison
equal deleted inserted replaced
36:a1094b51a6c4 37:89688ebc447f
258 foreign_t mlMxCopyNoGC(term_t src, term_t dst); 258 foreign_t mlMxCopyNoGC(term_t src, term_t dst);
259 foreign_t mlMxNewRefGC(term_t src, term_t dst); 259 foreign_t mlMxNewRefGC(term_t src, term_t dst);
260 } 260 }
261 261
262 install_t install() { 262 install_t install() {
263 PL_register_foreign("mlOPEN", 2, (void *)mlOpen, 0); 263 PL_register_foreign("mlOPEN", 2, (void (*)())mlOpen, 0);
264 PL_register_foreign("mlCLOSE", 1, (void *)mlClose, 0); 264 PL_register_foreign("mlCLOSE", 1, (void (*)())mlClose, 0);
265 PL_register_foreign("mlEXEC", 2, (void *)mlExec, 0); 265 PL_register_foreign("mlEXEC", 2, (void (*)())mlExec, 0);
266 PL_register_foreign("mlWSNAME", 3, (void *)mlWSName, 0); 266 PL_register_foreign("mlWSNAME", 3, (void (*)())mlWSName, 0);
267 PL_register_foreign("mlWSALLOC", 2, (void *)mlWSAlloc, 0); 267 PL_register_foreign("mlWSALLOC", 2, (void (*)())mlWSAlloc, 0);
268 PL_register_foreign("mlWSGET", 2, (void *)mlWSGet,0); 268 PL_register_foreign("mlWSGET", 2, (void (*)())mlWSGet,0);
269 PL_register_foreign("mlWSPUT", 2, (void *)mlWSPut, 0); 269 PL_register_foreign("mlWSPUT", 2, (void (*)())mlWSPut, 0);
270 PL_register_foreign("mlMX2ATOM", 2, (void *)mlMx2Atom, 0); 270 PL_register_foreign("mlMX2ATOM", 2, (void (*)())mlMx2Atom, 0);
271 PL_register_foreign("mlMX2FLOAT", 2, (void *)mlMx2Float, 0); 271 PL_register_foreign("mlMX2FLOAT", 2, (void (*)())mlMx2Float, 0);
272 PL_register_foreign("mlMX2LOGICAL", 2, (void *)mlMx2Logical, 0); 272 PL_register_foreign("mlMX2LOGICAL", 2, (void (*)())mlMx2Logical, 0);
273 PL_register_foreign("mlMX2STRING", 2, (void *)mlMx2String, 0); 273 PL_register_foreign("mlMX2STRING", 2, (void (*)())mlMx2String, 0);
274 PL_register_foreign("mlMXINFO", 3, (void *)mlMxInfo, 0); 274 PL_register_foreign("mlMXINFO", 3, (void (*)())mlMxInfo, 0);
275 PL_register_foreign("mlSUB2IND", 3, (void *)mlMxSub2Ind, 0); 275 PL_register_foreign("mlSUB2IND", 3, (void (*)())mlMxSub2Ind, 0);
276 PL_register_foreign("mlGETFLOAT", 3, (void *)mlMxGetFloat, 0); 276 PL_register_foreign("mlGETFLOAT", 3, (void (*)())mlMxGetFloat, 0);
277 PL_register_foreign("mlGETLOGICAL", 3, (void *)mlMxGetLogical, 0); 277 PL_register_foreign("mlGETLOGICAL", 3, (void (*)())mlMxGetLogical, 0);
278 PL_register_foreign("mlGETCELL", 3, (void *)mlMxGetCell, 0); 278 PL_register_foreign("mlGETCELL", 3, (void (*)())mlMxGetCell, 0);
279 PL_register_foreign("mlGETFIELD", 4, (void *)mlMxGetField, 0); 279 PL_register_foreign("mlGETFIELD", 4, (void (*)())mlMxGetField, 0);
280 PL_register_foreign("mlGETREALS", 2, (void *)mlMxGetReals, 0); 280 PL_register_foreign("mlGETREALS", 2, (void (*)())mlMxGetReals, 0);
281 PL_register_foreign("mlCREATENUMERIC", 2, (void *)mlMxCreateNumeric, 0); 281 PL_register_foreign("mlCREATENUMERIC", 2, (void (*)())mlMxCreateNumeric, 0);
282 PL_register_foreign("mlCREATECELL", 2, (void *)mlMxCreateCell, 0); 282 PL_register_foreign("mlCREATECELL", 2, (void (*)())mlMxCreateCell, 0);
283 PL_register_foreign("mlCREATESTRING", 2, (void *)mlMxCreateString, 0); 283 PL_register_foreign("mlCREATESTRING", 2, (void (*)())mlMxCreateString, 0);
284 PL_register_foreign("mlPUTFLOAT", 3, (void *)mlMxPutFloat, 0); 284 PL_register_foreign("mlPUTFLOAT", 3, (void (*)())mlMxPutFloat, 0);
285 PL_register_foreign("mlPUTFLOATS", 3, (void *)mlMxPutFloats, 0); 285 PL_register_foreign("mlPUTFLOATS", 3, (void (*)())mlMxPutFloats, 0);
286 PL_register_foreign("mlPUTCELL", 3, (void *)mlMxPutCell, 0); 286 PL_register_foreign("mlPUTCELL", 3, (void (*)())mlMxPutCell, 0);
287 PL_register_foreign("mlCOPYNOGC", 2, (void *)mlMxCopyNoGC, 0); 287 PL_register_foreign("mlCOPYNOGC", 2, (void (*)())mlMxCopyNoGC, 0);
288 PL_register_foreign("mlNEWREFGC", 2, (void *)mlMxNewRefGC, 0); 288 PL_register_foreign("mlNEWREFGC", 2, (void (*)())mlMxNewRefGC, 0);
289 289
290 mx_blob.magic = PL_BLOB_MAGIC; 290 mx_blob.magic = PL_BLOB_MAGIC;
291 mx_blob.flags = PL_BLOB_UNIQUE; 291 mx_blob.flags = PL_BLOB_UNIQUE;
292 mx_blob.name = (char *)"mx"; 292 mx_blob.name = (char *)"mx";
293 mx_blob.acquire = 0; 293 mx_blob.acquire = 0;