1212#include  "defs.h" 
1313#include  "code.h" 
1414
15- #pragma  BOUNDS_CHECKED  ON
15+ #pragma  CHECKED_SCOPE  ON
1616
1717int  nbody ;
1818
@@ -77,12 +77,12 @@ treeptr old_main(void) {
7777 bodyptr  prev = NULL ;
7878 int  tmp = 0 , range = ((1 <<NDIM ) << NDIM ) / NumNodes ;
7979 int  bodiesper  _Checked [MAX_NUM_NODES ];
80-  bodyptr  ptrper  _Checked [MAX_NUM_NODES ] =  {  0   };
80+  bodyptr  ptrper  _Checked [MAX_NUM_NODES ] =  {0 };
8181
8282 srand (123 );/* set random generator */ 
8383
8484/* Tree data structure is global, points to root, and bodylist, has size info */ 
85-  t  =  ( treeptr ) malloc (sizeof (tree ));
85+  t  =  malloc < tree > (sizeof (tree ));
8686 Root (t ) =  NULL ;
8787 t -> rmin [0 ] =  -2.0 ;
8888 t -> rmin [1 ] =  -2.0 ;
@@ -364,7 +364,7 @@ void my_free(nodeptr n)
364364bodyptr  ubody_alloc (int  p )
365365{ register bodyptr  tmp  =  NULL ;
366366
367-  tmp  =  ( bodyptr ) malloc (sizeof (body ));
367+  tmp  =  malloc < body > (sizeof (body ));
368368
369369 Type (tmp ) =  BODY ;
370370 Proc (tmp ) =  p ;
@@ -385,7 +385,7 @@ cellptr cell_alloc(int p)
385385 }
386386 else  
387387 {
388-  tmp  =  ( cellptr ) malloc (sizeof (cell ));
388+  tmp  =  malloc < cell > (sizeof (cell ));
389389 }
390390 Type (tmp ) =  CELL ;
391391 Proc (tmp ) =  p ;
@@ -652,7 +652,7 @@ void gravstep(real rsize, nodeptr rt, bodyptr p, int nstep, real dthf)
652652
653653void  hackgrav (bodyptr  p , real  rsize , nodeptr  rt )
654654{
655-  hgstruct  hg  =  {  0   };
655+  hgstruct  hg  =  {0 };
656656 real  szsq ;
657657
658658 NOTEST ();
0 commit comments