The CommandProcessor is the interface to install a run-time menu into an embedded system.

Dependents:   A_CANAdapter USB2I2C

Revision:
8:25581f24f7f9
Parent:
7:0f058d664b21
Child:
9:41046d2fd8e7
--- a/CommandProcessor.c	Sun Apr 03 21:36:22 2011 +0000
+++ b/CommandProcessor.c	Sun Apr 10 19:42:08 2011 +0000
@@ -330,13 +330,13 @@
     // Allocate the storage for this menu item
     temp = (CMDLINK_T *)malloc(sizeof(CMDLINK_T));
     if (!temp)
-        return addfailed;			// something went really bad
+        return addfailed;            // something went really bad
     temp->menu = menu;
     temp->next = NULL;
 
     prev = ptr = head;
     if (!ptr) {
-        head = temp;			// This installs the very first item
+        head = temp;            // This installs the very first item
         return addok;
     }
     // Search alphabetically for the insertion point
@@ -508,7 +508,7 @@
 /// @returns 0 if l == r
 /// @returns +1 if l > r
 ///
-int mystrnicmp(const char *l, const char *r, size_t n) {
+static int mystrnicmp(const char *l, const char *r, size_t n) {
     int result = 0;
 
     if (n != 0) {