ptr_helpers.h 503 B

1234567891011121314151617181920212223
  1. /* Copyright (c) 2001-2004, Roger Dingledine.
  2. * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
  3. * Copyright (c) 2007-2019, The Tor Project, Inc. */
  4. /* See LICENSE for licensing information */
  5. #ifndef TOR_PTR_HELPERS_H
  6. #define TOR_PTR_HELPERS_H
  7. #include <stdint.h>
  8. void *
  9. cast_intptr_to_voidstar(intptr_t x);
  10. intptr_t
  11. cast_voidstar_to_intptr(void *x);
  12. void *
  13. cast_uintptr_to_voidstar(uintptr_t x);
  14. uintptr_t
  15. cast_voidstar_to_uintptr(void *x);
  16. #endif /* !defined(TOR_PTR_HELPERS_H) */