Branch: Tag:

2001-05-30

2001-05-30 17:27:10 by Martin Nilsson <mani@lysator.liu.se>

Added a counter variable. It will never return the same value during a page parse pass.

Rev: server/etc/modules/Roxen.pmod:1.92

1:   // This is a roxen pike module. Copyright © 1999 - 2000, Roxen IS.   // - // $Id: Roxen.pmod,v 1.91 2001/05/22 20:41:37 nilsson Exp $ + // $Id: Roxen.pmod,v 1.92 2001/05/30 17:27:10 nilsson Exp $      #include <roxen.h>   #include <config.h>
2693:    case "dir":    array parts = c->id->not_query/"/";    return ENCODE_RXML_TEXT( parts[..sizeof(parts)-2]*"/"+"/", type); +  case "counter": +  return ENCODE_RXML_INT(c->id->misc->internal_counter++, type);    }    mixed val;    if(converter[var])