diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2011-05-09 20:31:43 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2011-05-09 20:31:43 (GMT) |
commit | 4e5f011c34295706e606e1e235be2e58f6b1330b (patch) | |
tree | 13e6e1148a38cd2fcfe683b586b1b04a68920a2e /src/H5private.h | |
parent | a4c349dececd313612f2bfbfb964cbf0eab92827 (diff) | |
download | hdf5-4e5f011c34295706e606e1e235be2e58f6b1330b.zip hdf5-4e5f011c34295706e606e1e235be2e58f6b1330b.tar.gz hdf5-4e5f011c34295706e606e1e235be2e58f6b1330b.tar.bz2 |
[svn-r20778] I changed the macro definition of DIR_SEPC and DIR_SEPS to ']' for OpenVMS in H5private.h. Strictly speaking, it isn't
the directory seperator. But it can simplify the code and make the H5L_build_name function cleaner.
Tested on jam because the change only affects VMS.
Diffstat (limited to 'src/H5private.h')
-rw-r--r-- | src/H5private.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/H5private.h b/src/H5private.h index 7950117..9978cd1 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -1475,13 +1475,13 @@ extern char *strdup(const char *s); /* OpenVMS pathname: <disk name>$<partition>:[path]<file name> * i.g. SYS$SYSUSERS:[LU.HDF5.SRC]H5system.c */ -#define DIR_SEPC '.' -#define DIR_SEPS "." +#define DIR_SEPC ']' +#define DIR_SEPS "]" #define CHECK_DELIMITER(SS) (SS == DIR_SEPC) #define CHECK_ABSOLUTE(NAME) (strrchr(NAME, ':') && strrchr(NAME, '[')) -#define CHECK_ABS_DRIVE(NAME) (0) -#define CHECK_ABS_PATH(NAME) (0) -#define GET_LAST_DELIMITER(NAME, ptr) ptr = strrchr(NAME, ']'); +#define CHECK_ABS_DRIVE(NAME) (0) +#define CHECK_ABS_PATH(NAME) (0) +#define GET_LAST_DELIMITER(NAME, ptr) ptr = strrchr(NAME, DIR_SEPC); #else |