/usr/share/doc/libmuparser-doc/html/misc/list_expr_var.cpp is in libmuparser-doc 2.2.3-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | void ListExprVar(const mu::ParserBase &parser)
{
varmap_type variables = parser.GetUsedVar();
if (!variables.size())
mu::console() << "Expression does not contain variables\n";
else
{
mu::console() << "Number: " << (int)variables.size() << "\n";
mu::varmap_type::const_iterator item = variables.begin();
for (; item!=variables.end(); ++item)
mu::console() << "Name: " << item->first << " Address: [0x" << item->second << "]\n";
}
}
|