Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/aunit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Setup
run: |
cd ..
git clone https://github.com/bxparks/UnixHostDuino
git clone https://github.com/bxparks/EpoxyDuino
git clone https://github.com/bxparks/AUnit
git clone https://github.com/bxparks/AceCommon
git clone https://github.com/bxparks/AceRoutine
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Changelog

* Unreleased
* 0.4.1 (2021-01-22)
* Convert `SHIFT_ARGC_ARGV()` macro in `src/cli/CommandHandler.h` to
an inlined static function `CommandHandler::shiftArgcArgv()` using
references. I forgot that I was programming in C++ when I created the
macro. Add `SHIFT_ARGC_ARGV()` function for backwards compatibility.
* Update UnixHostDuino 0.4 to EpoxyDuino 0.5.
* No functional change in this release.
* 0.4 (2020-12-09)
* update `AceUtilsCrcEeprom.h`
* Replace FastCRC with AceCRC library for a reduction of 4-5 kB of flash
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ AceTime, AceRoutine, etc) or third party libraries.
* Depends on:
* (none)

**Version**: 0.4 (2020-12-09)
**Version**: 0.4.1 (2021-01-22)

**Changelog**: [CHANGELOG.md](CHANGELOG.md)

Expand Down Expand Up @@ -115,7 +115,7 @@ It should work with [PlatformIO](https://platformio.org/) but I have
not tested it.

Many utilities work on Linux or MacOS (using both g++ and clang++ compilers)
using the [UnixHostDuino](https://github.com/bxparks/UnixHostDuino) emulation
using the [EpoxyDuino](https://github.com/bxparks/EpoxyDuino) emulation
layer.

### Operating System
Expand Down
2 changes: 1 addition & 1 deletion docs/doxygen.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ PROJECT_NAME = "AceUtils"
# could be handy for archiving the generated documentation or if some version
# control system is used.

PROJECT_NUMBER = 0.4
PROJECT_NUMBER = 0.4.1

# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
Expand Down
2 changes: 1 addition & 1 deletion docs/html/AceUtilsCli_8h_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AceUtils
&#160;<span id="projectnumber">0.4</span>
&#160;<span id="projectnumber">0.4.1</span>
</div>
<div id="projectbrief">Useful Arduino utilties which are too small as separate libraries, but complex enough to be shared among multiple projects, and often have external dependencies to other libraries.</div>
</td>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/AceUtilsCrcEeprom_8h_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AceUtils
&#160;<span id="projectnumber">0.4</span>
&#160;<span id="projectnumber">0.4.1</span>
</div>
<div id="projectbrief">Useful Arduino utilties which are too small as separate libraries, but complex enough to be shared among multiple projects, and often have external dependencies to other libraries.</div>
</td>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/AceUtilsModeGroup_8h_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AceUtils
&#160;<span id="projectnumber">0.4</span>
&#160;<span id="projectnumber">0.4.1</span>
</div>
<div id="projectbrief">Useful Arduino utilties which are too small as separate libraries, but complex enough to be shared among multiple projects, and often have external dependencies to other libraries.</div>
</td>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/AceUtils_8h_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AceUtils
&#160;<span id="projectnumber">0.4</span>
&#160;<span id="projectnumber">0.4.1</span>
</div>
<div id="projectbrief">Useful Arduino utilties which are too small as separate libraries, but complex enough to be shared among multiple projects, and often have external dependencies to other libraries.</div>
</td>
Expand Down
8 changes: 4 additions & 4 deletions docs/html/CommandDispatcher_8cpp_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AceUtils
&#160;<span id="projectnumber">0.4</span>
&#160;<span id="projectnumber">0.4.1</span>
</div>
<div id="projectbrief">Useful Arduino utilties which are too small as separate libraries, but complex enough to be shared among multiple projects, and often have external dependencies to other libraries.</div>
</td>
Expand Down Expand Up @@ -207,12 +207,12 @@
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160;} <span class="comment">// cli</span></div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160;} <span class="comment">// ace_utils</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="aclassace__utils_1_1cli_1_1CommandHandler_html_a4a2832aa6b28f490661214a1cf9ab4b6"><div class="ttname"><a href="classace__utils_1_1cli_1_1CommandHandler.html#a4a2832aa6b28f490661214a1cf9ab4b6">ace_utils::cli::CommandHandler::getName</a></div><div class="ttdeci">ace_common::FCString getName() const</div><div class="ttdoc">Return the name of the command.</div><div class="ttdef"><b>Definition:</b> <a href="CommandHandler_8h_source.html#l00068">CommandHandler.h:68</a></div></div>
<div class="ttc" id="aclassace__utils_1_1cli_1_1CommandHandler_html"><div class="ttname"><a href="classace__utils_1_1cli_1_1CommandHandler.html">ace_utils::cli::CommandHandler</a></div><div class="ttdoc">Signature for a command handler.</div><div class="ttdef"><b>Definition:</b> <a href="CommandHandler_8h_source.html#l00047">CommandHandler.h:47</a></div></div>
<div class="ttc" id="aclassace__utils_1_1cli_1_1CommandHandler_html_a4a2832aa6b28f490661214a1cf9ab4b6"><div class="ttname"><a href="classace__utils_1_1cli_1_1CommandHandler.html#a4a2832aa6b28f490661214a1cf9ab4b6">ace_utils::cli::CommandHandler::getName</a></div><div class="ttdeci">ace_common::FCString getName() const</div><div class="ttdoc">Return the name of the command.</div><div class="ttdef"><b>Definition:</b> <a href="CommandHandler_8h_source.html#l00059">CommandHandler.h:59</a></div></div>
<div class="ttc" id="aclassace__utils_1_1cli_1_1CommandHandler_html"><div class="ttname"><a href="classace__utils_1_1cli_1_1CommandHandler.html">ace_utils::cli::CommandHandler</a></div><div class="ttdoc">Signature for a command handler.</div><div class="ttdef"><b>Definition:</b> <a href="CommandHandler_8h_source.html#l00038">CommandHandler.h:38</a></div></div>
<div class="ttc" id="aclassace__utils_1_1cli_1_1CommandDispatcher_html_a97631715e21c262544a228377688d593"><div class="ttname"><a href="classace__utils_1_1cli_1_1CommandDispatcher.html#a97631715e21c262544a228377688d593">ace_utils::cli::CommandDispatcher::findAndRunCommand</a></div><div class="ttdeci">void findAndRunCommand(const char *cmd, int argc, const char *const *argv) const</div><div class="ttdoc">Find and run the given command.</div><div class="ttdef"><b>Definition:</b> <a href="CommandDispatcher_8cpp_source.html#l00122">CommandDispatcher.cpp:122</a></div></div>
<div class="ttc" id="aclassace__utils_1_1cli_1_1CommandDispatcher_html_ae20ae336f3740b1faceecdf0babfa55e"><div class="ttname"><a href="classace__utils_1_1cli_1_1CommandDispatcher.html#ae20ae336f3740b1faceecdf0babfa55e">ace_utils::cli::CommandDispatcher::runCommand</a></div><div class="ttdeci">void runCommand(char *line) const</div><div class="ttdoc">Tokenize the given line and run the command handler.</div><div class="ttdef"><b>Definition:</b> <a href="CommandDispatcher_8cpp_source.html#l00107">CommandDispatcher.cpp:107</a></div></div>
<div class="ttc" id="aclassace__utils_1_1cli_1_1CommandDispatcher_html_ac9a7dea42f2dc74729e524e71c5b9d54"><div class="ttname"><a href="classace__utils_1_1cli_1_1CommandDispatcher.html#ac9a7dea42f2dc74729e524e71c5b9d54">ace_utils::cli::CommandDispatcher::printHelp</a></div><div class="ttdeci">static void printHelp(Print &amp;printer, const CommandHandler *command)</div><div class="ttdoc">Print help string for the given command.</div><div class="ttdef"><b>Definition:</b> <a href="CommandDispatcher_8cpp_source.html#l00095">CommandDispatcher.cpp:95</a></div></div>
<div class="ttc" id="aclassace__utils_1_1cli_1_1CommandHandler_html_a44b81af723307175744e02a0517b52b3"><div class="ttname"><a href="classace__utils_1_1cli_1_1CommandHandler.html#a44b81af723307175744e02a0517b52b3">ace_utils::cli::CommandHandler::getHelpString</a></div><div class="ttdeci">ace_common::FCString getHelpString() const</div><div class="ttdoc">Return the help string of the command.</div><div class="ttdef"><b>Definition:</b> <a href="CommandHandler_8h_source.html#l00071">CommandHandler.h:71</a></div></div>
<div class="ttc" id="aclassace__utils_1_1cli_1_1CommandHandler_html_a44b81af723307175744e02a0517b52b3"><div class="ttname"><a href="classace__utils_1_1cli_1_1CommandHandler.html#a44b81af723307175744e02a0517b52b3">ace_utils::cli::CommandHandler::getHelpString</a></div><div class="ttdeci">ace_common::FCString getHelpString() const</div><div class="ttdoc">Return the help string of the command.</div><div class="ttdef"><b>Definition:</b> <a href="CommandHandler_8h_source.html#l00062">CommandHandler.h:62</a></div></div>
<div class="ttc" id="aclassace__utils_1_1cli_1_1CommandDispatcher_html_af91ec1340b0b62e43dab869316cf9b22"><div class="ttname"><a href="classace__utils_1_1cli_1_1CommandDispatcher.html#af91ec1340b0b62e43dab869316cf9b22">ace_utils::cli::CommandDispatcher::helpCommandHandler</a></div><div class="ttdeci">void helpCommandHandler(Print &amp;printer, int argc, const char *const *argv) const</div><div class="ttdoc">Handle the 'help' command.</div><div class="ttdef"><b>Definition:</b> <a href="CommandDispatcher_8cpp_source.html#l00055">CommandDispatcher.cpp:55</a></div></div>
<div class="ttc" id="aclassace__utils_1_1cli_1_1CommandDispatcher_html_a517055113aecc022baed1fa53742ee7c"><div class="ttname"><a href="classace__utils_1_1cli_1_1CommandDispatcher.html#a517055113aecc022baed1fa53742ee7c">ace_utils::cli::CommandDispatcher::helpAll</a></div><div class="ttdeci">void helpAll(Print &amp;printer) const</div><div class="ttdoc">Print help on all commands.</div><div class="ttdef"><b>Definition:</b> <a href="CommandDispatcher_8cpp_source.html#l00077">CommandDispatcher.cpp:77</a></div></div>
<div class="ttc" id="aclassace__utils_1_1cli_1_1CommandHandler_html_a82e846fdd080bfb36b13a1f903cb7def"><div class="ttname"><a href="classace__utils_1_1cli_1_1CommandHandler.html#a82e846fdd080bfb36b13a1f903cb7def">ace_utils::cli::CommandHandler::run</a></div><div class="ttdeci">virtual void run(Print &amp;printer, int argc, const char *const *argv) const =0</div><div class="ttdoc">Run the command.</div></div>
Expand Down
6 changes: 3 additions & 3 deletions docs/html/CommandDispatcher_8h_source.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">AceUtils
&#160;<span id="projectnumber">0.4</span>
&#160;<span id="projectnumber">0.4.1</span>
</div>
<div id="projectbrief">Useful Arduino utilties which are too small as separate libraries, but complex enough to be shared among multiple projects, and often have external dependencies to other libraries.</div>
</td>
Expand Down Expand Up @@ -210,8 +210,8 @@
<div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160;<span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="astructace__utils_1_1cli_1_1InputLine_html"><div class="ttname"><a href="structace__utils_1_1cli_1_1InputLine.html">ace_utils::cli::InputLine</a></div><div class="ttdoc">Message sent from StreamLineReader to CommandDispatcher coroutines through Channel&lt;InputLine&gt; channel...</div><div class="ttdef"><b>Definition:</b> <a href="InputLine_8h_source.html#l00036">InputLine.h:36</a></div></div>
<div class="ttc" id="aclassace__utils_1_1cli_1_1CommandHandler_html_a4a2832aa6b28f490661214a1cf9ab4b6"><div class="ttname"><a href="classace__utils_1_1cli_1_1CommandHandler.html#a4a2832aa6b28f490661214a1cf9ab4b6">ace_utils::cli::CommandHandler::getName</a></div><div class="ttdeci">ace_common::FCString getName() const</div><div class="ttdoc">Return the name of the command.</div><div class="ttdef"><b>Definition:</b> <a href="CommandHandler_8h_source.html#l00068">CommandHandler.h:68</a></div></div>
<div class="ttc" id="aclassace__utils_1_1cli_1_1CommandHandler_html"><div class="ttname"><a href="classace__utils_1_1cli_1_1CommandHandler.html">ace_utils::cli::CommandHandler</a></div><div class="ttdoc">Signature for a command handler.</div><div class="ttdef"><b>Definition:</b> <a href="CommandHandler_8h_source.html#l00047">CommandHandler.h:47</a></div></div>
<div class="ttc" id="aclassace__utils_1_1cli_1_1CommandHandler_html_a4a2832aa6b28f490661214a1cf9ab4b6"><div class="ttname"><a href="classace__utils_1_1cli_1_1CommandHandler.html#a4a2832aa6b28f490661214a1cf9ab4b6">ace_utils::cli::CommandHandler::getName</a></div><div class="ttdeci">ace_common::FCString getName() const</div><div class="ttdoc">Return the name of the command.</div><div class="ttdef"><b>Definition:</b> <a href="CommandHandler_8h_source.html#l00059">CommandHandler.h:59</a></div></div>
<div class="ttc" id="aclassace__utils_1_1cli_1_1CommandHandler_html"><div class="ttname"><a href="classace__utils_1_1cli_1_1CommandHandler.html">ace_utils::cli::CommandHandler</a></div><div class="ttdoc">Signature for a command handler.</div><div class="ttdef"><b>Definition:</b> <a href="CommandHandler_8h_source.html#l00038">CommandHandler.h:38</a></div></div>
<div class="ttc" id="aclassace__utils_1_1cli_1_1CommandDispatcher_html_a97631715e21c262544a228377688d593"><div class="ttname"><a href="classace__utils_1_1cli_1_1CommandDispatcher.html#a97631715e21c262544a228377688d593">ace_utils::cli::CommandDispatcher::findAndRunCommand</a></div><div class="ttdeci">void findAndRunCommand(const char *cmd, int argc, const char *const *argv) const</div><div class="ttdoc">Find and run the given command.</div><div class="ttdef"><b>Definition:</b> <a href="CommandDispatcher_8cpp_source.html#l00122">CommandDispatcher.cpp:122</a></div></div>
<div class="ttc" id="aclassace__utils_1_1cli_1_1CommandDispatcher_html_ae20ae336f3740b1faceecdf0babfa55e"><div class="ttname"><a href="classace__utils_1_1cli_1_1CommandDispatcher.html#ae20ae336f3740b1faceecdf0babfa55e">ace_utils::cli::CommandDispatcher::runCommand</a></div><div class="ttdeci">void runCommand(char *line) const</div><div class="ttdoc">Tokenize the given line and run the command handler.</div><div class="ttdef"><b>Definition:</b> <a href="CommandDispatcher_8cpp_source.html#l00107">CommandDispatcher.cpp:107</a></div></div>
<div class="ttc" id="aclassace__utils_1_1cli_1_1CommandDispatcher_html_ac9a7dea42f2dc74729e524e71c5b9d54"><div class="ttname"><a href="classace__utils_1_1cli_1_1CommandDispatcher.html#ac9a7dea42f2dc74729e524e71c5b9d54">ace_utils::cli::CommandDispatcher::printHelp</a></div><div class="ttdeci">static void printHelp(Print &amp;printer, const CommandHandler *command)</div><div class="ttdoc">Print help string for the given command.</div><div class="ttdef"><b>Definition:</b> <a href="CommandDispatcher_8cpp_source.html#l00095">CommandDispatcher.cpp:95</a></div></div>
Expand Down
Loading