Changed size_t to CMK_SIZE_T.
authorMilind Bhandarkar <milind@cs.uiuc.edu>
Mon, 10 Nov 1997 16:36:53 +0000 (16:36 +0000)
committerMilind Bhandarkar <milind@cs.uiuc.edu>
Mon, 10 Nov 1997 16:36:53 +0000 (16:36 +0000)
src/ck-core/env_macros.h
src/conv-core/threads.c
src/langs/pvmc/pvmc_groups.c

index effc1c6fbce61a4741f9deb76de98e12118d9864..64ee17bbf956e3375c886080c315bac89864c9c1 100644 (file)
  * REVISION HISTORY:
  *
  * $Log$
- * Revision 2.14  1997-10-29 23:52:46  milind
+ * Revision 2.15  1997-11-10 16:36:53  milind
+ * Changed size_t to CMK_SIZE_T.
+ *
+ * Revision 2.14  1997/10/29 23:52:46  milind
  * Fixed CthInitialize bug on uth machines.
  *
  * Revision 2.13  1997/03/24 23:10:13  milind
@@ -136,7 +139,7 @@ typedef struct envelope {
 /*********************************************************/
 /** Arrangement for i_tag2                              **/
 /*********************************************************/
-#define GetEnv_count(e)                        ((size_t)(((ENVELOPE *)(e))->i_tag2))
+#define GetEnv_count(e)                        ((CMK_SIZE_T)(((ENVELOPE *)(e))->i_tag2))
 #define SetEnv_count(e,x)              (((ENVELOPE *)(e))->i_tag2=((void *)(x)))
 
 #define GetEnv_chareBlockPtr(e)                ((CHARE_BLOCK *)(((ENVELOPE *)(e))->i_tag2))
@@ -145,7 +148,7 @@ typedef struct envelope {
 #define SetEnv_vidBlockPtr(e,x)                (((ENVELOPE *)(e))->i_tag2=(x))
 #define GetEnv_vidBlockPtr(e)          ((CHARE_BLOCK *)(((ENVELOPE *)(e))->i_tag2))
 
-#define GetEnv_boc_num(e)              ((size_t)(((ENVELOPE *)(e))->i_tag2))
+#define GetEnv_boc_num(e)              ((CMK_SIZE_T)(((ENVELOPE *)(e))->i_tag2))
 #define SetEnv_boc_num(e,x)            (((ENVELOPE *)(e))->i_tag2=((void *)(x)))
 
 /*********************************************************/
index 09d0d3364b1075ef46e8a1b04142c5d7f75d63a9..154e96f7f9345d9bbb1fd8519348781fe22c5e54 100644 (file)
@@ -273,7 +273,7 @@ CthVoidFn fn; void *arg; int size;
   result = (CthThread)malloc(sizeof(struct CthThreadStruct)+size);
   if (result==0) { CmiError("Out of memory."); exit(1); }
   stack = ((char*)result)+sizeof(struct CthThreadStruct);
-  stack = (char *)QT_STKROUNDUP(((size_t)stack));
+  stack = (char *)QT_STKROUNDUP(((CMK_SIZE_T)stack));
   CthThreadInit(result);
   result->stackp = QT_SP(stack, size - QT_STKALIGN);
   result->stackp = 
index 3b8d0f87b24aca9e8aeef967357a5f029a5a4060..802ff4c2d5288c4fdd3d7e4a8180e37fb0db29fd 100644 (file)
@@ -16,8 +16,8 @@ void pvmc_init_groups()
   CpvInitialize(int,pvmc_at_barrier_num);
   CpvAccess(pvmc_at_barrier_num)=0;
   CpvInitialize(int,pvmc_last_barrier_num);
-  CpvAccess(pvmc_last_at_barrier_num)=0;
-  CpvInitialize(int,pvmc_last_barrier_num);
+  CpvAccess(pvmc_last_barrier_num)=0;
+  CpvInitialize(int,pvmc_last_at_barrier_num);
   CpvAccess(pvmc_last_at_barrier_num)=0;
 }