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 12:44:54 2011 +0000
Parent:
12:2bfd23c01198
Child:
14:c652ce068f6c
Commit message:
0.75

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:30:34 2011 +0000
+++ b/cmdb.cpp	Fri Feb 11 12:44:54 2011 +0000
@@ -51,7 +51,7 @@
 
     subsystem = -1;
 
-    callback = callback;
+    user_callback = callback;
 
     init(true);
 }
@@ -742,7 +742,7 @@
 
                     default : {
                         // Do a Call to the Application's Command Dispatcher.
-                        (*callback)(*this, cid);
+                        (*user_callback)(*this, cid);
                     }
                 }
             } else {
--- a/cmdb.h	Fri Feb 11 12:30:34 2011 +0000
+++ b/cmdb.h	Fri Feb 11 12:44:54 2011 +0000
@@ -380,7 +380,7 @@
 
 /** The Command Interpreter Version.
  */
-#define CMDB_VERSION     0.74
+#define CMDB_VERSION     0.75
 
 //------------------------------------------------------------------------------
 
@@ -651,7 +651,7 @@
      *
      * C++ member equivalent would be void (Cmdb::*callback)(Cmdb&,int);
      */
-    void (*callback)(Cmdb&,int);
+    void (*user_callback)(Cmdb&,int);
 
     /** Searches the escape code list for a match.
     *