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 #include "test/ptr_helpers.h"
9 * Cast <b> (inptr_t value) to a void pointer.
12 cast_intptr_to_voidstar(intptr_t x
)
20 * Cast x (void pointer) to inptr_t value.
23 cast_voidstar_to_intptr(void *x
)
25 intptr_t r
= (intptr_t)x
;
31 * Cast x (uinptr_t value) to void pointer.
34 cast_uintptr_to_voidstar(uintptr_t x
)
42 * Cast x (void pointer) to uinptr_t value.
45 cast_voidstar_to_uintptr(void *x
)
47 uintptr_t r
= (uintptr_t)x
;