search for: my_allocvector

Displaying 1 result from an estimated 1 matches for "my_allocvector".

2004 Apr 13
1
shared mem advice
...d be to modify add a modified version of the allocVector(SEXPTYPE type, int length) function specifically shared_mem_id = shmget(shared_mem_key, SHM_SIZE, IPC_CREAT); shared = (SEXP) shmat(shared_mem_id, (void *)0, 0); my_allocVector(SEXPTYPE type, int length, SEXP shared) { SEXP s=shared; .... And erase this if: ################################################# if(size >= (LONG_MAX / sizeof(VECREC))-sizeof(SEXPREC_ALIGN) || (s = malloc(sizeof(SEXPREC_ALIGN) + size * si...