<commit_before>/*
 *	Copyright 1996, University Corporation for Atmospheric Research
 *	See netcdf/COPYRIGHT file for copying and redistribution conditions.
 */
/* "$Id: ncx.h,v 1.65 2010/05/26 18:11:08 dmh Exp $" */

#ifndef _NCX_H_
#define _NCX_H_

#include "ncdispatch.h"

/*
 * An external data representation interface.

 *
 * This started out as a general replacement for ONC XDR,
 * specifically, the xdrmem family of functions.
 *
 * We eventually realized that we could write more portable
 * code if we decoupled any association between the 'C' types
 * and the external types. (XDR has this association between the 'C'
 * types and the external representations, like xdr_int() takes
 * an int argument and goes to an external int representation.)
 * So, now there is a matrix of functions.
 *
 */

#include <ncconfig.h> /* output of 'configure' */
#include "rnd.h"
#include <stddef.h> /* size_t */
#include <errno.h>
#include <sys/types.h> /* off_t */

#ifdef _MSC_VER
#  pragma warning ( disable : 4244 )
#endif

/* Define uchar if it is not defined on this system. */
#ifndef HAVE_UCHAR
typedef unsigned char uchar;
#endif

#define longlong long long

#if defined(_CRAY) && !defined(_CRAYIEEE) && !defined(__crayx1)
#define CRAYFLOAT 1 /* CRAY Floating point */
#elif defined(_SX) && defined(_FLOAT2)	/* NEC SUPER-UX in CRAY mode */
#define CRAYFLOAT 1 /* CRAY Floating point */
#endif

#if defined(DLL_NETCDF) /* define when library is a DLL */
#include <io.h>
#if !defined(__CYGWIN__) && !defined(__MINGW32__)
#  define lseek _lseeki64
#  define off_t __int64
#endif
#define _OFF_T_DEFINED
#endif  /* defined(DLL_NETCDF) */

/*
 * The integer return code for the conversion routines
 * is 0 (ENOERR) when no error occured, or NC_ERANGE as appropriate
 * for an overflow conversion.
 */
#ifndef ENOERR
#define ENOERR 0
#endif
#ifndef NC_ERANGE
#define NC_ERANGE (-60) /* N.B. must match value in netcdf.h */
#endif
#ifndef NC_ENOMEM
#define NC_ENOMEM (-61) /* N.B. must match value in netcdf.h */
#endif


/*
 * External sizes of the primitive elements.
 */
#define X_SIZEOF_CHAR		1
#define X_SIZEOF_SHORT		2<commit_msg>Fix netcdf on windows.<commit_after>/*
 *	Copyright 1996, University Corporation for Atmospheric Research
 *	See netcdf/COPYRIGHT file for copying and redistribution conditions.
 */
/* "$Id: ncx.h,v 1.65 2010/05/26 18:11:08 dmh Exp $" */

#ifndef _NCX_H_
#define _NCX_H_

#include "ncdispatch.h"

/*
 * An external data representation interface.

 *
 * This started out as a general replacement for ONC XDR,
 * specifically, the xdrmem family of functions.
 *
 * We eventually realized that we could write more portable
 * code if we decoupled any association between the 'C' types
 * and the external types. (XDR has this association between the 'C'
 * types and the external representations, like xdr_int() takes
 * an int argument and goes to an external int representation.)
 * So, now there is a matrix of functions.
 *
 */

#include <ncconfig.h> /* output of 'configure' */
#include "rnd.h"
#include <stddef.h> /* size_t */
#include <errno.h>
#include <sys/types.h> /* off_t */

#ifdef _MSC_VER
#  pragma warning ( disable : 4244 )
#endif

/* Define uchar if it is not defined on this system. */
#ifndef HAVE_UCHAR
typedef unsigned char uchar;
#endif

#define longlong long long

#if defined(_CRAY) && !defined(_CRAYIEEE) && !defined(__crayx1)
#define CRAYFLOAT 1 /* CRAY Floating point */
#elif defined(_SX) && defined(_FLOAT2)	/* NEC SUPER-UX in CRAY mode */
#define CRAYFLOAT 1 /* CRAY Floating point */
#endif

#if 0
#if defined(DLL_NETCDF) /* define when library is a DLL */
#include <io.h>
#if !defined(__CYGWIN__) && !defined(__MINGW32__)
#  define lseek _lseeki64
#  define off_t __int64
#endif
#define _OFF_T_DEFINED
#endif  /* defined(DLL_NETCDF) */
#endif

/*
 * The integer return code for the conversion routines
 * is 0 (ENOERR) when no error occured, or NC_ERANGE as appropriate
 * for an overflow conversion.
 */
#ifndef ENOERR
#define ENOERR 0
#endif
#ifndef NC_ERANGE
#define NC_ERANGE (-60) /* N.B. must match value in netcdf.h */
#endif
#ifndef NC_ENOMEM
#define NC_ENOMEM (-61) /* N.B. must match value in netcdf.h */
#endif


/*
 * External sizes of the primitive elements.
 */
#define X_SIZEOF_CHAR		1
#define X_SIZEOF_SHORT		2
{'fraction_non_alphanumeric': 0.10885780885780885, 'fraction_numerical': 0.02027972027972028, 'mean_word_length': 3.98953488372093, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2953438', 'n_tokens_mistral': 1520, 'n_tokens_neox': 1424, 'n_words': 531}