MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / StringVector_add

Function StringVector_add

Tools/ToolsBootstrap.c:407–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

405 while (str && *str) {
406 hash ^= (unsigned char)*str++;
407 hash *= 1099511628211ULL;
408 }
409 hash ^= 0xFFU;
410 hash *= 1099511628211ULL;
411 return hash;
412}
413
414char* buildWindowsToolOutputDir(BootloaderArgs* args, const char* toolCpp) {
415 const char* cacheBase = getenv("SC_BUILD_TOOL_CACHE_DIR");
416 if (!cacheBase || !cacheBase[0]) cacheBase = getenv("LOCALAPPDATA");
417 if (!cacheBase || !cacheBase[0]) cacheBase = getenv("TEMP");
418 if (!cacheBase || !cacheBase[0]) {
419 return Path_join(args->buildDir, "_Tools");
420 }
421
422 unsigned long long hash = String_hashFnv1a(args->projectDir ? args->projectDir : args->libraryDir);
423 hash = String_hashCombine(hash, args->buildDir);
424 hash = String_hashCombine(hash, args->toolName);

Callers 8

CommandLine_argFunction · 0.85
CommandLine_argQuotedFunction · 0.85
parseJsonDependenciesFunction · 0.85
parseMakeDependenciesFunction · 0.85
needsRebuildToolsFunction · 0.85
needsRebuildToolObjFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected