shows other function calls besides zeros. It does miss a few cases
because of nested literal matrices. But it can't distinguish between
function calls and variables, so that some matches to the given REGEXP
could be valid as written. It's also impossible to distinguish
between function calls and variable indexing. This makes automatic
dependency generation difficult. Is there an unused symbol that could
be used to distinguish variable indexing from function calls? Does
anyone else want such a feature?
This will print a list of all the functions as they are checked and
tell you which functions pass or fail the test.
Thanks to R. D. Auchterlounie <[hidden email]> for writing the
initial version of this.
I've used it to find and remove all dependencies on
whitespace_in_literal_matrix in my sources. I'll be using some
variant of it to check for other similar problems, and it should
eventually end up in Octave's test suite so that these kinds of
problems don't reappear in the future.