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

version» Context lines:

Roxen.git/server/modules/graphics/graphic_text.pike:1: - constant cvs_version="$Id: graphic_text.pike,v 1.86 1997/10/03 21:46:39 js Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.87 1997/10/15 16:11:26 grubba Exp $";   constant thread_safe=1;      #include <module.h>   inherit "module";   inherit "roxenlib";      #if efun(_static_modules)   # define map_array Array.map   import Image;   # define Image image
Roxen.git/server/modules/graphics/graphic_text.pike:863:    if(strlen(res) < strlen(option)) return url_cache[in]=res;    return url_cache[in]=option;   }      int args_restored = 0;   void restore_cached_args()   {    args_restored = 1;    object privs = Privs("Reading gtext argument list");    object o = open(".gtext_args_"+hash(mc->name), "r"); +  privs = 0;    if(o)    {    string data = o->read();    catch {    object q;    if(sizeof(indices(q=Gz)))    data=q->inflate()->inflate(data);    };    catch {    cached_args |= decode_value(data);
Roxen.git/server/modules/graphics/graphic_text.pike:888:    cached_args = ([]);    number = 0;    }   }      void save_cached_args()   {    int on;    on = number;    restore_cached_args(); -  object privs = Privs("Saving gtext argument list"); +     if(on > number) number=on; -  +  object privs = Privs("Saving gtext argument list");    object o = open(".gtext_args_"+hash(mc->name), "wct"); -  +  privs = 0;    string data=encode_value(cached_args);    catch {    object q;    if(sizeof(indices(q=Gz)))    data=q->deflate()->deflate(data);    };    o->write(data);   }      mapping find_cached_args(int num)