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 770 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * $Id: debug.h,v 1.4 2006/01/26 02:16:28 mclark Exp $
  3. *
  4. * Copyright (c) 2004, 2005 Metaparadigm Pte. Ltd.
  5. * Michael Clark <michael@metaparadigm.com>
  6. *
  7. * This library is free software; you can redistribute it and/or modify
  8. * it under the terms of the MIT license. See COPYING for details.
  9. *
  10. */
  11. #ifndef _DEBUG_H_
  12. #define _DEBUG_H_
  13. #include "config.h"
  14. #if HAVE_STRERROR
  15. #define errstr strerror(errno)
  16. #else /* !HAVE_STRERROR */
  17. #define errstr
  18. #endif /* HAVE_STRERROR */
  19. extern void mc_set_debug(int debug);
  20. extern int mc_get_debug();
  21. extern void mc_set_syslog(int syslog);
  22. extern void mc_abort(const char *msg, ...);
  23. extern void mc_debug(const char *msg, ...);
  24. extern void mc_error(const char *msg, ...);
  25. extern void mc_info(const char *msg, ...);
  26. #endif

No Description

Contributors (1)