Branch: Tag:

1998-02-05

1998-02-05 00:59:28 by Johan Schön <js@opera.com>

Fixes for NT

Rev: server/base_server/config/describers.pike:1.53
Rev: server/base_server/config/low_describers.pike:1.20
Rev: server/base_server/configuration.pike:1.93
Rev: server/base_server/dummy_hosts.pike:1.4
Rev: server/base_server/mainconfig.pike:1.92
Rev: server/base_server/read_config.pike:1.19
Rev: server/base_server/roxen.pike:1.164
Rev: server/base_server/roxenloader.pike:1.56
Rev: server/config_actions/openports.pike:1.9
Rev: server/config_actions/problems.pike:1.11
Rev: server/config_actions/proc.pike:1.7
Rev: server/modules/graphics/graphic_text.pike:1.100
Rev: server/modules/tags/htmlparse.pike:1.75
Rev: server/protocols/http.pike:1.53
Rev: server/roxen-images/urtavla.ppm:1.6

1:   // This is a roxen module. (c) Informationsv√§varna AB 1996.    - constant cvs_version = "$Id: http.pike,v 1.52 1998/02/04 16:10:52 per Exp $"; + constant cvs_version = "$Id: http.pike,v 1.53 1998/02/05 00:59:26 js Exp $";   // HTTP protocol module.   #include <config.h>   private inherit "roxenlib";
10:   # define HRSEC(X) ((int)((X)*1000000))   # define SECHR(X) ((X)/(float)1000000)   #else - # define HRTIME() (time()) + # define HRTIME() (predef::time())   # define HRSEC(X) (X)   # define SECHR(X) ((float)(X))   #endif
101:      private void setup_pipe(int noend)   { + #ifndef __NT__   #if _DEBUG_HTTP_OBJECTS    my_state = 6;   #endif
114:    perror("REQUEST: Pipe setup.\n");   #endif   // pipe->output(my_fd); + #endif   }      void send(string|object what, int|void noend)   { -  + #ifndef __NT__   #if _DEBUG_HTTP_OBJECTS    my_state = 7;   #endif
129:   #endif    if(stringp(what)) pipe->write(what);    else pipe->input(what); + #else + #endif +  my_fd->write(objectp(what)?what->read():what);   }      string scan_for_query( string f )
1050:    if(head_string) send(head_string);    if(file->data) send(file->data);    if(file->file) send(file->file); + #ifndef __NT__    pipe->output(my_fd); -  +     pipe->set_done_callback( do_log, ({ pipe, file }) ); -  + #endif      #ifdef KEEP_CONNECTION_ALIVE    if(keep_alive)