Lines Matching refs:npath_pos
41 char *npath, *npath_pos;
53 npath_pos = npath + strlen(npath);
60 npath_pos = npath + 1;
84 i_assert(npath_pos >= npath);
85 if ((npath_pos - npath) > 1) {
86 if (*(npath_pos-1) == '/')
87 npath_pos--;
88 for (; *(npath_pos-1) != '/'; npath_pos--);
92 i_assert(npath_pos >= npath);
93 if ((size_t)((npath_pos - npath) + seglen + 1) >= asize) {
94 ptrdiff_t npath_offset = npath_pos - npath;
97 npath_pos = npath + npath_offset;
101 i_assert(npath_pos > npath);
102 if (*(npath_pos-1) != '/') {
103 i_assert((size_t)((npath_pos - npath) + 1) < asize);
104 *(npath_pos++) = '/';
108 i_assert(npath_pos >= npath);
109 i_assert((size_t)((npath_pos - npath) + seglen) < asize);
110 memmove(npath_pos, p, seglen);
111 npath_pos += seglen;
116 *npath_pos = '\0';
143 i_assert(npath_pos >= npath);
144 if ((size_t)((npath_pos - npath) + espace + lsize) >= asize) {
145 ptrdiff_t npath_offset = npath_pos - npath;
149 npath_pos = npath + npath_offset;
154 i_assert(npath_pos >= npath);
155 i_assert((size_t)((npath_pos + 1 - npath) + ltlen) < asize);
156 memmove(npath_pos + 1, segend, ltlen);
161 npath_link = (npath_pos + 1) + ltlen;
163 i_assert(npath_link >= npath_pos);
190 i_assert(npath_pos >= npath);
191 if ((size_t)((npath_pos - npath) + espace + lsize) >= asize ||
193 ptrdiff_t npath_offset = npath_pos - npath;
197 npath_pos = npath + npath_offset;
204 i_assert(npath_pos >= npath);
205 i_assert((size_t)((npath_pos - npath) + 1 + tlen) < asize);
207 memcpy(npath_link + ret, npath_pos + 1, tlen);
219 npath_pos = npath + 1;
222 i_assert(npath_pos >= npath);
223 if ((npath_pos - npath) > 1) {
224 if (*(npath_pos-1) == '/')
225 npath_pos--;
226 for (; *(npath_pos-1) != '/'; npath_pos--);
241 i_assert(npath_pos >= npath);
242 i_assert((size_t)(npath_pos - npath) < asize);
245 if ((npath_pos - npath) > 1 && *(npath_pos-1) == '/')
246 npath_pos--;
247 *npath_pos = '\0';
249 t_buffer_alloc(npath_pos - npath + 1);