pike.git / lib / master.pike.in

version» Context lines:

pike.git/lib/master.pike.in:1:   /* -*- Pike -*-    * -  * $Id: master.pike.in,v 1.156 2003/04/01 10:53:02 mast Exp $ +  * $Id: master.pike.in,v 1.157 2003/04/10 16:05:45 mast Exp $    *    * Master-file for Pike.    *    * Based on master.pike 1.67.    */      // Some configurable parameters useful for debugging      #pike __REAL_VERSION__   #define PIKE_AUTORELOAD
pike.git/lib/master.pike.in:92:   //! @returns   //! Returns 1 if the path is absolute, 0 otherwise.   int is_absolute_path(string p)   {   #ifdef __NT__    p=replace(p,"\\","/");    if(sscanf(p,"%[a-zA-Z]:%*c",string s)==2 && sizeof(s)==1)    return 1;   #define IS_ABSOLUTE_PATH is_absolute_path   #else - #define IS_ABSOLUTE_PATH(X) ((X)[0]=='/') + #define IS_ABSOLUTE_PATH(X) has_prefix((X),"/")   #endif -  return p[0]=='/'; +  return has_prefix(p,"/");   }      //! @global   //! Split a path @[p] into its components.   //!   //! This function divides a path into its components. This might seem like   //! it could be done by dividing the string on <tt>"/"</tt>, but that will   //! not work on some operating systems.   //!   array(string) explode_path(string p)