cmdlinelib.c now calls system() rather than doing its own tokenisation

(which was extremely heavy on calls to malloc()).

Moved include/command.h to include/gpxe/command.h, since it's
gPXE-specific.
This commit is contained in:
Michael Brown
2006-12-08 01:26:11 +00:00
parent f3d817d512
commit 7de5d32ff5
6 changed files with 17 additions and 222 deletions
+2 -4
View File
@@ -1,5 +1,5 @@
#include "command.h"
#include "console.h"
#include <vsprintf.h>
#include <gpxe/command.h>
void test2_req(){}
@@ -15,8 +15,6 @@ static int cmd_test2_exec ( int argc, char **argv ) {
struct command test2_command __command = {
.name = "test2",
.usage = "A test command\nIt does nothing at all\n\nExample:\n\ttest2",
.desc = "Does nothing",
.exec = cmd_test2_exec,
};