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.156 1999/02/12 00:52:06 grubba Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.157 1999/03/11 23:03:31 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:715: Inside #if defined(QUANT_DEBUG) and #if efun(color_name)
  #if efun(color_name)    for(int i=0; i<sizeof(from); i++)    perror("%d: %s\n", i, color_name(from[i]));   #endif   }   #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);      
Roxen.git/server/modules/graphics/graphic_text.pike:1161:    q = a*""+Array.map(b, lambda(mixed x) { return (string)x; })*"";       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)   {