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.

debug.h 1.2 kB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * $Id: debug.h,v 1.3 2005/06/14 22:41:51 mclark Exp $
  3. *
  4. * Copyright Metaparadigm Pte. Ltd. 2004.
  5. * Michael Clark <michael@metaparadigm.com>
  6. *
  7. * This library is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU Lesser General Public (LGPL)
  9. * License as published by the Free Software Foundation; either
  10. * version 2.1 of the License, or (at your option) any later version.
  11. *
  12. * This library is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * Lesser General Public License for more details: http://www.gnu.org/
  16. *
  17. */
  18. #ifndef _DEBUG_H_
  19. #define _DEBUG_H_
  20. #include "config.h"
  21. #if HAVE_STRERROR
  22. #define errstr strerror(errno)
  23. #else /* !HAVE_STRERROR */
  24. #define errstr
  25. #endif /* HAVE_STRERROR */
  26. extern void mc_set_debug(int debug);
  27. extern int mc_get_debug();
  28. extern void mc_set_syslog(int syslog);
  29. extern void mc_abort(const char *msg, ...);
  30. extern void mc_debug(const char *msg, ...);
  31. extern void mc_error(const char *msg, ...);
  32. extern void mc_info(const char *msg, ...);
  33. #endif

No Description

Contributors (1)