diff options
| author | bloodstalker <thabogre@gmail.com> | 2017-05-06 18:11:27 +0000 | 
|---|---|---|
| committer | bloodstalker <thabogre@gmail.com> | 2017-05-06 18:11:27 +0000 | 
| commit | 34eaad54dfa8b2499a955aa64b057b0ebaf56461 (patch) | |
| tree | f116b14bd61a85aed19f3ef04078279c4c294df8 | |
| parent | added inital support for auto translation of function declarations (diff) | |
| download | mutator-34eaad54dfa8b2499a955aa64b057b0ebaf56461.tar.gz mutator-34eaad54dfa8b2499a955aa64b057b0ebaf56461.zip | |
added a help structure along with minor additions/changes
| -rw-r--r-- | bruiser/bruiser.h | 25 | 
1 files changed, 25 insertions, 0 deletions
| diff --git a/bruiser/bruiser.h b/bruiser/bruiser.h index 7d32da9..cdb5141 100644 --- a/bruiser/bruiser.h +++ b/bruiser/bruiser.h @@ -72,6 +72,27 @@ namespace bruiser    enum class M0_ERR {M0_ERROR_CODES};  #undef X  /**********************************************************************************************************************/ +struct help +{ +  std::string name; +  std::string proto; +  std::string descr; +  std::string protoprefix; +  std::string retval; +}; + +help CMDHelp[] ={ +  {"help", "", "display general help", "", ""}, +  {"quit", "", "quit bruiser", "", ""}, +  {"exit", "", "quit bruiser", "", ""}, +  {"m0", "", "bruiser reads the report generated by mutator-lvl0", "", ""}, +  {"hijack", "hijack main", "runs a specific matcher that replaces the main with a new main", "", ""}, +  {"clear", "", "clears the terminal", "", ""}, +  {"shell", "", "opens up a bash shell inside bruiser", "", ""}, +  {"history", "", "prints bruiser's history", "", ""}, +  {"!", "", "prints the command from history", "", ""} +}; +/**********************************************************************************************************************/  /**   * @brief This class handles the logging for bruiser.   */ @@ -169,7 +190,11 @@ class SearchM0      void Debug(void)       { +      if (!RootPointer->NoChildren()) +      { +        const XMLElement* XMLE [[maybe_unused]] = RootPointer->FirstChildElement(); +      }      }    private: | 
