Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] Diff of /sml/trunk/src/runtime/c-libs/smlnj-prof/setptimer.c
ViewVC logotype

Diff of /sml/trunk/src/runtime/c-libs/smlnj-prof/setptimer.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

sml/trunk/src/runtime/c-libs/smlnj-prof/setptimer.c revision 2, Sat Oct 4 23:33:09 1997 UTC sml/branches/SMLNJ/src/runtime/c-libs/smlnj-prof/setptimer.c revision 8, Sun Jan 18 01:01:29 1998 UTC
# Line 29  Line 29 
29      struct itimerval    new_itv;      struct itimerval    new_itv;
30      int                 sts;      int                 sts;
31    
     if (ProfCntArray == ML_unit) {  
         return RAISE_ERROR(msp, "no count array set");  
     }  
32    
33      if (arg == ML_false) {      if (arg == ML_false) {
34          new_itv.it_interval.tv_sec      =          new_itv.it_interval.tv_sec      =
# Line 39  Line 36 
36          new_itv.it_interval.tv_usec     =          new_itv.it_interval.tv_usec     =
37          new_itv.it_value.tv_usec        = 0;          new_itv.it_value.tv_usec        = 0;
38      }      }
39        else if (ProfCntArray == ML_unit) {
40            return RAISE_ERROR(msp, "no count array set");
41        }
42      else {      else {
43          new_itv.it_interval.tv_sec      =          new_itv.it_interval.tv_sec      =
44          new_itv.it_value.tv_sec         = 0;          new_itv.it_value.tv_sec         = 0;

Legend:
Removed from v.2  
changed lines
  Added in v.8

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0