Update of /cvsroot/blob/blob/include
In directory usw-pr-cvs1:/tmp/cvs-serv8549/include
Modified Files:
command.h linux.h
Log Message:
The new command line stuff. Most of the commands are converted, only
a couple of them still need to be done. Anyway, it makes the code a lot
easier and smaller.
Index: command.h
===================================================================
RCS file: /cvsroot/blob/blob/include/command.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- command.h 2001/09/15 20:14:23 1.2
+++ command.h 2001/09/17 00:05:31 1.3
@@ -54,17 +54,21 @@
#define __command __attribute__((unused, __section__(".commandlist")))
#define __commandlist(fn, nm, hlp) \
-static commandlist_t __commandlist_##fn __command = { \
+static commandlist_t __command_##fn __command = { \
magic: COMMAND_MAGIC, \
name: nm, \
help: hlp, \
callback: fn }
-
+
+extern commandlist_t *commands;
+
void init_commands(void);
int parse_command(char *cmdline);
+#define MAX_COMMANDLINE_LENGTH (128)
+#define MAX_ARGS (MAX_COMMANDLINE_LENGTH / 4)
void DisplayPrompt(char *prompt);
int GetCommand(char *command, int len, int timeout);
Index: linux.h
===================================================================
RCS file: /cvsroot/blob/blob/include/linux.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- linux.h 2001/08/06 22:44:52 1.2
+++ linux.h 2001/09/17 00:05:31 1.3
@@ -52,7 +52,7 @@
#endif
-void boot_linux(char *commandline);
+int boot_linux(int argc, char *argv[]);
#endif
|