"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/gallium/drivers/swr/rasterizer/codegen/templates/gen_knobs.cpp" between
mesa-20.0.0-rc2.tar.xz and mesa-20.0.0-rc3.tar.xz

About: Mesa is an open-source implementation of the OpenGL specification - a system for rendering interactive 3D graphics (main library code). Release candidate.

gen_knobs.cpp  (mesa-20.0.0-rc2.tar.xz):gen_knobs.cpp  (mesa-20.0.0-rc3.tar.xz)
skipping to change at line 46 skipping to change at line 46
#include <${inc}> #include <${inc}>
% endfor % endfor
#include <regex> #include <regex>
#include <core/utils.h> #include <core/utils.h>
//======================================================== //========================================================
// Implementation // Implementation
//======================================================== //========================================================
void KnobBase::autoExpandEnvironmentVariables(std::string& text) void KnobBase::autoExpandEnvironmentVariables(std::string& text)
{ {
#if (__GNUC__) && (GCC_VERSION < 409000) #if (__GNUC__) && (GCC_VERSION < 40900)
// <regex> isn't implemented prior to gcc-4.9.0 // <regex> isn't implemented prior to gcc-4.9.0
// unix style variable replacement // unix style variable replacement
size_t start; size_t start;
while ((start = text.find("${'${'}")) != std::string::npos) while ((start = text.find("${'${'}")) != std::string::npos)
{ {
size_t end = text.find("}"); size_t end = text.find("}");
if (end == std::string::npos) if (end == std::string::npos)
break; break;
const std::string var = GetEnv(text.substr(start + 2, end - start - 2)); const std::string var = GetEnv(text.substr(start + 2, end - start - 2));
text.replace(start, end - start + 1, var); text.replace(start, end - start + 1, var);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

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