ptr_helpers.h (503B)
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 */ 5 6 #ifndef TOR_PTR_HELPERS_H 7 #define TOR_PTR_HELPERS_H 8 9 #include <stdint.h> 10 11 void * 12 cast_intptr_to_voidstar(intptr_t x); 13 14 intptr_t 15 cast_voidstar_to_intptr(void *x); 16 17 void * 18 cast_uintptr_to_voidstar(uintptr_t x); 19 20 uintptr_t 21 cast_voidstar_to_uintptr(void *x); 22 23 #endif /* !defined(TOR_PTR_HELPERS_H) */