summaryrefslogtreecommitdiffstats
path: root/src/H5.c
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1999-01-07 11:41:25 (GMT)
committerRobb Matzke <matzke@llnl.gov>1999-01-07 11:41:25 (GMT)
commit504aa95bd92511ccb80e6321dd79f7dc525310d5 (patch)
tree43b1c89316ea8ef44db0fe05a6f33cba0006d4b0 /src/H5.c
parent04bec43fa2e962fc4bf5deef67879b5ebf573c8f (diff)
downloadhdf5-504aa95bd92511ccb80e6321dd79f7dc525310d5.zip
hdf5-504aa95bd92511ccb80e6321dd79f7dc525310d5.tar.gz
hdf5-504aa95bd92511ccb80e6321dd79f7dc525310d5.tar.bz2
[svn-r1010] Changes since 19981217
---------------------- ./src/H5.c ./src/H5private.h Renamed `library_initialize_g' to `H5_libinit_g' to make it conform to our naming scheme. ./src/H5I.c Fixed a bug in H5I_dec_ref() that caused the return value to always be zero instead of the new reference count. ./src/H5.c ./src/H5Odtype.c ./src/H5T.c ./src/H5Tconv.c ./src/H5Tpkg.h ./src/H5Tprivate.h ./src/H5Tpublic.h Added support for enumeration data types. ./src/H5RA.c Renamed H5T_insert() to H5T_struct_insert() and added H5T_enum_insert(). ./src/H5RA.c ./src/H5Shyper.c Added casts to size_t for the third argument of memcpy() to shut up a warning message from insure++. ./src/H5T.c Changed "can't" to "unable to" in some error messages to be more consistent. ./src/H5detect.c If fork() or waitpid() are unavailable then we assume no alignment constraints. Hopefully this is the case only on NT and Intel CPU's don't have alignment constraints. ./src/H5public.h Include <limits.h> because the H5T_NATIVE_CHAR macro needs the definition for CHAR_MIN.
Diffstat (limited to 'src/H5.c')
-rw-r--r--src/H5.c31
1 files changed, 17 insertions, 14 deletions
diff --git a/src/H5.c b/src/H5.c
index 01e412a..78d151f 100644
--- a/src/H5.c
+++ b/src/H5.c
@@ -34,13 +34,13 @@ FILE *fdopen(int fd, const char *mode);
#define PABLO_MASK H5_mask
-hbool_t library_initialize_g = FALSE;
+hbool_t H5_libinit_g = FALSE;
hbool_t dont_atexit_g = FALSE;
H5_debug_t H5_debug_g; /*debugging info */
static void H5_debug_mask(const char*);
/* Interface initialization */
-static intn interface_initialize_g = 0;
+static intn interface_initialize_g = 0;
#define INTERFACE_INIT NULL
/*--------------------------------------------------------------------------
@@ -131,7 +131,7 @@ void
H5_term_library(void)
{
/* Don't do anything if the library is already closed */
- if (!library_initialize_g) return;
+ if (!H5_libinit_g) return;
/*
* Close interfaces in a well-defined order based on dependencies. The
@@ -179,7 +179,7 @@ H5_term_library(void)
H5Z_term_interface(0);
/* Mark library as closed */
- library_initialize_g = FALSE;
+ H5_libinit_g = FALSE;
}
@@ -2191,34 +2191,37 @@ H5_trace (hbool_t returning, const char *func, const char *type, ...)
fprintf(out, "NULL");
}
} else {
- H5T_class_t type_class = va_arg (ap, H5T_class_t);
+ H5T_class_t type_class = va_arg(ap, H5T_class_t);
switch (type_class) {
case H5T_NO_CLASS:
- fprintf (out, "H5T_NO_CLASS");
+ fprintf(out, "H5T_NO_CLASS");
break;
case H5T_INTEGER:
- fprintf (out, "H5T_INTEGER");
+ fprintf(out, "H5T_INTEGER");
break;
case H5T_FLOAT:
- fprintf (out, "H5T_FLOAT");
+ fprintf(out, "H5T_FLOAT");
break;
case H5T_TIME:
- fprintf (out, "H5T_TIME");
+ fprintf(out, "H5T_TIME");
break;
case H5T_STRING:
- fprintf (out, "H5T_STRING");
+ fprintf(out, "H5T_STRING");
break;
case H5T_BITFIELD:
- fprintf (out, "H5T_BITFIELD");
+ fprintf(out, "H5T_BITFIELD");
break;
case H5T_OPAQUE:
- fprintf (out, "H5T_OPAQUE");
+ fprintf(out, "H5T_OPAQUE");
break;
case H5T_COMPOUND:
- fprintf (out, "H5T_COMPOUND");
+ fprintf(out, "H5T_COMPOUND");
+ break;
+ case H5T_ENUM:
+ fprintf(out, "H5T_ENUM");
break;
default:
- fprintf (out, "%ld", (long)type_class);
+ fprintf(out, "%ld", (long)type_class);
break;
}
}