OSSP CVS Repository

ossp - Check-in [1667]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 1667
Date: 2002-Jan-27 20:38:49 (local)
2002-Jan-27 19:38:49 (UTC)
User:rse
Branch:
Comment: reduce referencing amount (important in MT environments)
Tickets:
Inspections:
Files:
ossp-pkg/ex/ex.h      1.8 -> 1.9     6 inserted, 5 deleted

ossp-pkg/ex/ex.h 1.8 -> 1.9

--- ex.h 2002/01/26 22:50:12     1.8
+++ ex.h 2002/01/27 19:38:49     1.9
@@ -142,10 +142,11 @@
 /* the block for trying execution */
 #define ex_try \
     { \
+        ex_ctx_t *__ex_ctx_ptr = __ex_ctx; \
         __ex_mctx_t *__ex_mctx_en; \
         __ex_mctx_t __ex_mctx_me; \
-        __ex_mctx_en = __ex_ctx->ctx_mctx; \
-        __ex_ctx->ctx_mctx = &__ex_mctx_me; \
+        __ex_mctx_en = __ex_ctx_ptr->ctx_mctx; \
+        __ex_ctx_ptr->ctx_mctx = &__ex_mctx_me; \
         if (__ex_mctx_save(&__ex_mctx_me)) { \
             if (1)
 
@@ -153,13 +154,13 @@
 #define ex_catch(e) \
             else { \
             } \
-            __ex_ctx->ctx_caught = 0; \
+            __ex_ctx_ptr->ctx_caught = 0; \
         } \
         else { \
             __ex_mctx_restored(&__ex_mctx_me); \
-            __ex_ctx->ctx_caught = 1; \
+            __ex_ctx_ptr->ctx_caught = 1; \
         } \
-        __ex_ctx->ctx_mctx = __ex_mctx_en; \
+        __ex_ctx_ptr->ctx_mctx = __ex_mctx_en; \
     } \
     if (   !(__ex_ctx->ctx_caught) \
         || ((e) = __ex_ctx->ctx_ex, 0)) { \

CVSTrac 2.0.1