Roxen.git / server / modules / misc / pathinfo.pike

version» Context lines:

Roxen.git/server/modules/misc/pathinfo.pike:1:   // This is a roxen module. Copyright © 1998 - 2000, Roxen IS.      inherit "module";    - constant cvs_version = "$Id: pathinfo.pike,v 1.14 2000/06/19 16:32:30 grubba Exp $"; + constant cvs_version = "$Id: pathinfo.pike,v 1.15 2000/06/19 16:33:06 grubba Exp $";   constant thread_safe = 1;      #ifdef PATHINFO_DEBUG   # define PATHINFO_WERR(X) werror("PATHINFO: "+X+"\n");   #else   # define PATHINFO_WERR(X)   #endif      constant module_type = MODULE_LAST;   constant module_name = "Path info support";
Roxen.git/server/modules/misc/pathinfo.pike:55: Inside #if undefined(PATHINFO_LINEAR)
   if (st) {    if (st[1] >= 0) {    // Found a file!    id->misc->path_info = query[offsets[probe]..];    id->not_query = file;    PATHINFO_WERR(sprintf("Found: %O:%O",    id->not_query, id->misc->path_info));    return 1; // Go through id->handle_request() one more time...    }    PATHINFO_WERR(sprintf("Directory: %O", file)); -  /* Hm. Lets try this: */ -  id->misc->path_info = query[offsets[probe]+1..]; -  id->not_query = file+"/"; +     lo = probe + 1;    } else {    hi = probe - 1;    }    }   #else /* PATHINFO_LINEAR */    string pi = "";    while( (search( query[1..], "/" ) != -1) && strlen( query ) > 0 )    {    query = reverse(query);