Commit Graph

33 Commits

Author SHA1 Message Date
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
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
d24422c126 Modified CMake configuration to fix some problems present on 64-bit linux. 2012-10-03 20:47:34 +00:00
Ward Fisher
8e6a7cb056 Fixed error building shared libs on 64-bit linux. 2012-10-03 16:39:27 +00:00
Ward Fisher
3243ccad1f A few changes to cmake tests. 2012-10-02 20:30:25 +00:00
Ward Fisher
98675a8047 Merged with latest trunk. 2012-09-26 17:08:23 +00:00
Ward Fisher
5259123089 2012-09-24 20:48:12 +00:00
Ward Fisher
af778e6a07 Fixed infinite declaration in a test to work across Windows, Linux, OSX. 2012-09-24 15:49:44 +00:00
Ward Fisher
bcf0bfc96d 2012-09-21 20:51:31 +00:00
Ward Fisher
8e1d238610 2012-09-20 23:26:02 +00:00
Ward Fisher
a83c1bd851 2012-09-12 20:18:48 +00:00
Ward Fisher
c802a16c06 2012-09-07 16:38:03 +00:00
Ward Fisher
7d2a113912 2012-09-06 22:48:22 +00:00
Ward Fisher
e55d002dbc Merged Dennis' changes from trunk. 2012-09-06 21:15:37 +00:00
Ward Fisher
0b7a0778fe 2012-09-04 19:48:26 +00:00
Ward Fisher
9bb179bba1 2012-08-27 21:49:09 +00:00
Ward Fisher
9e2c434851 Fixed a couple ncdap tests when running on Windows. 2012-08-27 18:38:47 +00:00
Ward Fisher
58035ff8f2 Added new tests, CMake functionality. 2012-08-21 20:08:53 +00:00
Ward Fisher
8f9120e3a9 Modified to work on Windows 2012-08-20 22:49:53 +00:00
Ward Fisher
fa681b231b 2012-08-17 22:26:55 +00:00
Ward Fisher
ffb7dc6f0d Merged latest trunk into branch 2012-08-13 19:57:51 +00:00
Dennis Heimbigner
ab1423e742 resolve jira NCF-188 2012-08-09 17:32:11 +00:00
Ward Fisher
0607b62375 Added coverage test flags to CMakeLists.txt files. 2012-08-09 17:07:41 +00:00
Ward Fisher
5e16f2c80c 2012-08-09 16:39:13 +00:00
Ward Fisher
a6c95c65b1 2012-08-08 19:45:38 +00:00
Ward Fisher
8ef94646a1 Corrected a few windows-related errors. 2012-08-08 16:04:11 +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
ac05a19ef8 Updated for advanced CMake functionality. 2012-08-06 17:27:08 +00:00
Ward Fisher
64365a8ad7 CMake-related updated. 2012-08-06 16:57:29 +00:00
Ward Fisher
0d90326575 Integrated latest changes to trunk, added preliminary CPack support. 2012-08-02 22:56:57 +00:00
Dennis Heimbigner
d6741c826a Fixed some constraint handling bugs 2010-11-13 23:24:28 +00:00
Ed Hartnett
18f4bca367 moving to trunk subdir 2010-06-03 13:24:43 +00:00