netcdf-c/libsrc
Dennis Heimbigner 1a7531392f Make the netcdf-c library compile with gcc -ansi.
Primary fixes to get -ansi to work.
1. Convert all '//' C++ style comments to /*...*/ or to use #if 0...#endif
2. It turns out that when -ansi is specified, then a number of
   functions no longer are defined in the header -- but they are still
   in the .so file.<br>
   The big example is strdup(). So, added code to include/ncconfig.h to define
   externs for those missing functions that occur in more than one place.
   These are enabled if !_WIN32 && __STDC__ == 1 (__STDC__ is supposed to
   be the equivalent compile time flag to -ansi). Note that this requires
   config.h (which references ncconfig.h) to be included in files where it is
   currently not included. Single uses will be only in the file that uses them.
3. Added mmap test for the MAP_ANONYMOUS flag to configure.ac. Apparently
   this is not always defined with -ansi.
4. fix some large integer constants in nc_test4/tst_atts3.c and nc_test4/tst_filterparser.c
   to avoid compiler complaints.
5. fix a double constant in nc_test4/tst_filterparser.c to avoid compiler complaints.

[Note I suspect #4 and #5 will be a problem on big-endian machines, but we have no way to test]

Misc. Changes:
1. convert more instances of _MSC_VER to _WIN32.
2. added some debugging code to include/nctestserver.h
3. added comment about libdispatch/drc.c always being compiled.
4. modify parser generation in ncgen to remove unneeded files.
2018-12-05 19:20:43 -07:00
..
attr.m4 Make the netcdf-c library compile with gcc -ansi. 2018-12-05 19:20:43 -07:00
CMakeLists.txt Merge branch 'master' into inmem2.dmh 2018-05-16 14:24:19 -06:00
depend
dim.c This completes (for now) the refactoring of libsrc4. 2018-03-16 11:46:18 -06:00
ffio.c
lookup3.c Follow-up trivial typos 2018-04-26 23:04:01 -04:00
Makefile.am Fix https://github.com/Unidata/netcdf-c/issues/963 2018-05-11 15:30:19 -06:00
memio.c Update nc_test/tst_inmemory to cover more cases 2018-11-27 19:20:19 -07:00
mmapio.c Revert/Improve nc_create + NC_DISKLESS behavior 2018-10-10 13:32:17 -06:00
nc3dispatch.c a clean commit for #383 2017-12-20 20:53:30 -06:00
nc3internal.c Ignore flags NC_MPIIO and NC_MPIPOSIX. 2018-09-22 20:22:34 -05:00
ncFile.c
ncio.c Revert/Improve nc_create + NC_DISKLESS behavior 2018-10-10 13:32:17 -06:00
ncio.h
ncstdio.c
ncstdio.h Fix https://github.com/Unidata/netcdf-c/issues/963 2018-05-11 15:30:19 -06:00
ncx_cray.c
ncx.h Fix build on pre-C99 compilers 2017-11-26 01:47:54 +05:30
ncx.m4 re: github issues 2018-10-30 20:48:12 -06:00
posixio.c Follow-up trivial typos 2018-04-26 23:04:01 -04:00
pstdint.h
putget.m4 Promote NC_var member len from size_t to long long to fix some problems of large-variable tests on 320bit platforms. 2018-06-15 15:08:05 -05:00
t_ncio.c
t_ncio.in
t_ncxx.m4
test_nc.sav
v1hpg.c Promote NC_var member len from size_t to long long to fix some problems of large-variable tests on 320bit platforms. 2018-06-15 15:08:05 -05:00
var.c another typecast missed 2018-06-17 13:16:09 -05:00
winceio.c
XGetopt.c