1 Subject: macro.c: macro cleanup
5 source/macro.c | 17 ++++++++++++++---
6 1 file changed, 14 insertions(+), 3 deletions(-)
8 diff --quilt old/source/macro.c new/source/macro.c
10 +++ new/source/macro.c
11 @@ -108,9 +108,20 @@ static const char CVSID[] = "$Id: macro.
13 /* The following definitions cause an exit from the macro with a message */
14 /* added if (1) to remove compiler warnings on solaris */
15 -#define M_FAILURE(s) do { *errMsg = s; if (1) return False; } while (0)
16 -#define M_STR_ALLOC_ASSERT(xDV) do { if (xDV.tag == STRING_TAG && !xDV.val.str.rep) { *errMsg = "Failed to allocate value: %s"; return(False); } } while (0)
17 -#define M_ARRAY_INSERT_FAILURE() M_FAILURE("array element failed to insert: %s")
18 +#define M_FAILURE(s) \
21 + if (1) return False; \
23 +#define M_STR_ALLOC_ASSERT(xDV) \
25 + if (xDV.tag == STRING_TAG && !xDV.val.str.rep) \
26 + M_FAILURE("Failed to allocate string: %s"); \
28 +#define M_ARRAY_INSERT_FAILURE() \
30 + M_FAILURE("Failed to insert array element: %s"); \
33 /* Data attached to window during shell command execution with
34 information for controling and communicating with the process */