Add C++ methods for accessing binary name etc.
- Add a ProgramInfo class that can be used to access global information
about binary name etc. Move some path manipulation code from
CommandLineModuleManager to the new class, resolving a TODO item.
- Make initialization methods of this class also call the relevant
methods in statutil.h.
- Call the new initialization methods in unit tests and in g_ana.
- Use the new method for accessing program names in C++ code.
- Fix ShortProgram() such that it does not segfault if
set_program_name() has not been called (not needed after the above
changes, but still better this way).
- Add statutil.c methods that use global storage to valgrind suppression
list.
Change-Id: I74c906aa5188d2dc4f0e1f6edab89e36393724f3
13 files changed: