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.165 1999/02/15 23:28:34 per Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.166 1999/03/11 23:07:24 mast Exp $";   constant thread_safe=1;    -  + #include <config.h>   #include <module.h>   #include <stat.h>   inherit "module";   inherit "roxenlib";      #ifndef VAR_MORE   #define VAR_MORE 0   #endif /* VAR_MORE */      static private int loaded;
Roxen.git/server/modules/graphics/graphic_text.pike:717: Inside #if defined(QUANT_DEBUG)
  void print_colors(array from)   {    for(int i=0; i<sizeof(from); i++)    perror("%d: %s\n", i, color_name(from[i]));   }   #endif      int number=0;      #ifdef THREADS - object number_lock = Threads.Mutex(); + object number_lock = Thread.Mutex();   #define NUMBER_LOCK() do { object __key = number_lock->lock()   #define NUMBER_UNLOCK() if (__key) destruct(__key); } while(0)   #else /* !THREADS */   #define NUMBER_LOCK()   #define NUMBER_UNLOCK()   #endif /* THREADS */      mapping find_cached_args(int num);      constant nbsp = iso88591["&nbsp;"];
Roxen.git/server/modules/graphics/graphic_text.pike:1111:    q = a*""+((array(string))b)*"";       if(res = cached_args[ q ])    return res;       restore_cached_args(); /* Not slow now, checks with stat.. */       if(res = cached_args[ q ])    return res;    +  int n;    NUMBER_LOCK();    cached_args[ number ] = f2;    cached_args[ q ] = number; -  int n = number++; +  n = number++;    NUMBER_UNLOCK();       remove_call_out(save_cached_args);    call_out(save_cached_args, 10);    return n;   }         string magic_javascript_header(object id)   {