[svn-r14116] Description:

Fix error in end_obj() macro to make it safer in situations without
enclosing braces.

Tested on:
	Mac OS X/32 10.4.10 (amazon)
This commit is contained in:
Quincey Koziol 2007-08-28 10:21:59 -05:00
parent ea343ef854
commit 2785c61b8d

View File

@ -36,14 +36,16 @@ const char *progname = "h5dump";
} while(0);
#define end_obj(obj,end) \
if(HDstrlen(end)) { \
printf("%s", end); \
do { \
if(HDstrlen(end)) { \
printf("%s", end); \
if(HDstrlen(obj)) \
printf(" "); \
} \
if(HDstrlen(obj)) \
printf(" "); \
} \
if(HDstrlen(obj)) \
printf("%s", obj); \
printf("\n");
printf("%s", obj); \
printf("\n"); \
} while(0);
/* 3 private values: can't be set, but can be read.
Note: these are defined in H5Zprivate, they are