Merge branch 'maint-0.4.5' into release-0.4.5
[tor.git] / src / test / ptr_helpers.h
blob0999fdf5d25d7a97abaea3ba30d916e80969a73a
1 /* Copyright (c) 2001-2004, Roger Dingledine.
2 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
3 * Copyright (c) 2007-2020, The Tor Project, Inc. */
4 /* See LICENSE for licensing information */
6 #ifndef TOR_PTR_HELPERS_H
7 #define TOR_PTR_HELPERS_H
9 #include <stdint.h>
11 void *
12 cast_intptr_to_voidstar(intptr_t x);
14 intptr_t
15 cast_voidstar_to_intptr(void *x);
17 void *
18 cast_uintptr_to_voidstar(uintptr_t x);
20 uintptr_t
21 cast_voidstar_to_uintptr(void *x);
23 #endif /* !defined(TOR_PTR_HELPERS_H) */