CVS: libraries/include commandline.h,1.2,1.3

Chris Liechti <[email protected]>
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.cvs
Message-ID <[email protected]>
Update of /cvsroot/mspgcc/libraries/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31740/libraries/include

Modified Files:
	commandline.h 
Log Message:
- checksum logged wrong address range
- fix header file/missing include

Index: commandline.h
===================================================================
RCS file: /cvsroot/mspgcc/libraries/include/commandline.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -w -d -r1.2 -r1.3
--- commandline.h	4 Apr 2006 22:25:06 -0000	1.2
+++ commandline.h	4 Apr 2006 23:20:56 -0000	1.3
@@ -1,6 +1,8 @@
 #ifndef MSPGCC_COMMANDLINE_H
 #define MSPGCC_COMMANDLINE_H
 
+#include <mspgcc/util.h>
+
 /**
  * Use the following macro to create entries in the command table.
  * the command function is prefixed with "command_".
@@ -19,6 +21,12 @@
 } COMMANDLINE_TABLE;
 
 /**
+ * Return value of commandline_eval. This value should be returned by
+ * successful commands.
+ */
+#define COMMANDLINE_SUCCESS 0
+
+/**
  * Special return value of commandline_eval. Returned if the command is not
  * found in the provided table.
  */
@@ -151,6 +159,8 @@
 /**
  * Simple Tab completion. This function can be called when a command should be
  * completed. This function writes to the display using printf/putchar.
+ * Call thins function when a tab was received, it will automaticaly scan
+ * the commandline_table for matches and writes the result to the line buffer.
  * 
  * @param commandline_table     table with commands that can be completed
  * @param lineeditor            the command line, that is edited



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.