Install json_object_private.h file
[platform/upstream/json-c.git] / bits.h
1 /**
2  * @file
3  * @brief Do not use, only contains deprecated defines.
4  * @deprecated Use json_util.h instead.
5  *
6  * $Id: bits.h,v 1.10 2006/01/30 23:07:57 mclark Exp $
7  *
8  * Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd.
9  * Michael Clark <michael@metaparadigm.com>
10  *
11  * This library is free software; you can redistribute it and/or modify
12  * it under the terms of the MIT license. See COPYING for details.
13  *
14  */
15
16 #ifndef _bits_h_
17 #define _bits_h_
18
19 /**
20  * @deprecated
21  */
22 #define hexdigit(x) (((x) <= '9') ? (x) - '0' : ((x) & 7) + 9)
23 /**
24  * @deprecated
25  */
26 #define error_ptr(error) ((void*)error)
27 /**
28  * @deprecated
29  */
30 #define error_description(error)  (json_tokener_get_error(error))
31 /**
32  * @deprecated
33  */
34 #define is_error(ptr) (ptr == NULL)
35
36 #endif