pike.git / lib / modules / Tools.pmod / Install.pmod

version» Context lines:

pike.git/lib/modules/Tools.pmod/Install.pmod:13:   //! @[Tools.Standalone.features]   array(string) features()   {    array a = ({}), m = ({});       mapping runtime_info = Pike.get_runtime_info();       if (runtime_info->auto_bignum)    a += ({"auto_bignum"});    -  if (!(<"default", "computed_goto">)[runtime_info->bytecode_method]) +  if (!(<"default">)[runtime_info->bytecode_method])    a += ({"machine_code"});      #if constant(load_module)    a += ({ "dynamic_modules" });   #endif    - #if efun(thread_create) + #if constant(thread_create)    a += ({ "threads" });   #endif      #if constant(Stdio.__HAVE_OOB__)    a += ({ "out-of-band_data" });   #endif      #if constant(__builtin.__DOUBLE_PRECISION_FLOAT__)    a += ({ "double_precision_float" });   #endif
pike.git/lib/modules/Tools.pmod/Install.pmod:52:    a += ({ "rtl_debug" });   #endif      #if 0    // No use reporting stuff that always exists. This list is for    // things that might not be compiled in due to configure options,    // missing libs, etc. /mast    m += ({ "PostgresNative" });   #endif    -  foreach(({ "Nettle", "Dbm", "DVB", "_Ffmpeg", "GL", "GLUT", "GTK1", "Gdbm", +  foreach(({ "Nettle", "Crypto.AES.GCM", "Crypto.ECC.Curve", "Dbm", "DVB", +  "_Ffmpeg", "GL", "GLUT", "Gdbm",    "Gmp", "Gz", "_Image_FreeType", "_Image_GIF", "_Image_JPEG",    "_Image_TIFF", "_Image_TTF", "_Image_XFace", "Image.PNG",    "Java.machine", "Mird", "Msql", "Mysql", "Odbc", "Oracle",    "PDF.PDFlib", "Perl",    "Postgres", "SANE", "SDL", "Ssleay", "Yp", "sybase", "_WhiteFish",    "X", "Bz2", "COM", "Fuse", "GTK2", "Gettext", "HTTPAccept",    "Kerberos", "SQLite", "_Image_SVG", "_Regexp_PCRE", "GSSAPI", -  "Protocols.DNS_SD", "Gnome2", "MIME", "_PGsql", "Standards.JSON", -  "VCDiff", "ZXID" }), +  "Protocols.DNS_SD", "Gnome2", "MIME", "Standards.JSON", +  "Web.Sass", "VCDiff", "ZXID", "System.FSEvents.EventStream", +  "System.Inotify" }),    string modname)    {    catch    {    object tmp;    if(sizeof(indices((tmp = master()->resolv(modname)) || ({})) - -  ({ "dont_dump_module" }))) +  ({ "dont_dump_module" })) || +  (tmp && !objectp(tmp)))    {    if(modname[0] == '_')    modname = replace(modname[1..], "_", ".");    m += ({ (["Java.machine":"Java"])[modname] || modname });       if (modname == "Mysql") {    // Check taste of Mysql client library.    //    // Classic: "MySQL (Copyright Abandoned)/3.23.49"    // Mysql GPL: "MySQL Community Server (GPL)/5.5.30"
pike.git/lib/modules/Tools.pmod/Install.pmod:94:    if ((license == "Copyright Abandoned") && (version > "5")) {    m += ({ "MariaDB" });    }    }    }    };    }       foreach (({"Regexp.PCRE.Widestring", "Java.NATIVE_METHODS"}), string symbol)    catch { -  if (!zero_type(all_constants()[symbol]) || -  !zero_type(master()->resolv(symbol))) +  if (has_index(all_constants(), symbol) || +  !undefinedp(master()->resolv(symbol)))    m += ({symbol});    };       return a + sort (m);   }      //!   string make_absolute_path(string path, string|void cwd)   {   #if constant(getpwnam)
pike.git/lib/modules/Tools.pmod/Install.pmod:218:   {    inherit Stdio.Readline;       private int match_directories_only;    private string cwd;       //!    void trap_signal(int n)    {    werror("\r\nInterrupted, exit.\r\n"); -  destruct(this_object()); +  destruct(this);    exit(1);    }    -  void destroy() +  protected void _destruct()    { -  ::destroy(); +  ::_destruct();    signal(signum("SIGINT"));    }       protected private string low_edit(string data, string|void local_prompt,    array(string)|void attrs)    {    string r = ::edit(data, local_prompt, (attrs || ({})) | ({ "bold" }));    if(!r)    {    // ^D?    werror("\nTerminal closed, exit.\n"); -  destruct(this_object()); +  destruct(this);    exit(0);    }    return r;    }       //!    string edit(mixed ... args)    {    return low_edit(@args);    }