Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

Testing WORDS_BIGENDIAN define in NetCDF source

Ed,

A fairly minor thing: In NetCDF 3.6.1 in ncx.c some code does:

#ifdef WORDS_BIGENDIAN

while other code does:

#if WORDS_BIGENDIAN

Might I suggest searching for all instances of 'WORDS_BIGENDIAN' and
using the #ifdef test.  If one did a #define WORDS_BIGENDIAN 0 they
would get something quite broken obviously. :)  Also, gcc gives a
warning (with -Wundef) if #if is used with something undefined.

Cheers,

-- 
____________________________________________________________
Sean McBride, B. Eng                 sean@xxxxxxxxxxxxxxxxxx
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada



==============================================================================
To unsubscribe netcdfgroup, visit:
http://www.unidata.ucar.edu/mailing-list-delete-form.html
==============================================================================


  • 2007 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: