"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libpromises/iteration.c" between
cfengine-3.12.5.tar.gz and cfengine-3.12.6.tar.gz

About: CFEngine is a configuration management system for configuring and maintaining Unix-like computers (using an own high level policy language). Community version. LTS (Long Term Support) release.

iteration.c  (cfengine-3.12.5):iteration.c  (cfengine-3.12.6)
skipping to change at line 1049 skipping to change at line 1049
iterctx->count, wheels_num, (ssize_t) i); iterctx->count, wheels_num, (ssize_t) i);
/* TODO if not done, then we are re-Put()ing variables in the EvalContect, /* TODO if not done, then we are re-Put()ing variables in the EvalContect,
* hopefully overwriting the previous values, but possibly not! */ * hopefully overwriting the previous values, but possibly not! */
} }
// Recompute `with` // Recompute `with`
for (size_t i = 0; i < SeqLength(iterctx->pp->conlist); i++) for (size_t i = 0; i < SeqLength(iterctx->pp->conlist); i++)
{ {
Constraint *cp = SeqAt(iterctx->pp->conlist, i); Constraint *cp = SeqAt(iterctx->pp->conlist, i);
if (StringSafeEqual(cp->lval, "with")) if (StringEqual(cp->lval, "with"))
{ {
Rval final = EvaluateFinalRval(evalctx, PromiseGetPolicy(iterctx->pp ), NULL, Rval final = EvaluateFinalRval(evalctx, PromiseGetPolicy(iterctx->pp ), NULL,
"this", cp->rval, false, iterctx->pp) ; "this", cp->rval, false, iterctx->pp) ;
if (final.type == RVAL_TYPE_SCALAR && !IsCf3VarString(RvalScalarValu e(final))) if (final.type == RVAL_TYPE_SCALAR && !IsCf3VarString(RvalScalarValu e(final)))
{ {
EvalContextVariablePutSpecial(evalctx, SPECIAL_SCOPE_THIS, EvalContextVariablePutSpecial(evalctx, SPECIAL_SCOPE_THIS,
"with", RvalScalarValue(final), "with", RvalScalarValue(final),
CF_DATA_TYPE_STRING, CF_DATA_TYPE_STRING,
"source=promise_iteration/with"); "source=promise_iteration/with");
} }
 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)