pike.git / lib / master.pike.in

version» Context lines:

pike.git/lib/master.pike.in:3753:    run_tool = 1;    break;       case "show_cpp_warn":    show_if_constant_errors = 1;    break;    }    }       cur_compat_ver = Version (compat_major, compat_minor); +  if (cur_compat_ver < lowestcompat) +  { +  werror("This Pike only supports compatibility down to %s.\n", +  (string)lowestcompat); +  cur_compat_ver = lowestcompat; +  compat_major = lowestcompat->major; +  compat_minor = lowestcompat->minor; +  }    if (compat_major != -1) {    object compat_master = get_compat_master (compat_major, compat_minor);       if (cur_compat_ver <= Version (7, 6)) {    mapping(string:array(string)) compat_env = ([]);    foreach (Builtin._getenv(); string var; string val) {   #ifdef __NT__    compat_env[lower_case (var)] = ({var, val});   #else    compat_env[var] = ({var, val});
pike.git/lib/master.pike.in:5866:    {    case "string":    return sprintf("%d.%d",major,minor);    }    }   }      //! Version information about the current Pike version.   Version currentversion = Version(__REAL_MAJOR__, __REAL_MINOR__);    + Version lowestcompat = Version(Builtin.LOWEST_COMPAT_MAJOR, +  Builtin.LOWEST_COMPAT_MINOR); +    mapping(Version:CompatResolver) compat_handler_cache = ([    currentversion:this_object(),   ]);      CompatResolver get_compilation_handler(int major, int minor)   {    Version v=Version(major,minor);       if(v > currentversion)    {