pike.git / src / combine_path.h

version» Context lines:

pike.git/src/combine_path.h:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: combine_path.h,v 1.11 2002/10/11 01:39:30 nilsson Exp $ + || $Id: combine_path.h,v 1.12 2003/06/11 23:02:07 nilsson Exp $   */      /*    * Combine path template.    *    */      #undef IS_SEP   #undef IS_ABS   #undef IS_ROOT
pike.git/src/combine_path.h:52:   #define APPEND_PATH append_path_nt   #define F_COMBINE_PATH f_combine_path_nt      #endif /* NT_COMBINE_PATH */      static void APPEND_PATH(struct string_builder *s,    PCHARP path,    size_t len)   {    size_t from=0; -  int tmp; -  int abs=0; +  int tmp, abs;       /* First, check if path is absolute,    * if so ignore anything already in 's'    */    abs=IS_ABS(MKPCHARP_STR(s->s));    if((tmp=IS_ABS(path)))    {    s->s->len=0;    s->known_shift=0;    string_builder_append(s, path, tmp);