home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_07_08 / v7n8079a.txt < prev    next >
Text File  |  1989-10-02  |  628b  |  29 lines

  1.  
  2.  
  3. *****Listing 9*****
  4.  
  5.  
  6.  
  7.             {
  8.              thing * t;
  9.  
  10.              ... /* create and modify t */
  11.              checksum_object(t);
  12.              ... /* t is stable during this time, which includes
  13.                     many procedure calls
  14.                  */
  15.              t->random_field = funny_computation();
  16.              checksum_object(t);
  17.  
  18.              ... /* t is stable again */
  19.  
  20.              clear_checksum(t);      /* allow t to be freely modified */
  21.  
  22.              manipulate(t);
  23.  
  24.              checksum_object(t);     /* t is now considered stable again */
  25.             }
  26.  
  27. **********
  28.  
  29.