Branch: Tag:

1998-04-21

1998-04-21 19:07:29 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Some COMPAT changes.

Rev: server/base_server/roxen.pike:1.190

1: - constant cvs_version = "$Id: roxen.pike,v 1.189 1998/04/15 15:37:38 grubba Exp $"; + constant cvs_version = "$Id: roxen.pike,v 1.190 1998/04/21 19:07:29 grubba Exp $";   #define IN_ROXEN   #include <roxen.h>   #include <config.h>
234:      void threaded_handle(function f, mixed ... args)   { +  // trace(100);    handle_queue->write(({f, args }));   }   
805:   // to the configuration object. The functions will still be here for   // compatibility for a while, though.    + #ifndef NO_COMPAT +    public string *userlist(void|object id)   { -  if(id) current_configuration = id->conf; -  if(current_configuration && current_configuration->auth_module) -  return current_configuration->auth_module->userlist(); +  object conf; +  +  if(id) { +  conf = current_configuration = id->conf; +  } else { +  // Hopefully this case never occurs. +  conf = current_configuration; +  } +  if(conf && conf->auth_module) +  return conf->auth_module->userlist();    return 0;   }      public string *user_from_uid(int u, void|object id)   { -  if(id) current_configuration = id->conf; -  if(current_configuration && current_configuration->auth_module) -  return current_configuration->auth_module->user_from_uid(u); +  object conf; +  if(id) { +  conf = current_configuration = id->conf; +  } else { +  // Hopefully this case never occurs. +  conf = current_configuration;    } -  +  if(conf && conf->auth_module) +  return conf->auth_module->user_from_uid(u); + }      public string last_modified_by(object file, object id)   {
834:    return "A. Nonymous";   }    + #endif /* !NO_COMPAT */ +    // FIXME   private object find_configuration_for(object bar)   {
884:    return 0;   }    + #ifndef NO_COMPAT +    #define COMPAT_ALIAS(X) mixed X(string file, object id){return id->conf->X(file,id);}      COMPAT_ALIAS(find_dir);
903:    return id->conf->try_get_file(s,id,status,nocache);   }    + #endif /* !NO_COMPAT */ +    int config_ports_changed = 0;   // Called from the configuration interface.   string check_variable(string name, string value)
2013:    MD_PERROR((" compilation failed"));    throw("Compilation failed.\n");    } -  +     // Set the module-filename, so that create in the    // new object can get it.    roxen->last_module_name = file;