[svn-r18759] pull r18757 from 1.8 branch

Enable tools lib to be built as a dll on windows. Added two get/set functions for progname and d_status.
Also add windows import/export declarations to functions.
Updated error_mesg() and warn_mesg() to remove progname argument and use get functions

Tested:
   Windows, linux
This commit is contained in:
Allen Byrne
2010-05-11 15:10:25 -05:00
parent fe49632588
commit 68fa42f336
35 changed files with 572 additions and 481 deletions

View File

@@ -20,6 +20,9 @@
#include <assert.h>
#include "h5diff_common.h"
/* Name of tool */
#define PROGRAMNAME "h5diff"
static void ph5diff_worker(int );
/*-------------------------------------------------------------------------
@@ -52,9 +55,6 @@ static void ph5diff_worker(int );
*-------------------------------------------------------------------------
*/
/* module-scoped variables */
int d_status = EXIT_SUCCESS;
int main(int argc, const char *argv[])
{
int nID = 0;
@@ -64,6 +64,9 @@ int main(int argc, const char *argv[])
const char *objname2 = NULL;
diff_opt_t options;
h5tools_setprogname(PROGRAMNAME);
h5tools_setstatus(EXIT_SUCCESS);
outBuffOffset = 0;
g_Parallel = 1;