mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-21 08:39:46 +08:00
6d8809100f
1. When running under windows (as opposed to cygwin) we need to make sure to not user /cygdrive/ file paths. This was ocurring in libdap4/d4read.c, but may occur elsewhere. 2. Shell scripts in the git repo are not being checked-out with the executable mode set. Had core.filemode set to false. Was a major hassle to fix.
42 lines
1.0 KiB
C
42 lines
1.0 KiB
C
/*********************************************************************
|
|
* Copyright 2010, UCAR/Unidata
|
|
* See netcdf/COPYRIGHT file for copying and redistribution conditions.
|
|
* $Header$
|
|
*********************************************************************/
|
|
|
|
#ifndef NCLOG_H
|
|
#define NCLOG_H
|
|
|
|
#include "ncexternl.h"
|
|
|
|
#define NCENVFLAG "NCLOGFILE"
|
|
|
|
/* 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(const char* file);
|
|
EXTERNL void nclogclose(void);
|
|
|
|
/* The tag value is an arbitrary integer */
|
|
EXTERNL void nclog(int tag, const char* fmt, ...);
|
|
EXTERNL void nclogtext(int tag, const char* text);
|
|
EXTERNL void nclogtextn(int tag, const char* text, size_t count);
|
|
|
|
/* Provide printable names for tags */
|
|
EXTERNL void nclogsettags(char** tagset, char* dfalt);
|
|
|
|
#if defined(_CPLUSPLUS_) || defined(__CPLUSPLUS__)
|
|
}
|
|
#endif
|
|
|
|
#endif /*NCLOG_H*/
|