netcdf-c/ncgen3
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
..
bigf1.cdl moving to trunk subdir 2010-06-03 13:24:43 +00:00
bigf2.cdl moving to trunk subdir 2010-06-03 13:24:43 +00:00
bigf3.cdl moving to trunk subdir 2010-06-03 13:24:43 +00:00
bigr1.cdl moving to trunk subdir 2010-06-03 13:24:43 +00:00
bigr2.cdl moving to trunk subdir 2010-06-03 13:24:43 +00:00
bigr3.cdl moving to trunk subdir 2010-06-03 13:24:43 +00:00
c0.cdl merge-squash 2015-08-15 16:26:35 -06:00
CMakeLists.txt Updated CMakelists to remove debug, release subdirectories on Windows. Updating shell scripts to work with MSYS paths. 2015-02-02 14:46:50 -07:00
depend moving to trunk subdir 2010-06-03 13:24:43 +00:00
escapes.c Fix common typos 2015-08-20 11:42:05 +02:00
generic.h moving to trunk subdir 2010-06-03 13:24:43 +00:00
genlib.c Begin changing over to use strlcat instead of strncat because 2017-11-23 10:55:24 -07:00
genlib.h Begin changing over to use strlcat instead of strncat because 2017-11-23 10:55:24 -07:00
getfill.c moving to trunk subdir 2010-06-03 13:24:43 +00:00
init.c moving to trunk subdir 2010-06-03 13:24:43 +00:00
lfs-tests Fix pull request https://github.com/Unidata/netcdf-c/pull/374 (dap4.dmh) 2017-04-03 21:39:44 -06:00
load.c Begin changing over to use strlcat instead of strncat because 2017-11-23 10:55:24 -07:00
main.c more docs, more cleaning 2017-12-04 12:21:14 -07:00
Makefile.am Primary change: add dap4 support 2017-03-08 17:01:10 -07:00
ncgen3.1 hyphens used as minus signs 2015-01-16 13:12:11 +01:00
ncgen.h Many changes to address NCF-177 (renaming dimensions and variables). Also 2013-11-30 23:20:28 -06:00
ncgen.l Make the netcdf-c library compile with gcc -ansi. 2018-12-05 19:20:43 -07:00
ncgen.y Make the netcdf-c library compile with gcc -ansi. 2018-12-05 19:20:43 -07:00
ncgentab.c Make the netcdf-c library compile with gcc -ansi. 2018-12-05 19:20:43 -07:00
ncgentab.h Make the netcdf-c library compile with gcc -ansi. 2018-12-05 19:20:43 -07:00
ncgenyy.c Make the netcdf-c library compile with gcc -ansi. 2018-12-05 19:20:43 -07:00
run_nc4_tests.sh Primary change: add dap4 support 2017-03-08 17:01:10 -07:00
run_tests2.sh Fix pull request https://github.com/Unidata/netcdf-c/pull/374 (dap4.dmh) 2017-04-03 21:39:44 -06:00
run_tests.sh Primary change: add dap4 support 2017-03-08 17:01:10 -07:00
XGetopt.c Merge from latest netcdf-cmake branch. 2012-12-05 18:35:42 +00:00