diff options
author | Sverker Eriksson <[email protected]> | 2014-12-09 11:53:16 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2015-11-26 19:48:09 +0100 |
commit | 41e0c6e584d392ed0d5fbbc51a84418c4f7abcf5 (patch) | |
tree | e4bd842e5cc4a070b58fa88875be6a87dcdd4ee7 /erts/emulator/test/alloc_SUITE_data/allocator_test.h | |
parent | ef45d2c9f874354b17c2aca96de7b3306a9eb943 (diff) | |
download | otp-41e0c6e584d392ed0d5fbbc51a84418c4f7abcf5.tar.gz otp-41e0c6e584d392ed0d5fbbc51a84418c4f7abcf5.tar.bz2 otp-41e0c6e584d392ed0d5fbbc51a84418c4f7abcf5.zip |
erts: Refactor alloc_SUITE to use NIFs instead of drivers
Diffstat (limited to 'erts/emulator/test/alloc_SUITE_data/allocator_test.h')
-rw-r--r-- | erts/emulator/test/alloc_SUITE_data/allocator_test.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/erts/emulator/test/alloc_SUITE_data/allocator_test.h b/erts/emulator/test/alloc_SUITE_data/allocator_test.h index bfd0bb3094..dd0227e725 100644 --- a/erts/emulator/test/alloc_SUITE_data/allocator_test.h +++ b/erts/emulator/test/alloc_SUITE_data/allocator_test.h @@ -20,9 +20,20 @@ #ifndef ALLOCATOR_TEST_H__ #define ALLOCATOR_TEST_H__ -typedef ErlDrvUInt Ulong; +#if SIZEOF_VOID_P == SIZEOF_INT +typedef unsigned int Ulong; +#elif SIZEOF_VOID_P == SIZEOF_LONG +typedef unsigned long Ulong; +#elif SIZEOF_VOID_P == SIZEOF_LONG_LONG +typedef unsigned long long Ulong; +#else +# error No pointer sized integer type found ??? +#endif -#ifndef __WIN32__ +#ifdef __WIN32__ +typedef Ulong erts_alc_test_Fn(Ulong, Ulong, Ulong, Ulong); +# define erts_alc_test ((erts_alc_test_Fn*)WinDynNifCallbacks.erts_alc_test) +#else Ulong erts_alc_test(Ulong, Ulong, Ulong, Ulong); #endif |