Branch: Tag:

1998-11-19

1998-11-19 10:22:28 by Per Hedbor <ph@opera.com>

More changes

Rev: server/base_server/fonts.pike:1.26
Rev: server/base_server/roxen.pike:1.253
Rev: server/base_server/rxml.pike:1.2
Rev: server/modules/filesystems/cvsfs.pike:1.18
Rev: server/modules/graphics/graphic_text.pike:1.157

1:   /* -  * $Id: roxen.pike,v 1.252 1998/11/18 04:53:50 per Exp $ +  * $Id: roxen.pike,v 1.253 1998/11/19 10:22:23 per Exp $    *    * The Roxen Challenger main program.    *
8:      // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.252 1998/11/18 04:53:50 per Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.253 1998/11/19 10:22:23 per Exp $";         // Some headerfiles
26:   inherit "disk_cache";   inherit "language";    +  + // Prototypes for other parts of roxen. + class RequestID + { +  object conf; // Really Configuration, but that's sort of recursive. +  int time; +  string raw_url; +  int do_not_disconnect; +  mapping (string:string) variables; +  mapping (string:mixed) misc; +  mapping (string:string) cookies; +  mapping (string:string) request_headers; +  multiset(string) prestate; +  multiset(string) config; +  multiset(string) supports; +  multiset(string) pragma; +  array(string) client; +  array(string) referer; +  +  Stdio.File my_fd; +  string prot; +  string clientprot; +  string method; +  +  string realfile; +  string virtfile; +  string rest_query; +  string raw; +  string query; +  string not_query; +  string extra_extension; +  string data; +  string leftovers; +  array (int|string) auth; +  string rawauth; +  string realauth; +  string since; +  +  void send(string|object what, int|void len); +  string scan_for_query( string in ); +  void end(string|void s, int|void keepit); +  +  void ready_to_receive(); +  void send_result(mapping|void result); +  RequestID clone_me(); + }; +  +    // The datashuffler program   #if constant(spider.shuffle) && (defined(THREADS) || defined(__NT__))   constant pipe = (program)"smartpipe";
1118:    allmodules = decode_value(Stdio.read_bytes(".allmodules"));    };    add_constant("roxen", this_object()); +  add_constant("RequestID", RequestID);    add_constant("load", load);    (object)"color.pike";    fonts = (object)"fonts.pike";    Configuration = (program)"configuration"; -  +  add_constant("Configuration", Configuration);    call_out(post_create,1); //we just want to delay some things a little   }   
2464:    exit(-1); // Restart.   }    + void set_locale( string to ) + { +  if( to == "standard" ) +  SET_LOCALE( default_locale ); +  SET_LOCALE( Locale.Roxen[ to ] || default_locale ); + } +    // And then we have the main function, this is the oldest function in   // Roxen :) It has not changed all that much since Spider 2.0.   int main(int|void argc, array (string)|void argv)