You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

bits.h 699 B

1234567891011121314151617181920212223242526272829303132333435
  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@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. #ifndef _bits_h_
  15. #define _bits_h_
  16. /**
  17. * @deprecated
  18. */
  19. #define hexdigit(x) (((x) <= '9') ? (x) - '0' : ((x) & 7) + 9)
  20. /**
  21. * @deprecated
  22. */
  23. #define error_ptr(error) ((void*)error)
  24. /**
  25. * @deprecated
  26. */
  27. #define error_description(error) (json_tokener_get_error(error))
  28. /**
  29. * @deprecated
  30. */
  31. #define is_error(ptr) (ptr == NULL)
  32. #endif