Home | History | Annotate | Download | only in json-c
      1 /**
      2  * @file
      3  * @deprecated Use json_util.h instead.
      4  *
      5  * $Id: bits.h,v 1.10 2006/01/30 23:07:57 mclark Exp $
      6  *
      7  * Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd.
      8  * Michael Clark <michael (at) metaparadigm.com>
      9  *
     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.
     12  *
     13  */
     14 
     15 #ifndef _bits_h_
     16 #define _bits_h_
     17 
     18 /**
     19  * @deprecated
     20  */
     21 #define hexdigit(x) (((x) <= '9') ? (x) - '0' : ((x) & 7) + 9)
     22 /**
     23  * @deprecated
     24  */
     25 #define error_ptr(error) ((void*)error)
     26 /**
     27  * @deprecated
     28  */
     29 #define error_description(error)  (json_tokener_get_error(error))
     30 /**
     31  * @deprecated
     32  */
     33 #define is_error(ptr) (ptr == NULL)
     34 
     35 #endif
     36