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.138 1998/08/02 01:31:57 peter Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.139 1998/08/02 03:13:06 peter Exp $";   constant thread_safe=1;      #include <module.h>   #include <stat.h>   inherit "module";   inherit "roxenlib";      #ifndef VAR_MORE   #define VAR_MORE 0   #endif /* VAR_MORE */
Roxen.git/server/modules/graphics/graphic_text.pike:768:       if(!args)    {    throw( ({ "Internal error in gtext: Got request for non-existant gtext class", backtrace() }) );    }       if(data = cache_lookup(key, text))    {    if(args->nocache) // Remove from cache. Very useful for access counters    cache_remove(key, text); -  perror("Cache (1)\n"); +     if(size) return data[1];    return data[0];    } else if(data = get_cache_file( key, text )) {    cache_set(key, text, data); -  perror("Cache (2)\n"); +     if(size) return data[1];    return data[0];    }          // So. We have to actually draw the thing... -  perror("Drawing...\n"); +        err = catch    {    object img;    if(!args)    {    args=(["fg":"black","bg":"white","notrans":"1"]);    text="Please reload this page";    }