mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-13 14:43:46 +01:00
24 lines
503 B
C
24 lines
503 B
C
/* Copyright (c) 2001-2004, Roger Dingledine.
|
|
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
|
|
* Copyright (c) 2007-2019, The Tor Project, Inc. */
|
|
/* See LICENSE for licensing information */
|
|
|
|
#ifndef TOR_PTR_HELPERS_H
|
|
#define TOR_PTR_HELPERS_H
|
|
|
|
#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);
|
|
|
|
#endif /* !defined(TOR_PTR_HELPERS_H) */
|