"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/gmic.cpp" between
gmic_3.0.1.tar.gz and gmic_3.0.2.tar.gz

About: G’MIC (GREY’s Magic for Image Computing) is a framework for image processing. It provides several different user interfaces to convert/manipulate/filter/ visualize generic image datasets (usable standalone or as plug-in for GIMP and Krita).

gmic.cpp  (gmic_3.0.1):gmic.cpp  (gmic_3.0.2)
skipping to change at line 3362 skipping to change at line 3362
is_name_found = true; ind = l; break; is_name_found = true; ind = l; break;
} }
if (is_name_found) { if (is_name_found) {
__cvariables[ind].get_resize((unsigned int)(__cvariables[ind].width() + st d::strlen(name) - std::strlen(cname)), __cvariables[ind].get_resize((unsigned int)(__cvariables[ind].width() + st d::strlen(name) - std::strlen(cname)),
1,1,1,0,0,1).move_to(s_value); 1,1,1,0,0,1).move_to(s_value);
std::sprintf(s_value,"%c*store/%s",gmic_store,name); std::sprintf(s_value,"%c*store/%s",gmic_store,name);
} else s_value.assign(1,1,1,1,0); } else s_value.assign(1,1,1,1,0);
is_name_found = false; is_name_found = false;
} else if (!operation || operation=='=' || operation==':' || operation=='.' || operation==',') { } else if (!operation || operation=='=' || operation==':' || operation=='.' || operation==',') {
if (value) s_value.assign(value,(unsigned int)(std::strlen(value) + 1),1,1,1 ,true); if (value) s_value.assign(value,(unsigned int)(std::strlen(value) + 1),1,1,1 ,true);
else { s_value.assign(24); cimg_snprintf(s_value,s_value.width(),"%.17g",*pv alue); } else { s_value.assign(24); s_value._width = 1 + cimg_snprintf(s_value,s_valu e.width(),"%.17g",*pvalue); }
} else s_value.assign(24); // Arithmetic self-operator : value will be determi ned later } else s_value.assign(24); // Arithmetic self-operator : value will be determi ned later
// Check state of existing variable and update if it exists. // Check state of existing variable and update if it exists.
if (!operation) is_new_variable = true; if (!operation) is_new_variable = true;
else { else {
// Retrieve index of current definition. // Retrieve index of current definition.
for (int l = __variables.width() - 1; l>=lind; --l) if (!std::strcmp(__varia bles_names[l],name)) { for (int l = __variables.width() - 1; l>=lind; --l) if (!std::strcmp(__varia bles_names[l],name)) {
is_name_found = true; ind = l; break; is_name_found = true; ind = l; break;
} }
if (operation=='=' || operation==':') { if (operation=='=' || operation==':') {
 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)