A Command Interpreter with support for used defined commands, subsystems, macros, help and parameter parsing.

Files at this revision

API Documentation at this revision

Comitter:
wvd_vegt
Date:
Fri Feb 11 19:30:30 2011 +0000
Parent:
13:c18957fb06e4
Child:
15:d9680ef7b3f8
Commit message:
0.76

Changed in this revision

cmdb.cpp Show annotated file Show diff for this revision Revisions of this file
cmdb.h Show annotated file Show diff for this revision Revisions of this file
--- a/cmdb.cpp	Fri Feb 11 12:44:54 2011 +0000
+++ b/cmdb.cpp	Fri Feb 11 19:30:30 2011 +0000
@@ -13,16 +13,18 @@
             -Fixed a number of old Index/Id conflicts.
             -Got a working version. Much work to be done though.
             -Handle CID_HELP internally (like all system commands (IDLE/MACRO etc).
-            -Defined CID_LAST as Vector Size or Last Command Id fails.
+            -Handle subsystems internally.
             -Removed CMD_TBL_LEN.
             -CID_LAST is now defined as CID_HELP+1.
-            -Added Documentation.
+   11022011 -Added Documentation.
             -Added code to take number limits from the C++ Runtime instead of hard defined values.
             -Renamed id to cid in cmd.
             -Added MAX_LONG and MIN_LONG (long==int on mbed).
             -Removed cmdb_ prefix from members.
             -Tested Macro Support and added it to the Demo.
             -Added CID_COMMANDS.
+            -Fixed a small bug in parse.   
+            -v0.76      
    -------- --------------------------------------------------------------
    TODO's
    10022011 -Tweak and Review Documentation.
@@ -556,7 +558,7 @@
                 }
             }
         } else {
-            cid=CID_LAST;
+            //cid=CID_LAST;
         }
     }
 
@@ -583,6 +585,8 @@
         types.
         ------------------------------------------------*/
 
+        //printf("cmds[%d]=%d\r\n",ndx, cid);
+
         if (cid==CID_LAST) {
             print("Unknown command, type 'Help' for a list of available commands.\r\n");
         } else {
--- a/cmdb.h	Fri Feb 11 12:44:54 2011 +0000
+++ b/cmdb.h	Fri Feb 11 19:30:30 2011 +0000
@@ -380,7 +380,7 @@
 
 /** The Command Interpreter Version.
  */
-#define CMDB_VERSION     0.75
+#define CMDB_VERSION     0.76
 
 //------------------------------------------------------------------------------