/[bubblemon]/bubblemon/src/bubblemon.c
ViewVC logotype

Diff of /bubblemon/src/bubblemon.c

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

revision 1.94 by walles, Sun Oct 27 07:45:31 2002 UTC revision 1.95 by rael, Wed Nov 13 12:51:43 2002 UTC
# Line 1098  const bubblemon_picture_t *bubblemon_get Line 1098  const bubblemon_picture_t *bubblemon_get
1098    return &bubblePic;    return &bubblePic;
1099  }  }
1100    
1101  int main(int argc, char *argv[])  void bubblemon_init(void)
1102  {  {
   int exitcode;  
   
1103  #ifdef ENABLE_PROFILING  #ifdef ENABLE_PROFILING
1104    fprintf(stderr,    fprintf(stderr,
1105            "Warning: " PACKAGE " has been configured with --enable-profiling and will show max\n"            "Warning: " PACKAGE " has been configured with --enable-profiling and will show max\n"
1106            "load all the time.\n");            "load all the time.\n");
1107  #endif  #endif
1108      
1109    // Initialize the random number generation    // Initialize the random number generation
1110    srandom(time(NULL));    srandom(time(NULL));
1111        
1112    // Initialize the load metering    // Initialize the load metering
1113    meter_init(argc, argv, &sysload);    meter_init(&sysload);
1114    sysload.cpuLoad = (int *)calloc(sysload.nCpus, sizeof(int));    sysload.cpuLoad = (int *)calloc(sysload.nCpus, sizeof(int));
1115    assert(sysload.cpuLoad != NULL);    assert(sysload.cpuLoad != NULL);
1116        
1117    // Initialize the bottle    // Initialize the bottle
1118    physics.bottle_state = GONE;    physics.bottle_state = GONE;
1119      }
1120    // Do the disco duck  
1121    exitcode = ui_main(argc, argv);  void bubblemon_done(void)
1122      {
1123    // Terminate the load metering    // Terminate the load metering
1124    meter_done();    meter_done();
   
   return exitcode;  
1125  }  }

Legend:
Removed from v.1.94  
changed lines
  Added in v.1.95

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26