mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-31 17:10:47 +08:00
[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:
parent
ea343ef854
commit
2785c61b8d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user