From 9df4fe0a8787dd2e7a24c0b8fa5624dc00a18676 Mon Sep 17 00:00:00 2001 From: Raymond Lu Date: Thu, 7 Oct 2010 15:00:57 -0500 Subject: [svn-r19539] Bug 1707 - I added some comments. Tested on jam - simple change. --- src/H5E.c | 8 ++++---- src/H5Eint.c | 4 ++-- src/H5Epkg.h | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/H5E.c b/src/H5E.c index 5e042c5..50509b8 100644 --- a/src/H5E.c +++ b/src/H5E.c @@ -180,9 +180,9 @@ H5E_set_default_auto(H5E_t *stk) stk->auto_op.func1 = stk->auto_op.func1_default = (H5E_auto1_t)H5Eprint1; stk->auto_op.func2 = stk->auto_op.func2_default = (H5E_auto2_t)H5Eprint2; stk->auto_op.is_default = TRUE; -#else +#else /* H5_NO_DEPRECATED_SYMBOLS */ stk->auto_op.func2 = (H5E_auto2_t)H5Eprint2; -#endif +#endif /* H5_NO_DEPRECATED_SYMBOLS */ stk->auto_data = NULL; @@ -1595,7 +1595,7 @@ H5Eget_auto2(hid_t estack_id, H5E_auto2_t *func, void **client_data) /* Fail if the printing function isn't the default(user-set) and set through H5Eset_auto1 */ if(!op.is_default && op.vers == 1) HGOTO_ERROR(H5E_ERROR, H5E_CANTGET, FAIL, "wrong API function, H5Eset_auto1 has been called") -#endif +#endif /* H5_NO_DEPRECATED_SYMBOLS */ if(func) *func = op.func2; @@ -1661,7 +1661,7 @@ H5Eset_auto2(hid_t estack_id, H5E_auto2_t func, void *client_data) op.is_default = TRUE; op.vers = 2; -#endif +#endif /* H5_NO_DEPRECATED_SYMBOLS */ /* Set the automatic error reporting function */ op.func2 = func; diff --git a/src/H5Eint.c b/src/H5Eint.c index eff9049..f650581 100644 --- a/src/H5Eint.c +++ b/src/H5Eint.c @@ -1015,7 +1015,7 @@ H5E_dump_api_stack(hbool_t is_api) #ifdef H5_NO_DEPRECATED_SYMBOLS if(estack->auto_op.func2) (void)((estack->auto_op.func2)(H5E_DEFAULT, estack->auto_data)); -#else +#else /* H5_NO_DEPRECATED_SYMBOLS */ if(estack->auto_op.vers == 1) { if(estack->auto_op.func1) (void)((estack->auto_op.func1)(estack->auto_data)); @@ -1024,7 +1024,7 @@ H5E_dump_api_stack(hbool_t is_api) if(estack->auto_op.func2) (void)((estack->auto_op.func2)(H5E_DEFAULT, estack->auto_data)); } /* end else */ -#endif +#endif /* H5_NO_DEPRECATED_SYMBOLS */ } /* end if */ done: diff --git a/src/H5Epkg.h b/src/H5Epkg.h index 2e9f592..9a1163a 100644 --- a/src/H5Epkg.h +++ b/src/H5Epkg.h @@ -77,11 +77,11 @@ typedef struct { H5E_auto1_t func1_default; /* The saved library's default function - old style. */ H5E_auto2_t func2_default; /* The saved library's default function - new style. */ } H5E_auto_op_t; -#else +#else /* H5_NO_DEPRECATED_SYMBOLS */ typedef struct { H5E_auto_t func2; /* Only the new style callback function is available. */ } H5E_auto_op_t; -#endif +#endif /* H5_NO_DEPRECATED_SYMBOLS */ /* Some syntactic sugar to make the compiler happy with two different kinds of callbacks */ typedef struct { -- cgit v0.12