The CommandProcessor is the interface to install a run-time menu into an embedded system.
Dependents: A_CANAdapter USB2I2C
Revision 8:25581f24f7f9, committed 2011-04-10
- Comitter:
- WiredHome
- Date:
- Sun Apr 10 19:42:08 2011 +0000
- Parent:
- 7:0f058d664b21
- Child:
- 9:41046d2fd8e7
- Commit message:
- hide the mystrnicmp function, which will show up in another utility lib
Changed in this revision
CommandProcessor.c | Show annotated file Show diff for this revision Revisions of this file |
CommandProcessor.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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) {
--- a/CommandProcessor.h Sun Apr 03 21:36:22 2011 +0000 +++ b/CommandProcessor.h Sun Apr 10 19:42:08 2011 +0000 @@ -330,5 +330,5 @@ -int mystrnicmp(const char *l, const char *r, size_t n); +//int mystrnicmp(const char *l, const char *r, size_t n); #endif // COMMANDPROCESSOR_H