Skip to content
Snippets Groups Projects
Commit ab733ccb authored by toole1's avatar toole1
Browse files

jack

git-svn-id: https://subversion.cs.illinois.edu/svn/cs225@3371 6fbd10e7-183d-0410-a318-cb416676e4f2
parent 2f72756d
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,6 @@ namespace monad ...@@ -24,7 +24,6 @@ namespace monad
{ {
void find_base_dir(const char * argv0); void find_base_dir(const char * argv0);
void printHelp(); void printHelp();
void printInfo();
void processArgs(int argc, char ** argv); void processArgs(int argc, char ** argv);
void copyRequiredFiles(); void copyRequiredFiles();
void getLibs(const vector<string> & libs); void getLibs(const vector<string> & libs);
...@@ -57,12 +56,6 @@ bool optimize = false; ...@@ -57,12 +56,6 @@ bool optimize = false;
#endif #endif
} }
namespace version {
const char * official_name = "CS 225 Monad";
const char * version_name = "awakening";
const char * date = "15 July 2011";
}
} }
string kyleGetDate() { string kyleGetDate() {
...@@ -311,18 +304,6 @@ void monad::printHelp() ...@@ -311,18 +304,6 @@ void monad::printHelp()
} }
void monad::printInfo()
{
cout << version::official_name << endl
<< "Version " << version::version_name << endl
<< "Released " << version::date << endl
<< "Developed by Jack Toole Spring/Fall 2011" << endl
<< "Copyright 2011 Jack Toole" << endl
<< "Full rights granted to Jack Toole. Rights to use and modify granted to" << endl
<< "University of Illinois Urbana-Champaign Computer Science Data Structures" << endl
<< "instructors and course staff" << endl;
}
void monad::copyRequiredFiles() void monad::copyRequiredFiles()
{ {
......
...@@ -10,8 +10,29 @@ using std::endl; ...@@ -10,8 +10,29 @@ using std::endl;
namespace monad_shared namespace monad_shared
{ {
namespace version
{
const char * official_name = "CS 225 Monad";
const char * version_name = "awakening";
const char * date = "15 July 2011";
}
const char * unit_test::pass_string = "~~PASSED~~"; const char * unit_test::pass_string = "~~PASSED~~";
void printInfo()
{
cout << version::official_name << endl
<< "Version " << version::version_name << endl
<< "Released " << version::date << endl
<< "Developed by Jack Toole Spring/Fall 2011" << endl
<< "Copyright 2011 Jack Toole" << endl
<< "Full rights granted to Jack Toole. Rights to use and modify granted to" << endl
<< "University of Illinois Urbana-Champaign Computer Science Data Structures" << endl
<< "instructors and course staff" << endl;
}
namespace output namespace output
{ {
...@@ -114,7 +135,6 @@ void detailed_info(const unit_test & curr_test) ...@@ -114,7 +135,6 @@ void detailed_info(const unit_test & curr_test)
cout << endl; cout << endl;
} }
} // namespace output } // namespace output
} // namespace monad_shared } // namespace monad_shared
...@@ -6,6 +6,16 @@ ...@@ -6,6 +6,16 @@
namespace monad_shared namespace monad_shared
{ {
namespace version
{
extern const char * official_name;
extern const char * version_name;
extern const char * date;
}
void printInfo();
struct unit_test struct unit_test
{ {
typedef std::string return_type; typedef std::string return_type;
......
...@@ -671,18 +671,6 @@ long UnitTestContainer::end_timeout() ...@@ -671,18 +671,6 @@ long UnitTestContainer::end_timeout()
} }
void RunTests::printInfo()
{
cout << "CS 225 RunTests" << endl
<< "Version 1.0 : 2 February 2011" << endl
<< "Developed by Jack Toole Spring 2011" << endl
<< "Copyright 2011 Jack Toole" << endl
<< "Full rights granted to Jack Toole. Rights to use and modify granted to" << endl
<< "University of Illinois Urbana-Champaign Computer Science Data Structures" << endl
<< "instructors and course staff" << endl;
}
UnitTestContainer::UnitTestContainer(unit_test & _test, RunTimeEnvironment & env) UnitTestContainer::UnitTestContainer(unit_test & _test, RunTimeEnvironment & env)
: environment(env), test(_test) { } : environment(env), test(_test) { }
......
...@@ -91,7 +91,6 @@ namespace proxy ...@@ -91,7 +91,6 @@ namespace proxy
private: private:
void redirect_glibc_to_stderr(); void redirect_glibc_to_stderr();
void process_args(int argc, char ** argv); void process_args(int argc, char ** argv);
void printInfo();
protected: protected:
int32_t execute_by_mode(); int32_t execute_by_mode();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment