"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "include/common/ist.h" between
haproxy-2.0.13.tar.gz and haproxy-2.0.14.tar.gz

About: HAProxy is a TCP/HTTP reverse proxy which is particularly suited for high availability environments. LTS (Long-Term Support) release.

ist.h  (haproxy-2.0.13):ist.h  (haproxy-2.0.14)
skipping to change at line 711 skipping to change at line 711
for (pos = 0; pos < pat.len - 1; ) { for (pos = 0; pos < pat.len - 1; ) {
++pos; ++pos;
if (ret.ptr[pos - 1] != pat.ptr[pos]) if (ret.ptr[pos - 1] != pat.ptr[pos])
goto loop; goto loop;
} }
return ist2(ret.ptr - 1, ret.len + 1); return ist2(ret.ptr - 1, ret.len + 1);
} }
return ist2(NULL, 0); return ist2(NULL, 0);
} }
/*
* looks for the first occurence of <chr> in string <ist> and returns a shorter
* ist if char is found.
*/
static inline struct ist iststop(const struct ist ist, char chr)
{
size_t len = 0;
while (len++ < ist.len && ist.ptr[len - 1] != chr)
;
return ist2(ist.ptr, len - 1);
}
#endif #endif
 End of changes. 1 change blocks. 
0 lines changed or deleted 12 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)