Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
diff VMS.c @ 54:f8508572f3de
Added boolean guarded debug messages and VMS__throw_exception
| author | Me |
|---|---|
| date | Tue, 02 Nov 2010 16:43:01 -0700 |
| parents | 42dd44df1bb0 |
| children | 3bac84e4e56e 85b731b290f8 |
line diff
1.1 --- a/VMS.c Mon Nov 01 21:21:32 2010 -0700 1.2 +++ b/VMS.c Tue Nov 02 16:43:01 2010 -0700 1.3 @@ -288,7 +288,8 @@ 1.4 #ifdef STATS__TURN_ON_PROBES 1.5 struct timeval timeStamp; 1.6 gettimeofday( &(timeStamp), NULL); 1.7 - newPr->createPtInSecs = timeStamp.tv_sec +(timeStamp.tv_usec/1000000.0); 1.8 + newPr->createPtInSecs = timeStamp.tv_sec +(timeStamp.tv_usec/1000000.0) - 1.9 + _VMSMasterEnv->createPtInSecs; 1.10 #endif 1.11 //======================================================================== 1.12 1.13 @@ -752,3 +753,20 @@ 1.14 free( (void *)_VMSMasterEnv ); 1.15 } 1.16 1.17 + 1.18 +//================================ 1.19 + 1.20 + 1.21 +/*Later, improve this -- for now, just exits the application after printing 1.22 + * the error message. 1.23 + */ 1.24 +void 1.25 +VMS__throw_exception( char *msgStr, VirtProcr *reqstPr, VMSExcp *excpData ) 1.26 + { 1.27 + printf(msgStr); 1.28 + fflush(stdin); 1.29 + exit(1); 1.30 + } 1.31 + 1.32 + 1.33 +
