| 507 | } |
| 508 | |
| 509 | tmrec_p tmrec_new(char alloc) |
| 510 | { |
| 511 | tmrec_p _trp; |
| 512 | if (alloc & PKG_ALLOC) |
| 513 | _trp = (tmrec_p)pkg_malloc(sizeof(tmrec_t)); |
| 514 | else |
| 515 | _trp = (tmrec_p)shm_malloc(sizeof(tmrec_t)); |
| 516 | if(!_trp) |
| 517 | return NULL; |
| 518 | |
| 519 | tmrec_init(_trp); |
| 520 | _trp->flags = alloc; |
| 521 | return _trp; |
| 522 | } |
| 523 | |
| 524 | void tmrec_free(tmrec *tr) |
| 525 | { |
no test coverage detected