Branch: Tag:

2001-08-29

2001-08-29 21:28:25 by Martin Nilsson <mani@lysator.liu.se>

Fixing normalize_path documentation confusion.

Rev: lib/master.pike.in:1.167
Rev: src/modules/system/nt.c:1.40

1:   /* -*- Pike -*-    * -  * $Id: master.pike.in,v 1.166 2001/08/28 23:01:20 marcus Exp $ +  * $Id: master.pike.in,v 1.167 2001/08/29 21:28:03 nilsson Exp $    *    * Master-file for Pike.    *
343:   }      //! @appears normalize_path - string normalize_path( string X ) + //! Replaces "\" with "/" if runing on MS Windows. It is + //! adviced to use @[system.normalize_path] instead. + string normalize_path( string path )   {   #ifndef __NT__ -  return X; +  return path;   #else -  return replace(X,"\\","/"); +  return replace(path,"\\","/");   #endif   }