tor/src/test/ptr_helpers.h

24 lines
503 B
C
Raw Normal View History

/* 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 */
2019-03-26 08:49:32 +01:00
#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);
2019-03-26 08:49:32 +01:00
2019-06-05 15:33:35 +02:00
#endif /* !defined(TOR_PTR_HELPERS_H) */