dmh
10b0ac536f
[NCF-267]/SAI-630695
...
Add support for embedded NUL characters
in character arrays and added some test cases.
Note that embedded NULs in netcdf-4
string constants are still illegal. This is
because strings are not counted in the netcdf
API, so they are implicitly NUL terminated.
2013-09-23 17:11:59 -06:00
dmh
1aa2f695a0
overwrote
2013-09-23 17:11:24 -06:00
Ward Fisher
f0dddd75db
Fixed an issue building with netcdf-4 disabled.
2013-09-23 16:21:35 -06:00
Ward Fisher
3e82887ab9
Corrected Windows-related issue.
2013-09-23 12:04:39 -06:00
dmh
e7414e16d0
[NCF-265] again.
...
1. Updated the ncgen manual (ncgen.1)
to discuss handling of ambiguous
enumeration constant references.
2. Fixed the test case. It is currently
XFAIL'd until such time as ncdump
is modified to output properly
disambiguated enumeration constant
references.
2013-09-22 12:08:27 -06:00
dmh
06d91c3084
[NCF-265] again.
...
Added code to verify that enum constants
(and other constants) are consistent
with the type of the variable or
attribute to which they are assigned.
This addresses the ncdump failure.
2013-09-21 16:19:06 -06:00
dmh
c99058741a
[NCF-265]
...
Ncgen is unable to resolve
ambiguous references to an enum
constant when two different enums
have same econstant name.
Solved by allowing more specific
forms for econstant references.
1. /.../enumname.enumconstname
2. enumname.enumconstname
3. enumconstname
Case 1 is resolved by using the econstant
in the specific enum definition. If none is
found, an error is reported.
Case 2 is resolved by
1. finding an enclosing group with an
enum definition with the specified name
and containing the specified econstant.
If there are more than one, then an error is reported
2. finding all enum definitions in the dataset that have
the specified enum name and contain the specified
econstant. If more than one is found, then an error is reported.
If the above two methods fail, then report an error.
Case 3 is similar to case 2, but all enums, irrespective
of name are used if they contains the specified enum constant.
The ref_tst_econst.cdl test in ncdump is causing ncdump
to fail. So there may be yet some problem.
2013-09-20 20:43:09 -06:00
Ward Fisher
e21426d1b6
Addressed an issue which manifested with Visual Studio when compiling getfill.c.
2013-08-19 12:28:21 -06:00
Ward Fisher
b1d395ab4f
Addressed Coverity issue 711922, 'Uninitialized scalar variable'.
2013-08-14 11:07:26 -06:00
Ward Fisher
3245398d86
Addressed Coverity issue 711923, 'Uninitialized scalar variable'.
2013-08-14 11:06:16 -06:00
Ward Fisher
4980b9f4e1
Addressed some instances of Coverity issue 711927, uninitialized scalar variable.
...
Modified 'makeparser' target in CMake build system.
2013-08-14 10:12:49 -06:00
Dennis Heimbigner
b85d3568ec
Added the necessary code to support
...
group renaming. The primary API
is 'nc_rename_grp(int grpid, const char* name)'.
No test cases provided yet.
This also required adding a rename_grp entry
to the dispatch tables.
2013-07-19 21:48:37 +00:00
Ward Fisher
1c23ec06b8
Merging latest from netcdf-cmake branch. Includes a handful
...
of fixes for coverity-identified errors.
2013-07-19 21:32:27 +00:00
Ward Fisher
a90b386e0a
Refactored 'Constant' to 'NCConstant' in ncgen/ to avoid
...
reserved word collision on Windows.
Added tst_ncgen4_classic.sh to CMake-based builds.
2013-07-16 20:22:48 +00:00
Dennis Heimbigner
98a469b17a
Added NIL tests
2013-07-10 20:53:50 +00:00
Dennis Heimbigner
483cbf94fe
Added code to support NIL
...
values for strings in ncgen.
Needs test cases.
2013-07-10 20:00:48 +00:00
Dennis Heimbigner
628aed80d9
1. synch changes with oc2.0
...
2. Fix a bug in ncgen to
catch a special case of a malformed
datalist.
2013-06-26 18:55:30 +00:00
Ward Fisher
33d3d06971
Added initial 'make dist', 'make distcheck' support to
...
CMake-based builds.
2013-06-03 16:42:04 +00:00
Dennis Heimbigner
254c0e7c96
Historically
...
ncgen3 and ncgen
have treated
uppercase atomic types
the same as lower case.
Change so upper case are no
longer allowed.
Also, synch oc.
2013-05-15 17:37:04 +00:00
Ward Fisher
b113f6f8b6
Merged a handful of changes from netcdf-cmake branch.
...
Addressed the following coverity issues:
711762
711763
711766
711788
711933
711934
711935
2013-04-16 23:02:54 +00:00
Ward Fisher
4a274b9870
Merged latest changes from cmake development branch.
...
Addressed a number of memory-related problems
reported by Coverity.
2013-04-02 22:09:31 +00:00
Ward Fisher
405f8bf827
2013-04-01 23:05:45 +00:00
Ward Fisher
f26a4a559a
Merged latest from netcdf-cmake branch.
...
Addressed several cmake-related issues, in terms of
building on Windows. Also added XGetopt.c to
EXTRA_dist in Makefile.am files.
2013-03-19 22:40:15 +00:00
Ward Fisher
6096f6b43b
Merged changes from CMake branch.
...
Addressed a handful of memory leaks
reported by Coverity.
2013-03-14 22:49:21 +00:00
Dennis Heimbigner
841f7c7148
Move onstack.h from libsrc
...
to include because it is used
both in libsrc and libdispatch
2013-03-08 18:08:11 +00:00
Ward Fisher
38a3f2ef5f
Changed CMakeLists.txt to look for nc_iter.c instead of nciter.c
2013-02-28 21:03:02 +00:00
Dennis Heimbigner
0fc1e99269
Forgot to check-in ncgen/nc_iter.c
2013-02-28 19:16:10 +00:00
Dennis Heimbigner
c50b8c29e2
Fix Jira NCF-233.
...
Rename nciter.[ch] to nc_iter.[ch] to avoid
potential build issues.
2013-02-28 17:51:09 +00:00
Ward Fisher
ddf3c31bb0
Corrected a handful of syntax issues in CMake config files,
...
probably introduced more.
Added CMake-related files to Makefile.am files for inclusion
when creating a distribution package.
2013-02-20 23:28:28 +00:00
Ward Fisher
91188cea7a
Merging CMake branch into trunk. Changes include:
...
CMake related changes in CMakeLists.txt files,
cmake_config.h.in. Other changes relate to
Windows-specific issues, and changes made
when regenerating generated source files.
2013-01-15 22:43:09 +00:00
Dennis Heimbigner
c0a7749cf5
1) fix out of date ncgentab/ncgenyy files 2)fix Jira-ncf213 bug and add test case
2013-01-03 20:45:34 +00:00
Ward Fisher
21523c8582
Merged changes from cmake branch. oc2 changes are just
...
'file property' changes, not sure what exactly.
2012-12-20 21:50:45 +00:00
Ward Fisher
7b91248723
Merged changes from netcdf-branch.
...
o Changed variable names 'typeid' to 'typeid1' to avoid a namespace conflict
in visual studio.
o Cleaned up a handful of warnings in Visual Studio.
o Addressed a few Coverity-discovered issuesl
o Made changes to CMake-based builds.
2012-12-13 22:09:41 +00:00
Ward Fisher
85382f21bc
Fixed a handful of issues identified by Coverity.
2012-12-06 00:06:32 +00:00
Ward Fisher
81280c7878
Merge from latest netcdf-cmake branch.
...
- Fixes for Windows.
- CMake-based changes (functionality, tests).
- Smattering of coverity-informed bug-fixes.
2012-12-05 18:35:42 +00:00
Ward Fisher
ff631c8156
Merged latest changes from cmake branch.
...
o Improved CMake support.
o Cmake module compatibility (netcdf-config*.cmake.in).
2012-11-19 21:43:12 +00:00
Ward Fisher
afa67452f6
Took some time to address a handful of errors identified by Coverity.
...
Primarily focused on memory errors falling into a couple different types:
1) Static overrun errors.
2) Dereference uninitialized memory errors.
make distcheck works after applying these fixes, and coverity no longer sees an issue, so hopefully they are properly resolved.
2012-11-14 18:24:45 +00:00
Ward Fisher
45f77090a1
Addressed a handful of minor 'fixed-length buffer overrun'
...
errors identified by Coverity. The fixes involved replacing calls
to strcpy, strcat with strncpy, strncat.
2012-10-31 21:31:47 +00:00
Dennis Heimbigner
d22134376c
Fix bug NCF-199
2012-10-31 20:07:11 +00:00
Ward Fisher
057701e1fa
Added man pages to 'make install'
2012-10-17 21:14:30 +00:00
Dennis Heimbigner
076e78e91c
Fix Jira bug NC-198
2012-10-02 14:54:19 +00:00
Ward Fisher
7a226dd3f1
Merging the win_netcdf branch into the trunk.
2012-09-27 22:50:41 +00:00
Ward Fisher
98675a8047
Merged with latest trunk.
2012-09-26 17:08:23 +00:00
Dennis Heimbigner
578f182968
added check for unlimited dim data being enclosed in {}
2012-09-21 17:56:33 +00:00
Ward Fisher
8e1d238610
2012-09-20 23:26:02 +00:00
Ward Fisher
6e2d236b02
2012-09-19 21:32:28 +00:00
Ward Fisher
59af056da6
2012-09-14 16:15:18 +00:00
Ward Fisher
a1fda0f885
2012-09-13 22:07:35 +00:00
Ward Fisher
8ee802170d
2012-09-11 20:58:47 +00:00
Ward Fisher
a900a4a399
2012-09-11 20:17:24 +00:00
Ward Fisher
d6c7112481
2012-09-11 19:53:47 +00:00
Ward Fisher
e55d002dbc
Merged Dennis' changes from trunk.
2012-09-06 21:15:37 +00:00
Dennis Heimbigner
880b5c3f7e
fix perf bug in bytebuffer code where setlength was always realloc'ing even when enough space was available
2012-08-30 16:43:34 +00:00
Ward Fisher
9bb179bba1
2012-08-27 21:49:09 +00:00
Ward Fisher
04e61d5894
Added MSVC-compatibility items.
2012-08-27 21:19:25 +00:00
Ward Fisher
8f9120e3a9
Modified to work on Windows
2012-08-20 22:49:53 +00:00
Ward Fisher
e8453be1e5
Merged from trunk into branch
2012-08-20 18:30:04 +00:00
Dennis Heimbigner
5380aa5b67
update utilities: list,byte,hash,uri,log
2012-08-19 21:54:30 +00:00
Ward Fisher
9b3d24cbc0
2012-08-10 21:44:00 +00:00
Ward Fisher
85f6c4cc08
Additional changes in support of CMake, CTest
2012-08-09 22:54:19 +00:00
Ward Fisher
14619ec4c4
2012-08-09 18:40:41 +00:00
Ward Fisher
0607b62375
Added coverage test flags to CMakeLists.txt files.
2012-08-09 17:07:41 +00:00
Ward Fisher
1085abab25
Updated ctest-related arguments to explicitely invoke a shell.
2012-08-08 16:25:37 +00:00
Ward Fisher
db0f2425db
Added additional tests
2012-08-07 22:42:42 +00:00
Ward Fisher
0a964ad8b1
Updated CMake files, added a few changes to fix linux-based compile warnings.
2012-08-07 21:34:55 +00:00
Ward Fisher
751c41928a
Additional CMake changes.
2012-08-03 22:24:29 +00:00
Dennis Heimbigner
faa1c81671
fix a cosmetic issue with config.h
2012-08-01 17:18:58 +00:00
Dennis Heimbigner
42999f4c7c
move from oc1.0 to oc2.0; create new dir oc2
2012-07-31 20:34:13 +00:00
Russ Rew
46736d24ab
Updated documentation of CDL byte constants to lessen confusion
...
with char constants. Update version to 4.2.1. Make minor changes to
RELEASE_NOTES.
2012-07-17 20:00:14 +00:00
Ward Fisher
d1b159bfa1
Modified Makefile.am scripts to run tests when working with
...
Windows DLLs.
2012-05-23 20:27:34 +00:00
Dennis Heimbigner
b47d95b121
fix valgrind error
2012-05-07 16:41:01 +00:00
Dennis Heimbigner
e42d7d7f61
fix bug in opaque parsing
2012-05-05 22:31:24 +00:00
Dennis Heimbigner
766b45b459
fix discovered bug in opaque data handling
2012-05-04 19:22:30 +00:00
Dennis Heimbigner
c39c006039
fix fill bug (re: WJF-305473)
2012-05-04 17:32:14 +00:00
Russ Rew
b569613737
Fixed // style comments, for IBM XL C/C++ for AIX V10.1 compiler.
2012-04-25 16:29:59 +00:00
Russ Rew
c6f399c731
Fix non-portable test that depends on nonstandardized floating-point format using e+08, not e+008. Fixes for some problems reported in scan-build static analysis.
2012-04-23 23:59:24 +00:00
Dennis Heimbigner
f5bd3bf525
cleanup and remove unused code
2012-04-01 20:15:06 +00:00
Dennis Heimbigner
7e27052f87
- Implemented diskless files for both netcdf classic and extended.
...
The in-memory files can be made persistent if nc_create is called with
NC_DISKLESS|NC_WRITE flags set. Initial test case also included.
- Modified ncio mechanism to support
multiple ncio packages; this is so we
can have posixio and memio operating
at the same time.
- cleanup up a bunch of lint issues (unused variables, etc).
2012-03-26 01:34:32 +00:00
Dennis Heimbigner
99eef24bc2
- Fix NCF-158 to modify ncgen flag defaults.
...
- Fix NCF-157 to modify DAP code to support
partial variable retrieval.
- Fix of NCF-154 to solve problem of ncgen
improperly processing data lists for variables
of size greater than 2**18 bytes.
- Fix ncgen processing of char variables that have
multiple unlimited dimensions.
- Partly fix Jira issue: NCF-145 (vlen issues).
- Benchmark program nc_test4/tst_ar4_*) requires arguments
and should only be invoked inside a shell
script; fixed so that they terminate cleanly
if invoked with no arguments.
- Fix the Doxygen processing so it will work
with make distcheck.
- Begin switchover to using an alternative to ncio.
- Begin support for in-memory (diskless) files.
2012-03-14 23:26:48 +00:00
Russ Rew
486509242f
Fix ncgen -b documentation to match implemented behavior
2012-03-12 18:21:32 +00:00
Dennis Heimbigner
2349c62d18
close Jira NCF-154
2012-03-07 23:38:51 +00:00
Dennis Heimbigner
629f712c77
fix bug in ncgen -lc handling of single character vars
2012-02-29 18:54:11 +00:00
Dennis Heimbigner
4f06e22b9a
draft attempt at fixing the fill problem
2012-02-17 18:51:02 +00:00
Dennis Heimbigner
a62c00b4bf
draft attempt at fixing the fill problem
2012-02-17 18:50:25 +00:00
Dennis Heimbigner
7e63849e03
added some notes about attributes
2012-02-15 22:33:28 +00:00
Dennis Heimbigner
ea1af11655
Resolve Lynton's vlen problems (partially) re: jira NCF-145
2012-02-14 00:25:32 +00:00
Dennis Heimbigner
aebd11348a
1)Integrate the oc with improved performance
2012-01-29 18:56:29 +00:00
Dennis Heimbigner
702dfea21c
make note about ISO-8859-1 in ncgen.l
2012-01-27 03:17:03 +00:00
Dennis Heimbigner
b3edfbc2d0
typo in ncgen.y
2012-01-16 01:29:19 +00:00
Dennis Heimbigner
599f35d2e6
fix appel problems with data lists
2012-01-09 18:39:37 +00:00
Dennis Heimbigner
b7f74c9cb4
Moved Jira release notes into RELEASE_NOTES
2011-12-12 23:49:27 +00:00
Dennis Heimbigner
efd9808b0a
completely rewritten constraint system
2011-11-14 04:20:19 +00:00
Ed Hartnett
9e30d5d3be
some windows changes
2011-10-26 19:18:09 +00:00
Ed Hartnett
7b47adf3a1
removed executable permissions from all code files
2011-10-04 16:05:11 +00:00
Dennis Heimbigner
12d4f46668
2011-09-18 20:57:51 +00:00
Dennis Heimbigner
d7790e7e7e
2011-09-16 18:36:08 +00:00
Dennis Heimbigner
16dee702b7
fix NCF-120
2011-09-15 16:57:16 +00:00
Dennis Heimbigner
746b9e55e2
make -b be default
2011-08-11 18:46:18 +00:00
Dennis Heimbigner
0a89437215
fix fix of NCF-42: _Format handling
2011-08-03 18:26:18 +00:00
Dennis Heimbigner
53e8d22d24
Fixed NCF-104
2011-07-27 20:48:58 +00:00
Dennis Heimbigner
a7fdbb176d
Fixed nulldup issues: Jira # NCF-94
2011-07-14 22:43:43 +00:00
Dennis Heimbigner
4f30d3694c
cleanup misc. issues
2011-07-14 22:24:02 +00:00
Dennis Heimbigner
fec4cdb230
Fixed the following Jira minor bugs:
...
NCF-42: _Format attribute sometimes being ignored
NCF-43: Fixed unsigned long long parsing.
NCF-47: Make opendap code properly handle illegal names like "x.y" by
supressing them
NCF-49: check for uint type
NCF-50: properly handle username:pwd embedded in urls.
2011-05-12 17:51:32 +00:00
Ed Hartnett
8d99e0b43a
more changes for mingw/DLL builds
2011-05-11 19:51:11 +00:00
Dennis Heimbigner
658fea000f
removed // comments and decls not at start of block
2011-04-08 17:47:16 +00:00
Ed Hartnett
53867b176b
added config.h to the top of some code files
2011-03-31 19:18:53 +00:00
Ed Hartnett
30ed1c1710
re-added some link options that should not be needed, but are for cygwin and MPI builds
2011-03-22 19:38:55 +00:00
Ed Hartnett
d0d5e7c8c3
changes to make make check work on dll builds (by turning off shell tests for dll builds)
2011-03-21 20:31:56 +00:00
Dennis Heimbigner
fdaffca925
fix sid bug
2011-02-18 22:44:35 +00:00
Dennis Heimbigner
2f86aab292
fixed lang. top-level unlimited problem and added tests for it
2011-02-17 17:36:57 +00:00
Dennis Heimbigner
00035caeba
found missing spot for fix of revision 350
2011-02-16 23:04:07 +00:00
Dennis Heimbigner
199577e143
1. add vars optimize for varm, 2. fix handling of unlimited array of compounds
2011-01-26 21:58:03 +00:00
Dennis Heimbigner
b2c05fa4d0
fixed:
...
ncgen: nan bug
made semicolons optional after type decls
libncdap{3,4}: revamped the NC surrogate to better match
with libsrc
libdispatch: Added a new_nc function to the dispatch table; its purpose
is to allow hierarchical use of NC compatible data structures.
libsrc: cleaned up the NC structure by removing drno field
general: removed --with-oc options
2010-11-09 22:53:03 +00:00
Dennis Heimbigner
9c9a385fbd
disallow uppercase section keywords
2010-08-25 19:01:07 +00:00
Dennis Heimbigner
ea8379719c
fixed char datalist bug and did some more dispatch cleanup
2010-08-09 20:39:36 +00:00
Dennis Heimbigner
c9a566a42c
rebuilt the handling of character datalists to support unlimiteds properly
2010-07-29 20:37:05 +00:00
Ed Hartnett
c464dfe430
Distcheck build was broken, so reverted to working revision of trunk
2010-07-10 14:26:30 +00:00
Dennis Heimbigner
0ed66db735
merge new oc
2010-07-10 01:26:24 +00:00
Ed Hartnett
2d509f2d9b
removed C++ style comment
2010-07-09 22:22:50 +00:00
Ed Hartnett
21f84d5c6c
fixed some makefile include problems for ncgen/ncdump
2010-06-28 18:07:35 +00:00
Ed Hartnett
f0a72cbefb
fixed broken classic-only build
2010-06-28 17:17:43 +00:00
Russ Rew
ef66f0cc06
Merged latest trunk changes to my branch.
2010-06-24 22:07:01 +00:00
Dennis Heimbigner
ac1287d00b
2010-06-24 17:32:29 +00:00
Russ Rew
8a013d4f51
Changed calls in tests from deprecated _ubyte functions to equivalent
...
_uchar functions.
2010-06-22 22:41:04 +00:00
Ed Hartnett
bb0035c95d
fixed Makefile.am includes to find new netcdf.h location
2010-06-07 15:40:31 +00:00
Ed Hartnett
92ccf1c5fa
moved headers to include directory
2010-06-03 20:22:55 +00:00
Ed Hartnett
18f4bca367
moving to trunk subdir
2010-06-03 13:24:43 +00:00