2019-03-20 18:54:11 +02:00
|
|
|
/* Copyright (c) 2001-2004, Roger Dingledine.
|
|
|
|
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
|
2020-01-08 18:39:17 -05:00
|
|
|
* Copyright (c) 2007-2020, The Tor Project, Inc. */
|
2019-03-20 18:54:11 +02:00
|
|
|
/* See LICENSE for licensing information */
|
|
|
|
|
2019-03-26 09:49:32 +02:00
|
|
|
#ifndef TOR_PTR_HELPERS_H
|
|
|
|
#define TOR_PTR_HELPERS_H
|
|
|
|
|
2019-03-20 18:54:11 +02:00
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
void *
|
|
|
|
cast_intptr_to_voidstar(intptr_t x);
|
|
|
|
|
|
|
|
intptr_t
|
|
|
|
cast_voidstar_to_intptr(void *x);
|
|
|
|
|
|
|
|
void *
|
|
|
|
cast_uintptr_to_voidstar(uintptr_t x);
|
|
|
|
|
|
|
|
uintptr_t
|
|
|
|
cast_voidstar_to_uintptr(void *x);
|
2019-03-26 09:49:32 +02:00
|
|
|
|
2019-06-05 09:33:35 -04:00
|
|
|
#endif /* !defined(TOR_PTR_HELPERS_H) */
|