Regenerating the VM

Ian Piumarta Ian.Piumarta at inria.fr
Wed Nov 4 16:16:10 UTC 1998


 > Not unless you've changed it manually. The sq.h file simply says
 > 
 > #define ioLowResMSecs() clock()

Err, pas du tout d'accord.  Mine (and the one on alix) says this:


  int ioShowDisplay(
	  int dispBitsIndex, int width, int height, int depth,
	  int affectedL, int affectedR, int affectedT, int affectedB);
  
  #ifdef USE_CLOCK_MSECS
    /* optional millisecond clock macro */
  # define ioMSecs() ((1000 * clock()) / CLOCKS_PER_SEC)
    /* cheap clock with coarse resolution (about 17 msecs on Mac) */
  # define ioLowResMSecs() ((1000 * clock()) / CLOCKS_PER_SEC)
  #else
    /* clock() returns uSecs on Unix, so the above definition wraps after
       only 2 seconds because of the prescale by 1000.  This is clearly
       unacceptable.  (Who invented this ioLowResNonSense anyway?) */
  # define ioLowResMSecs ioMSecs
  #endif
  
  /* image file and VM path names */
  extern char imageName[];


If yours is any different then life itself is in contempt of court for
failing to be either beautiful or true.

Salut,

Ian





More information about the Squeak-dev mailing list