mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-27 08:49:16 +08:00
68a98f6e81
The current ncgen does not properly handle very large data sections. Apparently this is very uncommon because it was only discovered in testing the new zarr code. The fix required a new approach to processing data sections. Unfortunately, the resulting ncgen is slower than before but at least it is, I think, now correct. The added test cases are in libnczarr, and so will not show up until that is incorporated into master. Note also that fortran code generation changed, but has not been tested here. Misc. Changes 1. Cleanup error handling in ncgen -lc and -lb output 2. Cleanup Makefiles for ncgen to remove unused code 3. Added a program, ncgen/ncdumpchunks, to print the data for a .nc file on a per-chunk format. 4. Made the XGetOpt change in PR https://github.com/Unidata/netcdf-c/pull/1694 for ncdump/ncvalidator
62 lines
1.1 KiB
C
62 lines
1.1 KiB
C
/*
|
|
This is part of ncgen, a utility which is part of netCDF. Copyright
|
|
2010, UCAR/Unidata. See COPYRIGHT file for copying and
|
|
redistribution conditions.
|
|
*/
|
|
|
|
/* $Id: includes.h,v 1.7 2010/05/25 18:57:00 dmh Exp $ */
|
|
/* $Header: /upc/share/CVS/netcdf-3/ncgen/includes.h,v 1.7 2010/05/25 18:57:00 dmh Exp $ */
|
|
|
|
#ifndef NCGEN_INCLUDES_H
|
|
#define NCGEN_INCLUDES_H
|
|
|
|
#include "config.h"
|
|
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <assert.h>
|
|
#include <ctype.h> /* for isprint() */
|
|
#ifdef HAVE_UNISTD_H
|
|
#include <unistd.h>
|
|
#endif
|
|
|
|
#ifdef __SunOS
|
|
#include <strings.h>
|
|
#endif
|
|
|
|
#ifdef __hpux
|
|
#include <locale.h>
|
|
#endif
|
|
|
|
#include "list.h"
|
|
#include "bytebuffer.h"
|
|
#include "nctime.h"
|
|
|
|
/* Local Configuration flags*/
|
|
#define ENABLE_BINARY
|
|
#define ENABLE_C
|
|
#define ENABLE_F77
|
|
#define ENABLE_JAVA
|
|
|
|
#include "netcdf.h"
|
|
#include "netcdf_filter.h"
|
|
#include "nc4internal.h"
|
|
#include "data.h"
|
|
#include "ncgen.h"
|
|
#include "generate.h"
|
|
#include "genlib.h"
|
|
#include "util.h"
|
|
#include "debug.h"
|
|
#include "nc.h"
|
|
|
|
extern int specialconstants;
|
|
|
|
#undef ITERBUG
|
|
#undef CHARBUG
|
|
|
|
#undef nullfree
|
|
#define nullfree(x) {if((x)) free(x);}
|
|
|
|
#endif /* NCGEN_INCLUDES_H */
|