aboutsummaryrefslogtreecommitdiff
path: root/src/test/ptr_helpers.h
blob: 67776b10060fea16d09d60b0c6bcd20c50dfd0e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* 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