Lines Matching refs:source

107 static bool countcheck(const char *func, int line, const char *source)
109 /* if source is NULL, then the call is made internally and this check
111 if(memlimit && source) {
115 source, line, func);
118 source, line, func);
133 int line, const char *source)
140 if(countcheck("malloc", line, source))
151 if(source)
153 source, line, wantedsize,
160 int line, const char *source)
168 if(countcheck("calloc", line, source))
179 if(source)
181 source, line, wanted_elements, wanted_size,
188 int line, const char *source)
195 if(countcheck("strdup", line, source))
204 if(source)
206 source, line, (const void *)str, len, (const void *)mem);
213 int line, const char *source)
220 if(countcheck("wcsdup", line, source))
230 if(source)
232 source, line, (void *)str, bsiz, (void *)mem);
241 int line, const char *source)
249 if(countcheck("realloc", line, source))
266 if(source)
268 source, line, (void *)ptr, wantedsize,
279 void curl_dbg_free(void *ptr, int line, const char *source)
300 if(source && ptr)
301 curl_dbg_log("MEM %s:%d free(%p)\n", source, line, (void *)ptr);
305 int line, const char *source)
309 if(countcheck("socket", line, source))
314 if(source && (sockfd != CURL_SOCKET_BAD))
316 source, line, sockfd);
324 const char *source)
327 if(countcheck("send", line, source))
330 if(source)
332 source, line, (unsigned long)len, (long)rc);
338 const char *source)
341 if(countcheck("recv", line, source))
344 if(source)
346 source, line, (unsigned long)len, (long)rc);
353 int line, const char *source)
357 if(source && (0 == res))
360 source, line, socket_vector[0], socket_vector[1]);
367 int line, const char *source)
374 if(source && (sockfd != CURL_SOCKET_BAD))
376 source, line, sockfd);
382 void curl_dbg_mark_sclose(curl_socket_t sockfd, int line, const char *source)
384 if(source)
386 source, line, sockfd);
390 int curl_dbg_sclose(curl_socket_t sockfd, int line, const char *source)
393 curl_dbg_mark_sclose(sockfd, line, source);
398 int line, const char *source)
402 if(source)
404 source, line, file, mode, (void *)res);
410 int line, const char *source)
413 if(source)
415 source, line, filedes, mode, (void *)res);
419 int curl_dbg_fclose(FILE *file, int line, const char *source)
425 if(source)
427 source, line, (void *)file);