MCPcopy Index your code
hub / github.com/RsyncProject/rsync / implied_include_partial_string

Function implied_include_partial_string

exclude.c:354–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352static char *partial_string_buf = NULL;
353static int partial_string_len = 0;
354void implied_include_partial_string(const char *s_start, const char *s_end)
355{
356 partial_string_len = s_end - s_start;
357 if (partial_string_len <= 0 || partial_string_len >= MAXPATHLEN) { /* too-large should be impossible... */
358 partial_string_len = 0;
359 return;
360 }
361 if (!partial_string_buf)
362 partial_string_buf = new_array(char, MAXPATHLEN);
363 memcpy(partial_string_buf, s_start, partial_string_len);
364}
365
366void free_implied_include_partial_string()
367{

Callers 1

forward_filesfrom_dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected