blob: d14a1db0d7dc4b8144e73febd432c361f58973e2 [file] [log] [blame]
Eric Haszlakiewiczd4e81f92014-05-03 22:29:10 -04001/**
2 * @file
3 * @deprecated Use json_util.h instead.
4 *
Michael Clark837240f2007-03-13 08:26:25 +00005 * $Id: bits.h,v 1.10 2006/01/30 23:07:57 mclark Exp $
Michael Clarkf0d08882007-03-13 08:26:18 +00006 *
Michael Clarkf6a6e482007-03-13 08:26:23 +00007 * Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd.
Michael Clarkf0d08882007-03-13 08:26:18 +00008 * Michael Clark <michael@metaparadigm.com>
9 *
Michael Clarkf6a6e482007-03-13 08:26:23 +000010 * This library is free software; you can redistribute it and/or modify
11 * it under the terms of the MIT license. See COPYING for details.
Michael Clarkf0d08882007-03-13 08:26:18 +000012 *
13 */
14
15#ifndef _bits_h_
16#define _bits_h_
17
Eric Haszlakiewiczd4e81f92014-05-03 22:29:10 -040018/**
19 * @deprecated
20 */
Michael Clarkf0d08882007-03-13 08:26:18 +000021#define hexdigit(x) (((x) <= '9') ? (x) - '0' : ((x) & 7) + 9)
Eric Haszlakiewiczd4e81f92014-05-03 22:29:10 -040022/**
23 * @deprecated
24 */
Michael Clarkf0d08882007-03-13 08:26:18 +000025#define error_ptr(error) ((void*)error)
Eric Haszlakiewiczd4e81f92014-05-03 22:29:10 -040026/**
27 * @deprecated
28 */
Eric Haszlakiewicz1da05992014-05-03 22:26:26 -040029#define error_description(error) (json_tokener_get_error(error))
Eric Haszlakiewiczd4e81f92014-05-03 22:29:10 -040030/**
31 * @deprecated
32 */
Jehiah Czebotara503ee82010-12-08 03:52:07 +000033#define is_error(ptr) (ptr == NULL)
Michael Clarkf0d08882007-03-13 08:26:18 +000034
35#endif