Eric Haszlakiewicz | d4e81f9 | 2014-05-03 22:29:10 -0400 | [diff] [blame] | 1 | /** |
| 2 | * @file |
| 3 | * @deprecated Use json_util.h instead. |
| 4 | * |
Michael Clark | 837240f | 2007-03-13 08:26:25 +0000 | [diff] [blame] | 5 | * $Id: bits.h,v 1.10 2006/01/30 23:07:57 mclark Exp $ |
Michael Clark | f0d0888 | 2007-03-13 08:26:18 +0000 | [diff] [blame] | 6 | * |
Michael Clark | f6a6e48 | 2007-03-13 08:26:23 +0000 | [diff] [blame] | 7 | * Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd. |
Michael Clark | f0d0888 | 2007-03-13 08:26:18 +0000 | [diff] [blame] | 8 | * Michael Clark <michael@metaparadigm.com> |
| 9 | * |
Michael Clark | f6a6e48 | 2007-03-13 08:26:23 +0000 | [diff] [blame] | 10 | * 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 Clark | f0d0888 | 2007-03-13 08:26:18 +0000 | [diff] [blame] | 12 | * |
| 13 | */ |
| 14 | |
| 15 | #ifndef _bits_h_ |
| 16 | #define _bits_h_ |
| 17 | |
Eric Haszlakiewicz | d4e81f9 | 2014-05-03 22:29:10 -0400 | [diff] [blame] | 18 | /** |
| 19 | * @deprecated |
| 20 | */ |
Michael Clark | f0d0888 | 2007-03-13 08:26:18 +0000 | [diff] [blame] | 21 | #define hexdigit(x) (((x) <= '9') ? (x) - '0' : ((x) & 7) + 9) |
Eric Haszlakiewicz | d4e81f9 | 2014-05-03 22:29:10 -0400 | [diff] [blame] | 22 | /** |
| 23 | * @deprecated |
| 24 | */ |
Michael Clark | f0d0888 | 2007-03-13 08:26:18 +0000 | [diff] [blame] | 25 | #define error_ptr(error) ((void*)error) |
Eric Haszlakiewicz | d4e81f9 | 2014-05-03 22:29:10 -0400 | [diff] [blame] | 26 | /** |
| 27 | * @deprecated |
| 28 | */ |
Eric Haszlakiewicz | 1da0599 | 2014-05-03 22:26:26 -0400 | [diff] [blame] | 29 | #define error_description(error) (json_tokener_get_error(error)) |
Eric Haszlakiewicz | d4e81f9 | 2014-05-03 22:29:10 -0400 | [diff] [blame] | 30 | /** |
| 31 | * @deprecated |
| 32 | */ |
Jehiah Czebotar | a503ee8 | 2010-12-08 03:52:07 +0000 | [diff] [blame] | 33 | #define is_error(ptr) (ptr == NULL) |
Michael Clark | f0d0888 | 2007-03-13 08:26:18 +0000 | [diff] [blame] | 34 | |
| 35 | #endif |