pike.git
/
src
/
combine_path.h
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/combine_path.h:1:
/*
-
* $Id: combine_path.h,v 1.
8
2001/09/
24
16
:
51
:
28
grubba
Exp $
+
* $Id: combine_path.h,v 1.
9
2001/09/
25
03
:
13
:
23
hubbe
Exp $
* * Combine path template. * */ #undef IS_SEP #undef IS_ABS #undef IS_ROOT #undef F_COMBINE_PATH #undef APPEND_PATH
pike.git/src/combine_path.h:28:
static int find_absolute(PCHARP s) { int c0=INDEX_PCHARP(s,0); int c1=c0?INDEX_PCHARP(s,1):0; if(isalpha(c0) && c1==':' && IS_SEP(INDEX_PCHARP(s,2))) return 3; if(IS_SEP(c0) && IS_SEP(c1)) { int l;
-
for(l=2;
isalpha
(INDEX_PCHARP(s,l));l++);
+
for(l=2;
INDEX_PCHARP
(
s,l) && !IS_SEP(
INDEX_PCHARP(s,l));l++);
return l; } return 0; } #define IS_ABS(X) find_absolute((X)) #define IS_ROOT(X) ( IS_SEP( INDEX_PCHARP((X),0) )?1:0) #define APPEND_PATH append_path_nt #define F_COMBINE_PATH f_combine_path_nt