Roxen.git / server / base_server / roxenloader.pike

version» Context lines:

Roxen.git/server/base_server/roxenloader.pike:128:   #define LOG_ALERT (1<<1)   #define LOG_CRIT (1<<2)   #define LOG_ERR (1<<3)   #define LOG_WARNING (1<<4)   #define LOG_NOTICE (1<<5)   #define LOG_INFO (1<<6)   #define LOG_DEBUG (1<<7)   int use_syslog, loggingfield;   #endif    + #if constant(DefaultCompilerEnvironment) + #if (__REAL_MAJOR__ == 8) && (__REAL_MINOR__ == 0) && (__REAL_BUILD__ < 694) + /* Workaround for [PIKE-126]. */ + object _disable_threads() + { +  object compiler_lock = DefaultCompilerEnvironment->lock(); +  return predef::_disable_threads(); + } + #endif + #endif +    //! The path to the server directory, without trailing slash. If   //! available, this is the logical path without following symlinks (as   //! opposed to what @[getcwd] returns).   //!   //! @note   //! @[getcwd] should be used when the server directory is combined   //! with a path that may contain "..". The main reason is to keep   //! compatibility, and in extension for the sake of consistency.   string server_dir =    lambda () {
Roxen.git/server/base_server/roxenloader.pike:1468: Inside #if !constant(gethostname)
  #if !constant(gethostname)    add_constant("gethostname", lambda() { return "localhost"; });   #endif      #ifndef OLD_PARSE_HTML    // Temporary kludge to get wide string rxml parsing.    add_constant("parse_html", parse_html);    add_constant("parse_html_lines", parse_html_lines);   #endif    + #if constant(DefaultCompilerEnvironment) + #if (__REAL_MAJOR__ == 8) && (__REAL_MINOR__ == 0) && (__REAL_BUILD__ < 694) +  /* Workaround for [PIKE-126]. */ +  add_constant("_disable_threads", _disable_threads); + #endif + #endif +     DC( "Roxen" );       roxen = really_load_roxen();   }         #ifndef OLD_PARSE_HTML      protected int|string|array(string) compat_call_tag (    Parser.HTML p, string str, mixed... extra)
Roxen.git/server/base_server/roxenloader.pike:3700:   int dump( string file, program|void p )   {    // int t = gethrtime();    int res = low_dump(file, p);    // werror("dump(%O, %O): %.1fms\n", file, p, (gethrtime()-t)/1000.0);    return res;   }      object(Stdio.Stat)|array(int) da_Stat_type;   LocaleString da_String_type; + function orig_predef_describe_bt = predef::describe_backtrace; +    void do_main( int argc, array(string) argv )   {    array(string) hider = argv;    argv = 0;       catch (once_mode = (int)Getopt.find_option(hider + ({}), "o", "once"));      #ifdef GC_TRACE    trace (GC_TRACE, "gc");   #endif