Commit Graph

3888 Commits

Author SHA1 Message Date
Ward Fisher
622bbbb0e7 Merge pull request #367 from Unidata/dap2clean.dmh
Clean up dap2 code to remove now obsolete functionality
2017-02-27 10:40:22 -07:00
Ward Fisher
696c200e29 Merge branch 'master' into dap2clean.dmh 2017-02-24 14:26:39 -07:00
Dennis Heimbigner
ba429bcc56 Add comment to explain change of OPAQUE to OPAQUE_ 2017-02-23 22:51:32 -07:00
Dennis Heimbigner
0415300fbc It appears that the token OPAQUE in ncgen.y
is somehow in interference with something
in the HDF4 code. So, I changed
the OPAQUE -> OPAQUE_ and that appears
to fix the problem with bison when HDF4
is enabled.

ps. when Visual Studio complained about token
'constant' it turn out that it mean token type,
not the actual token named 'constant'. Instead
the actual token that was causing the problem
was 'OPAQUE'.
2017-02-23 22:34:11 -07:00
Ward Fisher
7cb03504ed Merge branch 'master' into issue365.dmh 2017-02-23 13:55:10 -07:00
Ward Fisher
1cdde8bbd2 Invoked makeparser from OSX. 2017-02-23 12:22:44 -07:00
Ward Fisher
cda06db42f Updated release notes 2017-02-23 12:05:05 -07:00
Dennis Heimbigner
d0fb4a472a 1. Added a restriction note on ncgen/Makefile.am.makeparser task.
2. invoked makeparser using bison 3.0.4 and flex 2.5.35
2017-02-22 15:56:29 -07:00
Ward Fisher
4208a875c4 Updated generated ncgen files. 2017-02-22 13:22:50 -07:00
Ward Fisher
f96e0e8112 Merge branch 'master' into issue365.dmh 2017-02-22 12:17:01 -07:00
Ward Fisher
169866d5b3 Generated files on OSX. 2017-02-22 09:55:57 -07:00
Ward Fisher
fa1c96a67f Attempting to fix an issue. 2017-02-22 09:55:13 -07:00
Ward Fisher
c2ee17acf6 Corrected for new cmake variables used by hdf5. 2017-02-21 17:00:45 -07:00
Dennis Heimbigner
ee2916f60a Originally, libdap2 was also going to provide
a dap2->netcdf-4 translation. That is now
superceded by dap4. But there is some cruft
in the dap2 code around this that should be removed.
2017-02-21 15:13:37 -07:00
Dennis Heimbigner
f71b695530 Followon to
re: https://github.com/Unidata/netcdf-c/issues/365

1. Added to RELEASENOTES.md
2. Add a range check to more closely
   mimic unix sscanf
3. locate and fix same sscanf problems in ncgen/cvt.c

Still need a stable url for a test case.
2017-02-20 13:19:25 -07:00
Dennis Heimbigner
96bd037560 re: https://github.com/Unidata/netcdf-c/issues/365
Following command fails under visual studio.
    ncdump -h http://thredds.ucar.edu/thredds/dodsC/nexrad/composite/gini/n0r/1km/20170216/Level3_Composite_n0r_1km_20170216_1635.gini

The problem is that sscanf for windows does not appear to support
scanning 8bit integers: it appears to only allow scanning of characters.

Solution:
Scan the input as an integer (for type Byte) or unsigned int (for type UByte)
and then recast the result as a char or unsigned char.

Primary code fix is in libdap2/dapcvt.c#dapcvtattrval
2017-02-19 21:41:51 -07:00
Ward Fisher
da28564469 Updated for Visual Studio support, in support of https://github.com/Unidata/netcdf-c/pulls/364 2017-02-17 15:38:55 -07:00
Ward Fisher
7cce9c30f0 Updated CMakeLists.txt to work on Windows. 2017-02-17 13:00:12 -07:00
Dennis Heimbigner
de0b55d355 Update RELEASENOTES 2017-02-17 11:40:58 -07:00
Dennis Heimbigner
47daf33074 Resolves Github issue https://github.com/Unidata/netcdf-c/issues/349.
Update utf8proc.[ch] to use the version now
maintained by the Julia Language project
(https://github.com/JuliaLang/utf8proc/blob/master/LICENSE.md).
The license for the previous version was
unacceptable for the Debian and Ubuntu release
systems. The new version both updates the code
and addresses the license issue.

It turns out that the utf8proc software we are using
was turned over to the Julia Language developers
and the license terms changed to allow modification.
(https://github.com/JuliaLang/utf8proc/blob/master/LICENSE.md).

So the fix here is as follows:
1. Wrap the library with a fixed interface: libdispatch/dutf8.c
   and include/ncutf8.h.
2. Replace the existing utf8proc code with the new version
   from https://github.com/JuliaLang/utf8proc.
3. Add a couple more test cases: nc_test/tst_utf8_validate.c
   and nc_test_utf8_phrases.c.  If/when I can find a usable
   normalization test, I will incorporate that later.
2017-02-16 14:27:54 -07:00
Ward Fisher
f545023d0f More headache between discrepancies in CMake HDF5 variables. Updated to work on Windows as well as *nix. 2017-02-16 13:00:07 -07:00
Ward Fisher
9db19d75ec Found what appears to be the issue in testing attributes. The code was casting a negative double to a char (unsigned, on ARM), resulting in a value of 0 instead of the expected value of -128. 2017-02-14 16:53:38 -07:00
Ward Fisher
047760bbf1 Changing data types to get tests to run on ARM. Once all tests are running (albeit as signed char instead of unsigned char) we can worry about modifying the tests so that what we want to test is what's being tested. 2017-02-14 16:48:52 -07:00
Ward Fisher
50155b0170 More debugging in support of https://github.com/Unidata/netcdf-c/issues/319. 2017-02-14 12:34:31 -07:00
Ward Fisher
ad43e09afd Additional gdb debug. 2017-02-14 11:25:54 -07:00
Ward Fisher
a257db6670 Merge branch 'ghpull-319' into ghpull-319-arm 2017-02-14 10:51:53 -07:00
Ward Fisher
eec0a81437 Merge branch 'issue258' of https://github.com/wkliao/netcdf-c into ghpull-319 2017-02-14 10:51:21 -07:00
Wei-keng Liao
fc40f92fca bug fix: values stored in NC_attr.xvalue are in external representation, may need byte-swap when retrieved to a memory buffer (internal representation) 2017-02-10 17:46:26 -06:00
Ward Fisher
581737b04e Integrating a big endian test. 2017-02-08 14:51:41 -07:00
Ward Fisher
6ff5ebf12f CMake Sync Issues 2017-02-08 10:31:15 -07:00
Ward Fisher
e823c1d97c Updated gdb files. 2017-02-07 16:37:27 -07:00
Ward Fisher
20721cc46b Additional work in trying to diagnose failures in nc_test. 2017-02-07 15:16:32 -07:00
Ward Fisher
e100aaf6b0 We cannot assume char is signed or unsigned. 2017-02-07 14:20:59 -07:00
Ward Fisher
7a0e61f97c Corrected first test failure in nc_test. Cannot assume MAX_CHAR is 255, as char is not universally unsigned by default. 2017-02-07 11:41:55 -07:00
Ward Fisher
614d00ef87 Added temporary notes file. 2017-02-07 10:56:00 -07:00
Ward Fisher
2b3042c744 Split gdb files to make it easier to compare behavior in branch, master. 2017-02-06 13:33:02 -07:00
Ward Fisher
c437c99649 Updated gdb.txt for debugging. 2017-02-06 13:05:47 -07:00
Ward Fisher
2f9bc02f98 Added a check for endianness in CMake, the lack of which and fix for was contributed by Wei-Keng Liao 2017-02-06 12:23:55 -07:00
Ward Fisher
2b83365185 Added debugging script file for gdb. 2017-02-03 16:49:26 -07:00
Ward Fisher
6689d7a63f Adjusted behavior when casting from a signed char pointer to an unsigned type. 2017-02-03 12:21:54 -07:00
Ward Fisher
fe17747261 Corrected missing endif stanza. 2017-02-03 11:29:59 -07:00
Ward Fisher
7edb08977a Added platform checks for ARM. 2017-02-03 11:19:39 -07:00
Ward Fisher
dd125a92ee Updated hdf5 variable in CmakeLists file. 2017-02-03 11:04:05 -07:00
Ward Fisher
f87ef5d929 Removed duplicate entries. 2017-02-01 13:49:25 -07:00
Ward Fisher
3e5124996e Merged https://github.com/Unidata/netcdf-c/pull/319 to resolve some recently arisen conflicts, in preparation for larger merge. 2017-02-01 13:27:29 -07:00
Ward Fisher
7c68a255c9 Merge branch 'master' into ghpull-335 2017-01-31 12:25:46 -07:00
Ward Fisher
27f81325a6 Added some missing pieces. 2017-01-31 10:59:03 -07:00
Ward Fisher
840fd113d5 Compatibility define for Windows. 2017-01-30 15:03:22 -07:00
Ward Fisher
870b6c534f Working out an error with unistd.h in windows. 2017-01-30 14:54:00 -07:00
Ward Fisher
812d3689f6 Updated release notes. 2017-01-30 12:47:06 -07:00