Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Diff of /branches/vis12/src/compiler/c-target/fragments/shutdown.in
ViewVC logotype

Diff of /branches/vis12/src/compiler/c-target/fragments/shutdown.in

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

revision 1861, Sat Apr 21 15:30:26 2012 UTC revision 1862, Sun Apr 22 19:45:47 2012 UTC
# Line 1  Line 1 
1  //! shutdown and deallocate the world  //! shutdown and deallocate the world
2  void @PREFIX@Shutdown (@PREFIX@World_t *wrld)  void @PREFIX@Shutdown (@PREFIX@World_t *wrld)
3  {  {
4        biffMsgNix (wrld->errors);
5        FREE (wrld->globals);
6    #ifdef DIDEROT_TARGET_PARALLEL
7        FREE (wrld->sched);
8    #endif
9    
10    // free strand objects    // free strand objects
11      for (int i = 0;  i < wrld->numStrands;  i++) {      for (int i = 0;  i < wrld->numStrands;  i++) {
12          FREE (wrld->inState[i]);          FREE (wrld->inState[i]);
# Line 12  Line 18 
18      FREE (wrld->outState);      FREE (wrld->outState);
19      FREE (wrld->status);      FREE (wrld->status);
20    
 /* FIXME: what about the err string? */  
   
21      FREE (wrld);      FREE (wrld);
22    
23  } // @PREFIX@Shutdown  } // @PREFIX@Shutdown

Legend:
Removed from v.1861  
changed lines
  Added in v.1862

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