[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[augeas-devel] Fixes for variables in path expressions



These three patches address a couple of bugs and ashortcoming in the
variables for path expressions I posted yesterday.

It's quite common that C code wants to use a variable as an abbreviation
fora node, and if that node does not exist, it should just be
created. That's a cumbersome with the existing calls. The new call
aug_defnode does just that: after calling aug_defnode(aug, "x", "/foo/bar")
it is assured that /foo/bar exists.

Is it too confusing that there is a defvar and a defnode ? It's crystal
clear to me ;)

David



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]