summaryrefslogtreecommitdiff
path: root/src/include/utils/exc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/utils/exc.h')
-rw-r--r--src/include/utils/exc.h41
1 files changed, 23 insertions, 18 deletions
diff --git a/src/include/utils/exc.h b/src/include/utils/exc.h
index 7400f9ce03..809361c639 100644
--- a/src/include/utils/exc.h
+++ b/src/include/utils/exc.h
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: exc.h,v 1.12 1998/02/26 04:43:59 momjian Exp $
+ * $Id: exc.h,v 1.13 1998/06/15 18:40:05 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -47,23 +47,28 @@ typedef struct ExcFrame
extern ExcFrame *ExcCurFrameP;
-#define ExcBegin() \
- { \
- ExcFrame exception; \
- \
- exception.link = ExcCurFrameP; \
- if (sigsetjmp(exception.context, 1) == 0) { \
- ExcCurFrameP = &exception; \
- {
-#define ExcExcept() \
- } \
- ExcCurFrameP = exception.link; \
- } else { \
- {
-#define ExcEnd() \
- } \
- } \
- }
+/* These are not used anywhere 1998/6/15 */
+#define ExcBegin() \
+do { \
+ ExcFrame exception; \
+ \
+ exception.link = ExcCurFrameP; \
+ if (sigsetjmp(exception.context, 1) == 0) \
+ { \
+ ExcCurFrameP = &exception;
+
+#define ExcExcept() \
+ } \
+ ExcCurFrameP = exception.link; \
+ } \
+ else \
+ { \
+ {
+
+#define ExcEnd() \
+ } \
+ } \
+} while(0)
#define raise4(x, t, d, message) \
ExcRaise(&(x), (ExcDetail)(t), (ExcData)(d), (ExcMessage)(message))