[NeXus-code-svn] r1452 - in trunk: applications/NXconvert applications/NXsummary applications/NXtranslate applications/NXvalidate third_party/tclap windows

apache at nexusformat.org apache at nexusformat.org
Sat Mar 27 21:10:53 GMT 2010


Author: Pedro.vicente
Date: Sat Mar 27 21:10:52 2010
New Revision: 1452

Added:
   trunk/windows/getopt.c
   trunk/windows/getopt.h
   trunk/windows/stdint.h
Modified:
   trunk/applications/NXconvert/nxconvert.cpp
   trunk/applications/NXconvert/nxconvert_common.cpp
   trunk/applications/NXsummary/data_util.cpp
   trunk/applications/NXsummary/string_util.cpp
   trunk/applications/NXtranslate/attr.cpp
   trunk/applications/NXtranslate/attr.h
   trunk/applications/NXtranslate/nexus_util.cpp
   trunk/applications/NXtranslate/node.cpp
   trunk/applications/NXtranslate/node.h
   trunk/applications/NXtranslate/node_util.cpp
   trunk/applications/NXvalidate/nxvalidate.cpp
   trunk/third_party/tclap/StdOutput.h

Log:
refs #205 modified code to run with Visual Studio 2008
tested in: Linux x86_64 (gcc 4.1.2), Windows 7, (VS 2008)
changes are:


NXconvert-------------:

added a getopt.c to /windows as source file

#ifdef _MSC_VER
#include "getopt.h"
#else
#include <unistd.h>
#endif

NXsummary---------------:

added a stdint.h to /windows as source file


#ifdef HAVE_STDINT_H

#include <stdint.h>

#else

#ifdef _MSC_VER

typedef signed __int64          int64_t; 

typedef unsigned __int64        uint64_t;

#endif //_MSC_VER

NXtranslate----------------:

replaced
__value
with
_value 

(__value is a VS keyword)



replaced 
 int dims[rank];

with
int dims[NX_MAXRANK];

MXvalidate---------------------:

replaced 
static int mkstemp(char* template)
with
static int mkstemp(char* template_name)


Tclap: StdOutput.h -------------------------:

#if defined (_MSC_VER)             
			
int stringLen = (std::min)( len - start, allowedLen );
 
#else
            int stringLen = std::min( len - start, allowedLen );

#endif





Modified: trunk/applications/NXconvert/nxconvert.cpp
Url: http://svn.nexusformat.org/viewvc/NeXusCode/trunk/applications/NXconvert/nxconvert.cpp?r1=1451&r2=1452

Modified: trunk/applications/NXconvert/nxconvert_common.cpp
Url: http://svn.nexusformat.org/viewvc/NeXusCode/trunk/applications/NXconvert/nxconvert_common.cpp?r1=1451&r2=1452

Modified: trunk/applications/NXsummary/data_util.cpp
Url: http://svn.nexusformat.org/viewvc/NeXusCode/trunk/applications/NXsummary/data_util.cpp?r1=1451&r2=1452

Modified: trunk/applications/NXsummary/string_util.cpp
Url: http://svn.nexusformat.org/viewvc/NeXusCode/trunk/applications/NXsummary/string_util.cpp?r1=1451&r2=1452

Modified: trunk/applications/NXtranslate/attr.cpp
Url: http://svn.nexusformat.org/viewvc/NeXusCode/trunk/applications/NXtranslate/attr.cpp?r1=1451&r2=1452

Modified: trunk/applications/NXtranslate/attr.h
Url: http://svn.nexusformat.org/viewvc/NeXusCode/trunk/applications/NXtranslate/attr.h?r1=1451&r2=1452

Modified: trunk/applications/NXtranslate/nexus_util.cpp
Url: http://svn.nexusformat.org/viewvc/NeXusCode/trunk/applications/NXtranslate/nexus_util.cpp?r1=1451&r2=1452

Modified: trunk/applications/NXtranslate/node.cpp
Url: http://svn.nexusformat.org/viewvc/NeXusCode/trunk/applications/NXtranslate/node.cpp?r1=1451&r2=1452

Modified: trunk/applications/NXtranslate/node.h
Url: http://svn.nexusformat.org/viewvc/NeXusCode/trunk/applications/NXtranslate/node.h?r1=1451&r2=1452

Modified: trunk/applications/NXtranslate/node_util.cpp
Url: http://svn.nexusformat.org/viewvc/NeXusCode/trunk/applications/NXtranslate/node_util.cpp?r1=1451&r2=1452

Modified: trunk/applications/NXvalidate/nxvalidate.cpp
Url: http://svn.nexusformat.org/viewvc/NeXusCode/trunk/applications/NXvalidate/nxvalidate.cpp?r1=1451&r2=1452

Modified: trunk/third_party/tclap/StdOutput.h
Url: http://svn.nexusformat.org/viewvc/NeXusCode/trunk/third_party/tclap/StdOutput.h?r1=1451&r2=1452

Added: trunk/windows/getopt.c
Url: http://svn.nexusformat.org/viewvc/NeXusCode/trunk/windows/getopt.c?view=markup&revision=1452

Added: trunk/windows/getopt.h
Url: http://svn.nexusformat.org/viewvc/NeXusCode/trunk/windows/getopt.h?view=markup&revision=1452

Added: trunk/windows/stdint.h
Url: http://svn.nexusformat.org/viewvc/NeXusCode/trunk/windows/stdint.h?view=markup&revision=1452


More information about the NeXus-code-svn mailing list