Roxen.git / server / modules / graphics / graphic_text.pike

version» Context lines:

Roxen.git/server/modules/graphics/graphic_text.pike:1: - string cvs_version="$Id: graphic_text.pike,v 1.56 1997/08/25 13:51:35 per Exp $"; + string cvs_version="$Id: graphic_text.pike,v 1.57 1997/08/31 02:45:40 per Exp $";      #include <module.h>   inherit "module";   inherit "roxenlib";      #if efun(_static_modules)   # define map_array Array.map   import Image;   # define Image image   # define Font font
Roxen.git/server/modules/graphics/graphic_text.pike:732:      int args_restored = 0;   void restore_cached_args()   {    args_restored = 1;    object o = open(".gtext_args_"+hash(mc->name), "r");    if(o)    {    string data = o->read();    catch { -  if(sizeof(indices(Gz))) -  data=Gz->inflate()->inflate(data); +  object q; +  if(sizeof(indices(q=Gz))) +  data=q->inflate()->inflate(data);    };    catch {    cached_args |= decode_value(data);    };    }   }      void save_cached_args()   {    restore_cached_args();    object o = open(".gtext_args_"+hash(mc->name), "wct");    string data=encode_value(cached_args);    catch { -  if(sizeof(indices(Gz))) -  data=Gz->deflate()->deflate(data); +  object q; +  if(sizeof(indices(q=Gz))) +  data=q->deflate()->deflate(data);    };    o->write(data);   }      mapping find_cached_args(int num)   {    if(!args_restored) restore_cached_args();    if(cached_args[num]) return cached_args[num];       // This is a very unlikely event...