mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-27 08:49:16 +08:00
93e9d92778
* Replace wholevar with more useful wholechunk optimization * Add optimization to read multiple values at one time * Replace NCDEFAULT_get/put_vars with native nczarr versions. * Clarify chunk projection computations * zdebdispatch.h * Add more chunking test cases and re-enable run_chunkcases * If !szip, then suppress deflate interference test * Make H5Znoop(1) filter produce more information * cleanup bzlib.c API
55 lines
1.5 KiB
C
55 lines
1.5 KiB
C
/*********************************************************************
|
|
* Copyright 2018, UCAR/Unidata
|
|
* See netcdf/COPYRIGHT file for copying and redistribution conditions.
|
|
* $Header$
|
|
*********************************************************************/
|
|
|
|
#ifndef NCLOG_H
|
|
#define NCLOG_H
|
|
|
|
#include <stdarg.h>
|
|
#include "ncexternl.h"
|
|
|
|
#define NCENVLOGGING "NCLOGGING"
|
|
#define NCENVTRACING "NCTRACING"
|
|
|
|
/* Suggested tag values */
|
|
#define NCLOGNOTE 0
|
|
#define NCLOGWARN 1
|
|
#define NCLOGERR 2
|
|
#define NCLOGDBG 3
|
|
|
|
#if defined(_CPLUSPLUS_) || defined(__CPLUSPLUS__)
|
|
extern "C" {
|
|
#endif
|
|
|
|
EXTERNL void ncloginit(void);
|
|
EXTERNL int ncsetlogging(int tf);
|
|
EXTERNL int nclogopen(FILE* stream);
|
|
|
|
/* The tag value is an arbitrary integer */
|
|
EXTERNL void nclog(int tag, const char* fmt, ...);
|
|
EXTERNL int ncvlog(int tag, const char* fmt, va_list ap);
|
|
EXTERNL void nclogtext(int tag, const char* text);
|
|
EXTERNL void nclogtextn(int tag, const char* text, size_t count);
|
|
|
|
/* Trace support */
|
|
EXTERNL int nctracelevel(int level);
|
|
EXTERNL void nctrace(int level, const char* fcn, const char* fmt, ...);
|
|
EXTERNL void nctracemore(int level, const char* fmt, ...);
|
|
EXTERNL void ncvtrace(int level, const char* fcn, const char* fmt, va_list ap);
|
|
EXTERNL int ncuntrace(const char* fcn, int err,const char* fmt,...);
|
|
EXTERNL int ncbreakpoint(int err);
|
|
|
|
#ifdef HAVE_EXECINFO_H
|
|
EXTERNL void ncbacktrace(void);
|
|
#else
|
|
#define ncbacktrace()
|
|
#endif
|
|
|
|
#if defined(_CPLUSPLUS_) || defined(__CPLUSPLUS__)
|
|
}
|
|
#endif
|
|
|
|
#endif /*NCLOG_H*/
|