pike.git / src / builtin.cmod

version» Context lines:

pike.git/src/builtin.cmod:1:   /* -*- c -*-   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: builtin.cmod,v 1.107 2003/01/14 19:20:24 mast Exp $ + || $Id: builtin.cmod,v 1.108 2003/01/15 21:41:28 mast Exp $   */      #include "global.h"   #include "interpret.h"   #include "svalue.h"   #include "opcodes.h"   #include "pike_macros.h"   #include "object.h"   #include "program.h"   #include "array.h"
pike.git/src/builtin.cmod:435:    }, { \    get.type = T_FLOAT; \    get.u.float_number = VAR; \    });       HANDLE_PARAM ("enabled", {    if (set->type != T_INT || set->u.integer < -1 || set->u.integer > 1)    SIMPLE_BAD_ARG_ERROR ("Pike.gc_parameters", 1,    "integer in the range -1..1 for 'enabled'");    if (gc_enabled != set->u.integer) { -  if (gc_enabled > 0) { +  if (gc_enabled > 0)    gc_enabled = set->u.integer; -  alloc_threshold = GC_MAX_ALLOC_THRESHOLD; -  } +     else {    gc_enabled = 1; -  +  if (alloc_threshold == GC_MAX_ALLOC_THRESHOLD)    alloc_threshold = GC_MIN_ALLOC_THRESHOLD;    }    }    }, {    get.type = T_INT;    get.u.integer = gc_enabled;    });    HANDLE_FLOAT_FACTOR ("garbage_ratio_low", gc_garbage_ratio_low);    HANDLE_FLOAT_FACTOR ("time_ratio", gc_time_ratio);    HANDLE_FLOAT_FACTOR ("garbage_ratio_high", gc_garbage_ratio_high);