2003-07-04 18:42:03 +03:00
|
|
|
#ifndef __SHARED_H
|
|
|
|
#define __SHARED_H
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include "util.hh"
|
|
|
|
|
|
|
|
|
2003-12-01 17:55:05 +02:00
|
|
|
/* These are not implemented here, but must be implemented by a
|
|
|
|
program linking against libmain. */
|
|
|
|
|
|
|
|
/* Main program. Called by main() after the ATerm library has been
|
|
|
|
initialised and some default arguments have been processed (and
|
|
|
|
removed from `args'). main() will catch all exceptions. */
|
2003-07-04 18:42:03 +03:00
|
|
|
void run(Strings args);
|
|
|
|
|
2003-12-01 17:55:05 +02:00
|
|
|
/* Should print a help message to stdout and return. */
|
|
|
|
void printHelp();
|
|
|
|
|
2005-02-01 14:36:25 +02:00
|
|
|
/* Ugh. No better place to put this. */
|
|
|
|
Path makeRootName(const Path & gcRoot, int & counter);
|
|
|
|
void printGCWarning();
|
|
|
|
|
2003-07-04 18:42:03 +03:00
|
|
|
|
|
|
|
extern string programId;
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* !__SHARED_H */
|