Using the find tool
Needed to use the cscope tool
– required list of files
Couldn’t be bothered to RTFM. Should be header files be included in the cscope database?
– First example in  item (3) doesn’t help if both the ‘c’ and ‘h’ files are to be included.
– Second more complex example, last line gives clue.
– modified the regular expression in the option to: -name “*.[ch]”
Cscope tool ran without a hitch on the gnucash source.
– where is main?
– multiple hits from the cscope database on sources with filenames “test*.*”; annoying test programs for functions need to be removed from database
– needed to exclude the test files; same idea as example (3) in 
– => need to understand find
Deciphering what (3) does
– man find (yuck)
– the first few bits of  were useful, ignored the rest and went back to man and 
– what is an expression?
– expression = options + tests + actions
– -name pattern (won’t work for excluding directories?)
– -path pattern (use for inc/exc directories)
– -prune (ignore certain directories)
– ! (NOT)
– -o (OR)
– soln: -name ‘*.[ch]’ ! -name ‘test*.*’
This seemed to work, reduced the number of hits on main after rebuilding the cscope database. Surprised by a number of mains still in the database. Found the actual gnucash main. The other mains appeared to be test mains surround by #IFDEF something something something, conditional compile.