extern c in alloc and module