Branch: Tag:

1998-07-04

1998-07-04 13:05:47 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added function clear_memory_caches().

Rev: server/base_server/configuration.pike:1.142

1: - string cvs_version = "$Id: configuration.pike,v 1.141 1998/07/03 12:06:19 grubba Exp $"; + string cvs_version = "$Id: configuration.pike,v 1.142 1998/07/04 13:05:47 grubba Exp $";   #include <module.h>   #include <roxen.h>   
982:   #endif   }    + // Empty all the caches above AND the ones in the loaded modules. + void clear_memory_caches() + { +  invalidate_cache(); +  foreach(indices(otomod), object m) { +  if (m->clear_memory_caches) { +  mixed err = catch { +  m->clear_memory_caches(); +  }; +  if (err) { +  report_error(sprintf("clear_memory_caches() failed for module %O:\n" +  "%s\n", +  otomod[m], describe_backtrace(err))); +  } +  } +  } + }    -  +    string draw_saturation_bar(int hue,int brightness, int where)   {    object bar=Image.image(30,256);