Branch: Tag:

1997-08-31

1997-08-31 04:12:48 by Peter Bortas <zino@lysator.liu.se>

They are all threadsafe.

Rev: server/modules/filters/auto_gzip.pike:1.2
Rev: server/modules/filters/hostredirect.pike:1.13
Rev: server/modules/filters/htaccess.pike:1.19
Rev: server/modules/filters/redirect.pike:1.10
Rev: server/modules/filters/relay.pike:1.9
Rev: server/modules/graphics/graphic_text.pike:1.58
Rev: server/modules/logging/client_logger.pike:1.5
Rev: server/modules/logging/home_logger.pike:1.10
Rev: server/modules/logging/nologging.pike:1.5
Rev: server/modules/proxies/connect.pike:1.9
Rev: server/modules/proxies/gopher.pike:1.12
Rev: server/modules/scripting/cgi.pike:1.36
Rev: server/modules/scripting/fcgi.pike:1.10
Rev: server/modules/scripting/pikescript.pike:1.13

1: - string cvs_version="$Id: graphic_text.pike,v 1.57 1997/08/31 02:45:40 per Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.58 1997/08/31 04:12:43 peter Exp $"; + constant thread_safe=1;      #include <module.h>   inherit "module";
155:      string query_location() { return query("location"); }    - mapping (string:object) fonts = ([]); -  +    object(Font) load_font(string name, string justification, int xs, int ys)   {    object fnt = Font();
218:   string last_image_name;   object load_image(string f,object id)   { -  if(last_image_name==f) return last_image; +  if(last_image_name == f && last_image) return last_image->copy();    string data;    object file;    object img = Image();
227:    if(!(file=open(f,"r")) || (!(data=file->read(0x7fffffff))))    return 0;    -  if(!img->frompnm(data) && !img->fromgif(data)) return 0; -  -  last_image_name=f; -  last_image=img; -  call_out(lambda(){last_image=0;last_image_name=0;}, 0); +  if(!img->frompnm(data)/* && !img->fromgif(data)*/) return 0; +  last_image = img; last_image_name = f;    return img->copy();   }   
401:    if(args->texture) foreground = load_image(args->texture,id);       if((args->background) && (background = load_image(args->background, id))) { -  // Don't thrash the image-cache. -  background = background->copy(); +  background = background;    xsize = background->xsize();    ysize = background->ysize();    switch(lower_case(args->talign||"left")) {