Merge branch 'maint-0.4.5' into maint-0.4.6
[tor.git] / src / test / ptr_helpers.h
bloba283c525eb0dadf1cba94d786b66b4c87876cfdc
1 /* Copyright (c) 2001-2004, Roger Dingledine.
2 * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
3 * Copyright (c) 2007-2021, 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) */